/* ==========================================================================
   Mega Trend Rise - main stylesheet
   One file, plain CSS. Sections:
   1. Colours and basics   2. Layout   3. Header and footer   4. Buttons
   5. Home page layout     6. Cards and grids   7. Page headings
   8. Articles and policies   9. Forms   10. Small screens
   Style idea: a dark theme with a bright mint-to-sky accent.
   Alignment rule: every row is a grid with equal columns; cards in a row
   stretch to the same height; buttons and links sit at the bottom.
   ========================================================================== */


/* 1. Colours and basics ------------------------------------------------- */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c232d;
  --line: #2b3441;
  --text: #e6edf3;
  --muted: #9aa7b5;
  --mint: #2de2b0;
  --sky: #4cc9f0;
  --dark-ink: #04231b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #2de2b0 0%, #4cc9f0 100%);
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint); }
h1, h2, h3, h4 { color: var(--white); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: 3.4rem; letter-spacing: -0.03em; }
h2 { font-size: 2.1rem; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }


/* 2. Layout ------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section-tint { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); }

/* Heading on the left, button on the right, both aligned to the bottom */
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 34px; }
.row-head h2 { margin: 0; }

.label, .pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tick-list { list-style: none; padding: 0; }
.tick-list li { padding-left: 32px; margin-bottom: 10px; position: relative; }
.tick-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; line-height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--dark-ink);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}


