/* AgrowNex premium layer — sits on top of site.css. */
:root {
  --forest: #0f2418;
  --forest-2: #163322;
  --gold: #e3a21a;
  --gold-soft: #f3d48a;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .14);
  --shadow: 0 24px 60px rgba(10, 24, 16, .18);
}

/* ---------- Header: solid on scroll, dropdown for solutions ---------- */
.site-header { transition: background .35s ease, box-shadow .35s ease; }
.site-header.scrolled { background: rgba(12, 28, 18, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.nav { align-items: center; }
.nav .has-menu { position: relative; }
.nav .has-menu > button {
  font: inherit; font-size: 16px; color: #fff; background: none; border: 0; cursor: pointer; opacity: .9;
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
}
.nav .has-menu > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(760px, 92vw); background: #fff; color: var(--ink); border-radius: 18px; padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; text-decoration: none !important; opacity: 1 !important; }
.mega a:hover { background: var(--mist); }
.mega a i { font: 700 13px/40px var(--mono); font-style: normal; text-align: center; width: 40px; height: 40px; border-radius: 10px; background: var(--forest); color: var(--gold); }
.mega a b { display: block; font: 700 16px/1.25 var(--display); }
.mega a small { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.mega .mega-foot { grid-column: span 2; border-top: 1px solid var(--line); margin-top: 6px; padding: 12px 12px 2px; font-size: 14px; }

/* ---------- Hero variants ---------- */
.hero-premium .hero-media::after {
  background:
    radial-gradient(ellipse at 15% 70%, rgba(12, 28, 18, .85) 0%, rgba(12, 28, 18, .35) 55%, rgba(12, 28, 18, .1) 100%),
    linear-gradient(0deg, rgba(10, 22, 15, .9) 0%, rgba(10, 22, 15, 0) 50%);
}
.hero-premium h1 { max-width: 17ch; }
.hero-premium:not(.hero-sub) .wrap { padding-bottom: 130px; }
@media (max-width: 980px) { .hero-premium:not(.hero-sub) .wrap { padding-bottom: 90px; } }
.hero-premium h1[lang="ta"] { max-width: 16ch; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px 8px 10px; font-size: 14px; margin-bottom: 22px; }
.hero-tag b { background: var(--gold); color: var(--forest); border-radius: 999px; padding: 3px 10px; font: 700 12px/1.4 var(--mono); letter-spacing: .04em; }
.scroll-cue { position: absolute; right: 32px; bottom: 32px; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero-page.hero-sub { min-height: 78svh; }
.crumb { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; }
.crumb a { color: inherit; text-decoration: none; opacity: .8; }
.crumb a:hover { opacity: 1; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--forest); color: #fff; border-radius: 24px; overflow: hidden; margin-top: -70px; position: relative; z-index: 3; box-shadow: var(--shadow); }
.stats div { padding: 30px 26px; border-right: 1px solid rgba(255,255,255,.08); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 800 clamp(34px, 4vw, 52px)/1 var(--display); color: var(--gold); letter-spacing: -1px; }
.stats span { display: block; margin-top: 10px; color: #cfdccb; font-size: 15px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 22px 0; animation: marquee 38s linear infinite; }
.marquee-track > span { font: 700 22px/1 var(--display); color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track > span::after { content: "✦"; color: var(--gold); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Engine grid ---------- */
.engines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.engine {
  position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: 22px; overflow: hidden;
  color: #fff; text-decoration: none; background: var(--forest); isolation: isolate;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.engine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .8s ease, opacity .5s ease; }
.engine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,15,.15) 0%, rgba(10,22,15,.92) 75%); }
.engine:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.engine:hover img { transform: scale(1.06); opacity: .7; }
.engine .num { font: 500 13px/1 var(--mono); color: var(--gold); letter-spacing: .1em; padding: 22px 22px 0; }
.engine .body { margin-top: auto; padding: 22px; }
.engine h3 { font: 800 24px/1.15 var(--display); margin: 0 0 8px; }
.engine p { margin: 0; font-size: 15px; color: #d7e3d4; line-height: 1.5; }
.engine .go { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--gold); }
.engine.wide { grid-column: span 2; }
.engine.future { background: linear-gradient(135deg, #1d3b2a, #0f2418); }
.engine.future .num { color: var(--gold-soft); }

/* ---------- Flow / how it works ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 52px; position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--leaf)); }
.flow li { list-style: none; text-align: center; padding: 0 12px; position: relative; counter-increment: flow; }
.flow li::before { content: counter(flow, decimal-leading-zero); display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--forest); color: var(--gold); font: 700 16px/1 var(--mono); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold); position: relative; }
.flow b { display: block; font: 700 18px/1.3 var(--display); margin-bottom: 6px; }
.flow span { font-size: 15px; color: var(--ink-2); }
.band-ink .flow li::before { border-color: var(--ink); }
.band-ink .flow span { color: #b9c9b6; }
.flow.four { grid-template-columns: repeat(4, 1fr); }
.flow.six { grid-template-columns: repeat(6, 1fr); }

/* ---------- Feature list cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,32,22,.1); border-color: transparent; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--ink); margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature b { display: block; font: 700 19px/1.3 var(--display); margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.band-ink .feature { background: var(--glass); border-color: var(--glass-line); color: #fff; }
.band-ink .feature p { color: #c8d6c4; }
.band-ink .feature .ico { background: rgba(227,162,26,.15); color: var(--gold); }
.features.two { grid-template-columns: repeat(2, 1fr); }
.features.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.media-card { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.media-card img, .media-card video { width: 100%; height: 100%; object-fit: cover; }
.media-card .badge { position: absolute; left: 18px; bottom: 18px; background: rgba(12,28,18,.78); backdrop-filter: blur(6px); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; max-width: 70%; }
.media-card .badge b { display: block; color: var(--gold); font: 800 22px/1.1 var(--display); }

/* ---------- Table-like rows ---------- */
.rows { margin-top: 36px; border-top: 2px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows b { font: 700 18px/1.35 var(--display); }
.rows span { color: var(--ink-2); }
.band-ink .rows { border-top-color: var(--gold); }
.band-ink .rows > div { border-bottom-color: rgba(255,255,255,.1); }
.band-ink .rows span { color: #c8d6c4; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.band-ink .chips li { background: var(--glass); border-color: var(--glass-line); color: #fff; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 30px; padding: 72px 56px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(227,162,26,.35), transparent 45%), linear-gradient(135deg, #1c3a27, #0f2418);
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: #d6e2d2; max-width: 52ch; font-size: 19px; }
.cta .hero-actions { margin-top: 28px; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }

/* ---------- Next / prev engine nav ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pager a { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; text-decoration: none; transition: border-color .3s, background .3s; }
.pager a:hover { border-color: var(--ink); background: var(--mist); }
.pager small { display: block; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soil); margin-bottom: 8px; }
.pager b { font: 700 20px/1.3 var(--display); }
.pager a:last-child { text-align: right; }

.note-pill { display: inline-block; border: 1px dashed var(--gold); color: var(--ink); background: #fff8e8; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-top: 22px; }
.band-ink .note-pill { background: rgba(227,162,26,.1); color: #f6e7c4; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .engines { grid-template-columns: repeat(2, 1fr); }
  .features, .features.four { grid-template-columns: repeat(2, 1fr); }
  .flow, .flow.six { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .flow::before { display: none; }
}
@media (max-width: 980px) {
  .nav .has-menu > button { font-size: 18px; }
  .mega { position: static; transform: none !important; width: 100%; box-shadow: none; padding: 6px 0 0; grid-template-columns: 1fr; display: none; background: transparent; color: #fff; }
  .has-menu.open .mega { display: grid; opacity: 1; visibility: visible; }
  .has-menu:hover .mega { display: none; }
  .has-menu.open:hover .mega { display: grid; }
  .mega a:hover { background: rgba(255,255,255,.06); }
  .mega a small { color: #b9c9b6; }
  .mega .mega-foot { grid-column: auto; border-top-color: rgba(255,255,255,.15); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .cta { padding: 48px 26px; }
}
@media (max-width: 760px) {
  .engines, .features, .features.two, .features.four { grid-template-columns: 1fr; }
  .engine.wide { grid-column: auto; }
  .flow, .flow.four, .flow.six { grid-template-columns: 1fr 1fr; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-cue::after { animation: none; }
  .engine, .engine img, .feature { transition: none; }
}

/* ---------- Mobile nav with solutions ---------- */
@media (max-width: 980px) {
  .nav.open { max-height: calc(100svh - 80px); overflow-y: auto; }
  .nav .has-menu > button { padding: 12px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .mega a { border-bottom: 0; padding: 10px 6px; }
  .mega a i { background: rgba(255,255,255,.08); }
}
.mega a > span { display: block; }
.status { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 9px; margin-bottom: 12px; background: var(--mist); color: var(--ink); }
.status.live { background: #dff0d8; color: #1c3a27; }
.status.next { background: #fff1cf; color: #7a5300; }
.status.later { background: #ece8f5; color: #463a6b; }
.band-ink .status { background: rgba(255,255,255,.1); color: #f3d48a; }
.hero-premium .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card video { display: block; }
.mega .mega-foot a { display: inline; padding: 0; font-weight: 600; }
.mega .mega-foot a:hover { background: none; text-decoration: underline !important; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mega p.mega-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 0; }
