/* ==============================================================
   Landing-page only — Stellar-inspired hero, scroll-nav,
   feature/stats blocks. Tucked behind the home-page guard in
   render.js so non-landing pages never load this CSS.
   ============================================================== */

/* ---------- Hero ---------- */

.section--hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background:
        radial-gradient(1100px 480px at 80% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
        radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--c5) 18%, transparent), transparent 70%);
}
.hero__eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.hero__title {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--text);
    background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text)));
    -webkit-background-clip: text;
    background-clip: text;
}
.hero__subtitle {
    max-width: 56ch;
    margin: 0 0 28px;
    color: var(--text-2);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Animated orbs in the hero corner — pure CSS, low cost. The keyframe
   floats them on different periods so the motion is organic without
   needing JS. Honoured by prefers-reduced-motion via the global
   override in style.css. */
.hero__visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.hero__orbs {
    position: absolute;
    inset-inline-start: 8%;
    inset-block-start: 18%;
    width: 460px;
    height: 460px;
    filter: blur(40px);
    opacity: .85;
}
.orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}
.orb--1 { width: 260px; height: 260px; background: var(--c1); inset-inline-start: 0; inset-block-start: 0; animation: orbA 14s ease-in-out infinite; }
.orb--2 { width: 200px; height: 200px; background: var(--c5); inset-inline-end: 0; inset-block-start: 25%; animation: orbB 16s ease-in-out infinite; }
.orb--3 { width: 220px; height: 220px; background: var(--c2); inset-inline-start: 30%; inset-block-end: 0; animation: orbC 18s ease-in-out infinite; }

@keyframes orbA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.05); } }
@keyframes orbB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,40px) scale(1.1); } }
@keyframes orbC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,-40px) scale(1.08); } }

/* ---------- Sticky in-page scroll-nav ---------- */
/* Stellar's signature: a horizontal pill bar that sticks under the
   header and highlights the active section as you scroll. */

.scroll-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-block: 1px solid var(--line);
}
.scroll-nav .shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.scroll-nav ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    gap: 4px;
    white-space: nowrap;
}
.scroll-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: background .15s ease, color .15s ease;
}
.scroll-nav a:hover { background: var(--surface-hover); color: var(--text); }
.scroll-nav a.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft-2);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); line-height: 1.7; }

.feature__icon {
    --bg: color-mix(in srgb, var(--c1) 14%, transparent);
    --fg: var(--c1);
    width: 52px;
    height: 52px;
    border-radius: var(--r);
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--fg);
    margin-bottom: 16px;
}
.feature__icon[data-style="2"] { --bg: color-mix(in srgb, var(--c2) 14%, transparent); --fg: var(--c2); }
.feature__icon[data-style="3"] { --bg: color-mix(in srgb, var(--c5) 14%, transparent); --fg: var(--c5); }

/* ---------- Stats strip ---------- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 10%, transparent), transparent 60%);
    pointer-events: none;
}
.stat[data-style="2"]::before { background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 10%, transparent), transparent 60%); }
.stat[data-style="3"]::before { background: linear-gradient(135deg, color-mix(in srgb, var(--c4) 10%, transparent), transparent 60%); }
.stat[data-style="4"]::before { background: linear-gradient(135deg, color-mix(in srgb, var(--c5) 10%, transparent), transparent 60%); }
.stat strong {
    display: block;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--accent);
    font-family: 'Inter', 'Vazirmatn', sans-serif;
    margin-bottom: 4px;
    direction: ltr;
}
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Dialect tiles ---------- */

.dialect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.dialect-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--text);
    font-weight: 600;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.dialect-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}
.dialect-tile__name { font-size: 16px; }
.dialect-tile__count {
    color: var(--muted);
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* ---------- CTA section ---------- */

.section--cta {
    background:
        radial-gradient(800px 380px at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        var(--surface-2);
    text-align: center;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; }