/* 3. Header and footer -------------------------------------------------- */
.topbar { background: #070a0e; color: var(--muted); font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--mint); font-weight: 700; text-decoration: none; }

.site-header { background: rgba(13, 17, 23, 0.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }

.logo { font-size: 1.6rem; font-weight: 900; text-decoration: none; color: var(--white); letter-spacing: -0.02em; }
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 7px 18px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav a:hover { color: var(--white); background: var(--panel-2); }
.nav a.current { background: var(--gradient); color: var(--dark-ink); }

/* Footer: four columns that all start at the same height. Each column is a
   heading plus a list, and the lists share one row height so lines match. */
.site-footer { background: #070a0e; color: var(--muted); padding-top: 64px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.footer-col h4, .footer-logo { height: 32px; line-height: 32px; margin: 0 0 14px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-logo { color: var(--white); font-size: 1.45rem; font-weight: 900; }
.footer-logo span { color: var(--mint); }
.footer-col p { margin: 0; line-height: 1.7; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 5px 0; line-height: 1.5; }
.footer-contact li span { display: block; color: var(--mint); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-contact li { padding: 0 0 12px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0; font-size: 0.88rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }


/* 4. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--dark-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 226, 176, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45, 226, 176, 0.4); }
.btn-outline, .btn-ghost { background: transparent; border-color: var(--mint); color: var(--mint); box-shadow: none; }
.btn-outline:hover, .btn-ghost:hover { background: var(--mint); color: var(--dark-ink); }
.btn-small { padding: 8px 20px; font-size: 0.92rem; }


/* 5. Home page layout --------------------------------------------------- */

/* Hero: two equal-height columns. Left is text, right is a numbered list. */
.hero { background: radial-gradient(circle at 80% 10%, rgba(45, 226, 176, 0.16), transparent 45%), radial-gradient(circle at 5% 90%, rgba(76, 201, 240, 0.12), transparent 40%), var(--bg); padding: 70px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.intro { font-size: 1.15rem; color: var(--muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.rank-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 14px; }
.rank-list h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mint); margin: 0 0 8px; }
.rank-row { display: grid; grid-template-columns: 40px 52px 1fr 24px; align-items: center; gap: 14px; padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background 0.2s; }
.rank-row:hover { background: var(--panel-2); }
.rank-num { font-size: 1.3rem; font-weight: 900; color: var(--muted); }
.rank-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--white); }
.rank-text strong { display: block; color: var(--white); line-height: 1.3; }
.rank-text small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.rank-go { color: var(--mint); font-weight: 900; text-align: right; }

/* Scrolling word strip (CSS animation only) */
.marquee { overflow: hidden; background: var(--gradient); }
.marquee-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee-track span { padding: 12px 34px; color: var(--dark-ink); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: "\2726"; margin-left: 68px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.promo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.promo img { width: 100%; max-width: 380px; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }

.stats { background: var(--gradient); color: var(--dark-ink); padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 16px; }
.stats strong { display: block; font-size: 3rem; line-height: 1.1; }
.stats span { font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.step { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--mint); border-radius: var(--radius); padding: 26px 24px; }
.step-number { display: inline-block; width: 38px; height: 38px; line-height: 38px; border-radius: 50%; background: var(--gradient); color: var(--dark-ink); text-align: center; font-weight: 900; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.newsletter { background: var(--panel); border-top: 1px solid var(--line); padding: 70px 0; }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.newsletter p { color: var(--muted); }
.newsletter .form { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }


/* 6. Cards and grids ---------------------------------------------------- */

/* Products: 3 equal columns. Each card is a column, so the name stretches and
   the price and button always sit at the same height along a row. */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.product:hover { transform: translateY(-5px); border-color: var(--mint); box-shadow: 0 14px 34px rgba(45, 226, 176, 0.16); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--white); }
.product-info { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { flex: 1; min-height: 3.2em; }
.tag { position: absolute; top: 12px; left: 12px; padding: 3px 12px; border-radius: 999px; background: var(--gradient); color: var(--dark-ink); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.price { font-size: 1.6rem; font-weight: 900; color: var(--mint); margin-bottom: 12px; line-height: 1.1; }
.price small { font-size: 0.76rem; font-weight: 400; color: var(--muted); }
.product .btn { align-self: flex-start; }

/* Shop page department cards: 4 equal columns, 2 rows */
.departments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.department { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.2s, border-color 0.2s; }
.department:hover { transform: translateY(-5px); border-color: var(--mint); }
.department img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--white); }
.department div { padding: 14px 18px 18px; flex: 1; }
.department h3 { margin-bottom: 2px; }
.department:hover h3 { color: var(--mint); }
.department p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.feature { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: var(--radius); padding: 24px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Blog cards: the "Read more" link is pushed to the bottom so rows line up */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.blog-list-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
.blog-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--mint); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--white); }
.blog-card > div { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.blog-card .meta { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mint); margin-bottom: 6px; }
.blog-card p { color: var(--muted); font-size: 0.95rem; }
.blog-card a { margin-top: auto; font-weight: 800; text-decoration: none; }


/* 7. Page headings ------------------------------------------------------ */
.page-head { background: radial-gradient(circle at 85% 0%, rgba(45, 226, 176, 0.18), transparent 50%), var(--panel); border-bottom: 3px solid var(--mint); padding: 52px 0; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { font-size: 0.88rem; margin-bottom: 10px !important; }


/* 8. Articles and policies ---------------------------------------------- */
.article, .legal { max-width: 780px; margin: 0 auto; }
.article h2, .legal h2 { margin-top: 40px; font-size: 1.55rem; color: var(--mint); }
.legal h3 { margin-top: 22px; }
.article .lead { font-size: 1.2rem; color: var(--muted); }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 10px; padding: 16px 22px; margin: 28px 0; }
.note p { margin: 0; }
.updated { color: var(--muted); font-size: 0.92rem; }


/* 9. Forms -------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.info-cards h3 { color: var(--mint); }
.info-cards p { margin: 0; }

.form label { display: block; margin-bottom: 6px; font-weight: 700; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(45, 226, 176, 0.2); }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.form .check input { margin-top: 6px; }
.form .check label { font-weight: 400; margin: 0; color: var(--muted); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--white); }
details p { margin: 10px 0 0; color: var(--muted); }


/* 10. Small screens ----------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid, .two-col, .promo, .newsletter .wrap { grid-template-columns: 1fr; }
  .departments, .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .products, .blog-list, .info-cards { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 720px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
  .departments, .features, .steps, .products, .blog-list, .blog-list-2, .info-cards, .footer-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .btn, .product, .department, .blog-card { transition: none; }
}
