/* ==========================================================================
   HOME PAGE STYLES

   Page-scoped design tokens/components for the marketing homepage only.
   Colors, radii, and surfaces reuse the global tokens from core/_variables.css
   (they already match exactly) rather than redeclaring them here. Only
   genuinely new tokens are added below, and the few that would otherwise
   collide with a global token of the same name but a different value
   (shadow/transition) are prefixed --home- so they can't leak into the
   navbar/footer chrome that also renders on this page via _Layout.
   ========================================================================== */

:root {
    --gold: #c08a2e; /* heirloom gold, used only in the hero illustration */
    --home-shadow-sm: 0 1px 3px rgba(74, 28, 106, 0.08);
    --home-shadow-md: 0 4px 16px rgba(74, 28, 106, 0.10);
    --home-shadow-lg: 0 8px 32px rgba(74, 28, 106, 0.13);
    --home-transition: 0.25s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hero-actions .btn,
.cta-band .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--home-transition), color var(--home-transition), border-color var(--home-transition), transform 0.15s;
    min-height: 48px;
    text-align: center;
    text-decoration: none !important;
    background: transparent;
}
.hero-actions .btn:active,
.cta-band .btn:active {
    transform: scale(0.97);
}

.hero-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.hero-actions .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.hero-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.hero-actions .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.cta-band .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2.8rem;
    min-height: 54px;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(217, 109, 29, 0.30);
}
.cta-band .btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #fff;
    box-shadow: 0 6px 24px rgba(217, 109, 29, 0.40);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #fdf6ec 0%, #f5ede3 100%);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--warm-beige), transparent);
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(74, 28, 106, 0.08);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    align-self: flex-start;
    border: 1px solid rgba(74, 28, 106, 0.10);
}
.hero-badge .gujarati {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.hero-badge .sep {
    color: var(--text-muted);
    font-weight: 300;
    padding: 0 0.1rem;
}

.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--primary-dark);
}
.hero h1 .gujarati {
    font-size: 1.6rem;
    font-weight: 600;
    display: block;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
}
.hero p .gujarati {
    font-size: 0.9rem;
    display: block;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

/* ---- Hero illustration (inline SVG) ---- */
.hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.hero-art svg {
    width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
}

/* ============================================================
   HERO ILLUSTRATION — banyan (vad)
   Aerial roots drop from the limbs and root as new trunks: the
   tree's own way of adding a generation.
   ============================================================ */
.tree-branch {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tree-root {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.6;
}
.tree-ground {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.25;
}
.tree-halo {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 2 11;
    opacity: 0.45;
}
.tree-leaf {
    fill: var(--gold);
    opacity: 0.55;
}
.node-ring { fill: var(--warm-beige); }
.node-person { fill: var(--accent); }
.node-join { fill: var(--primary); }
.node-new { fill: var(--accent-light); }

/* one orchestrated moment: the tree draws itself once, on load */
.draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: tree-grow 1.5s ease forwards;
}
.d2 { animation-delay: 0.5s; }
.d3 { animation-delay: 0.9s; }
.d4 { animation-delay: 1.2s; }
.fade {
    opacity: 0;
    animation: tree-fade 0.6s ease forwards 1.5s;
}
.fade.f2 { animation-delay: 1.75s; }

@keyframes tree-grow { to { stroke-dashoffset: 0; } }
@keyframes tree-fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .draw {
        animation: none !important;
        stroke-dashoffset: 0;
    }
    .fade {
        animation: none !important;
        opacity: 1;
    }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.2rem;
}
.section-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}
.section-head h2 .gujarati {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.1rem;
}
.section-head p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.4rem;
}
.section-head p .gujarati {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* ============================================================
   HOW IT WORKS (feature cards)
   ============================================================ */
.how-it-works {
    padding: 3.5rem 0 2.5rem;
    background: var(--surface-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.5rem 2rem;
    box-shadow: var(--home-shadow-sm);
    border: 1px solid rgba(74, 28, 106, 0.04);
    transition: box-shadow var(--home-transition), transform var(--home-transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}
.feature-card:hover {
    box-shadow: var(--home-shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(74, 28, 106, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.2rem;
}
.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.feature-card h3 .gujarati {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.1rem;
}
.feature-card p .gujarati {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    padding: 2.8rem 0;
    background: var(--primary-dark);
    color: #fff;
    background-image: radial-gradient(circle at 20% 30%, rgba(125, 60, 152, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 109, 29, 0.15) 0%, transparent 50%);
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-label .gujarati {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.05rem;
}

/* ============================================================
   COMING SOON
   ============================================================ */
.coming-soon {
    padding: 3.5rem 0 3rem;
    background: var(--warm-beige);
}
.coming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.coming-card {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem 1.8rem;
    border-left: 4px solid var(--accent);
    box-shadow: var(--home-shadow-sm);
    transition: box-shadow var(--home-transition), transform var(--home-transition);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.coming-card:hover {
    box-shadow: var(--home-shadow-md);
    transform: translateY(-2px);
}

.coming-card .badge-soon {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(217, 109, 29, 0.10);
    padding: 0.15rem 0.8rem;
    border-radius: 50px;
    align-self: flex-start;
    border: 1px solid rgba(217, 109, 29, 0.15);
}
.coming-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.coming-card h3 .gujarati {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}
.coming-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.coming-card p .gujarati {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

/* ============================================================
   CTA BAND (logged-out only)
   ============================================================ */
.cta-band {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(217, 109, 29, 0.10);
    pointer-events: none;
}
.cta-band::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(125, 60, 152, 0.15);
    pointer-events: none;
}

.cta-band .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cta-band h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.cta-band h2 .gujarati {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 0.1rem;
}
.cta-band p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
}
.cta-band p .gujarati {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* ============================================================
   RESPONSIVE — TABLET & UP
   ============================================================ */
@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h1 .gujarati {
        font-size: 1.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 2.6rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .coming-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-content {
        flex: 1;
    }
    .hero-art {
        flex: 0 0 44%;
        max-width: 44%;
    }
    .hero-art svg {
        max-height: 400px;
    }

    .cta-band h2 {
        font-size: 2.4rem;
    }
    .cta-band h2 .gujarati {
        font-size: 1.6rem;
    }
}

@media (min-width: 900px) {
    .hero h1 {
        font-size: 3.4rem;
    }
    .hero h1 .gujarati {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.15rem;
    }
    .hero p .gujarati {
        font-size: 0.95rem;
    }
    .section-head h2 {
        font-size: 2.4rem;
    }
    .section-head h2 .gujarati {
        font-size: 1.6rem;
    }
    .stat-number {
        font-size: 3rem;
    }
}

/* ============================================================
   PRINT STYLES (basic)
   ============================================================ */
@media print {
    .hero {
        background: #fff;
    }
    .stats-band {
        background: #f0f0f0;
        color: #222;
        background-image: none;
    }
    .stat-number {
        color: #222;
    }
    .stat-label {
        color: #444;
    }
    .stat-label .gujarati {
        color: #666;
    }
    .cta-band {
        background: #eee;
        color: #222;
    }
    .cta-band h2 {
        color: #222;
    }
    .cta-band p {
        color: #444;
    }
    .cta-band .btn {
        background: #ccc;
        border-color: #999;
        color: #222;
        box-shadow: none;
    }
    .feature-card:hover,
    .coming-card:hover {
        transform: none !important;
        box-shadow: var(--home-shadow-sm);
    }
    .hero-art {
        display: none;
    }
}
