/*
 * GANITSUTRAM
 * A Living Knowledge Ecosystem for Mathematical Discovery
 *
 * "यथा शिखा मयूराणां नागानां मणयो यथा
 *  तद्वद् वेदाङ्गशास्त्राणां गणितं मूर्ध्नि वर्तते"
 *
 * Creator:   Jawahar R. Mallah
 */
/*
Project: GanitSūtram
Author: Jawahar R Mallah
Company: AITDL | aitdl.com
Purpose: Portal-specific styles, extending ui-core/css/main.css
*/

/* ════════════════════════════
   NAV
════════════════════════════ */
.gs-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(4, 8, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.gs-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gs-nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--fg-main);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.gs-nav-logo-dev {
    font-family: var(--font-ancient);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* ════════════════════════════
   HERO SECTION
════════════════════════════ */
.gs-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 60px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #0D1E38 0%, #04080F 70%);
    animation: heroBreath 20s infinite alternate ease-in-out;
}

/* Specific background for the Cosmic Gate (Vortex Animation) */
.gs-gate-hero {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.gs-gate-hero::before {
    content: '';
    position: absolute;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background: url('../assets/img/cosmic-gate.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
    animation: cosmicVortex 40s alternate infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transform-origin: center center;
    will-change: transform;
}

/* YouTube Video Background Mode */
.gs-gate-video {
    background: transparent;
}

/* ─── LIGHT THEME OVERRIDES ─── */
[data-theme="light"] .gs-hero {
    background: var(--bg-primary) !important;
    animation: none;
}

[data-theme="light"] .gs-gate-hero {
    background: var(--bg-primary) !important;
}

[data-theme="light"] .gs-pillar {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--fg-main) !important;
}

[data-theme="light"] .gs-pillar-icon {
    background: rgba(255, 107, 53, 0.1) !important;
    color: var(--accent-primary) !important;
}


.gs-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #F8F9FA; /* Off-white for readability */
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: gsPageFadeIn 0.4s ease-out forwards;
}

[data-theme="light"] .gs-hero-sub {
    color: var(--fg-muted) !important;
}

[data-theme="light"] .gs-platform-link {
    color: #E65A2A !important; /* Slightly deeper orange for contrast */
    font-weight: 600;
}

[data-theme="light"] .gs-persona-card p {
    color: var(--fg-muted) !important;
}


.gs-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%); /* Full video maintaining aspect ratio */
    pointer-events: none;
}

/* Ensure the iframe covers the screen like background-size: cover */
@media (min-aspect-ratio: 16/9) {
    .gs-video-bg iframe {
        height: 56.25vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .gs-video-bg iframe {
        width: 177.78vh;
    }
}

.gs-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(4,8,15,0.4) 0%, rgba(4,8,15,0.8) 100%);
    z-index: -1;
}

/* Contrast overlay to ensure text readability on complex backgrounds */
.gs-gate-hero::after,
.gs-gate-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(4, 8, 15, 0.6) 100%);
    z-index: -1; /* changed to -1 to allow interactions above it but sit over background */
    pointer-events: none;
}

@keyframes cosmicVortex {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.3) rotate(45deg); }
}

@keyframes heroBreath {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 10%; background-color: #050A14; }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
}

.gs-hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.gs-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-soft);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gs-label-line {
    width: 40px;
    height: 1px;
    background: var(--accent-soft);
}

.gs-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gs-hero-sub {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.gs-hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ════════════════════════════
   STATS PAR
════════════════════════════ */
.gs-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    margin-top: -60px;
    position: relative;
    z-index: 20;
    border-radius: 4px;
}

.gs-stat-item {
    text-align: center;
}

.gs-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.gs-stat-lbl {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--fg-muted);
    letter-spacing: 0.1em;
}

/* ════════════════════════════
   SECTIONS & GRIDS
════════════════════════════ */
.gs-section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    text-align: center;
}

.gs-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    margin-bottom: 4rem;
    text-align: center;
    line-height: 1.2;
    background: linear-gradient(to right, #D4AF37, #FBF5B7, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ════════════════════════════
   CONCEPT STRIP & CARDS
   ════════════════════════════ */
.gs-concept-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gs-concept-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--fg-main);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.gs-concept-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gs-concept-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.gs-concept-card:hover::before {
    opacity: 1;
}

.gs-concept-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gs-concept-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin: 0;
}

.gs-concept-sutra {
    font-family: var(--font-ancient);
    font-size: 0.95rem;
    color: var(--accent-soft);
    opacity: 0.8;
}

.gs-eco-tag {
    font-size: 0.95rem;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* ════════════════════════════
   BENTO GRID (.gs-pillars)
════════════════════════════ */
.gs-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gs-pillar {
    background: var(--glass-bg);
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--fg-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.gs-pillar * {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gs-pillar:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.gs-pillar-icon {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-soft);
    margin-bottom: 1rem;
    display: block;
    text-shadow: none;
}

.gs-pillar h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--fg-main);
}

.gs-pillar p {
    font-size: 0.95rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* Bento Sizing Overrides */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.gs-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    text-align: center;
}

.gs-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gs-platform-card {
    background: var(--glass-bg);
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--fg-main);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.gs-platform-card * {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gs-platform-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.gs-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gs-platform-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.gs-platform-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

.gs-platform-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-soft);
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ════════════════════════════
   GATE PAGE SCENES
════════════════════════════ */
.gs-scene {
    display: none;
    min-height: 80vh;
    padding: 8rem 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gs-scene.active {
    display: flex;
    animation: gsReveal 0.8s ease forwards;
}

.gs-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem 0;
}

.gs-persona-card {
    background: var(--glass-bg);
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gs-persona-card * {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Ensures readability against bright background */
}

.gs-persona-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.gs-persona-card.selected {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 40px var(--accent-glow);
}

.gs-persona-icon {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent-soft);
    margin-bottom: 1rem;
    text-shadow: none;
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1000px) {
    .gs-persona-grid { grid-template-columns: 1fr 1fr; }
    .gs-pillars { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: auto; }
    .bento-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    /* --- VIEWPORT LOCK --- */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* --- HERO REPAIR --- */
    .gs-hero {
        padding: 100px 0 60px !important;
        min-height: auto !important;
        overflow: hidden;
    }
    .gs-hero-inner {
        padding: 0 1.5rem;
    }
    .gs-hero-cta {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 2rem auto 0 !important;
    }
    .gs-hero-cta .gs-button {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        text-align: center !important;
    }

    /* --- STATS BAR REPAIR --- */
    .gs-stats-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        margin: 2rem 1.5rem 0 !important;
        padding: 3rem 1.5rem !important;
        width: auto !important;
    }
    .gs-stat-item {
        width: 100% !important;
    }

    /* --- NAV REPAIR --- */
    .gs-nav {
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        transform: none !important;
        max-width: none !important;
    }
    .gs-nav-inner {
        padding: 0 1.2rem !important;
    }
    .gs-nav-links {
        width: calc(100vw - 40px) !important;
        right: 0 !important;
        top: 65px !important;
    }

    /* --- GRID REPAIR --- */
    .gs-platform-grid, .gs-persona-grid, .gs-pillars {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .gs-platform-card, .gs-pillar, .gs-persona-card {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .bento-large, .bento-wide, .bento-tall {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* ════════════════════════════
   ARCHIVAL GALAXY BACKGROUND
════════════════════════════ */
.gs-archival-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000510;
    z-index: -2;
    pointer-events: none;
}

.gs-archival-bg #galaxy-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    animation: galaxyDrift 160s ease-in-out infinite alternate,
               galaxyBreath 24s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform, opacity;
}

@keyframes galaxyDrift {
    0%   { transform: scale(1.08) translate(0px, 0px) rotate(0deg); }
    25%  { transform: scale(1.12) translate(-18px, 10px) rotate(0.4deg); }
    50%  { transform: scale(1.1)  translate(10px, -15px) rotate(-0.3deg); }
    75%  { transform: scale(1.14) translate(-8px, 18px)  rotate(0.2deg); }
    100% { transform: scale(1.08) translate(14px, -6px)  rotate(-0.5deg); }
}

@keyframes galaxyBreath {
    0%, 100% { opacity: 0.82; }
    50%       { opacity: 0.92; }
}

.gs-archival-bg #ring-overlay {
    position: absolute;
    inset: -20%;
    width: 140%; height: 140%;
    background: conic-gradient(
      from 0deg,
      transparent 0%,
      rgba(74,158,255,0.06) 10%,
      transparent 20%,
      rgba(74,158,255,0.04) 30%,
      transparent 45%,
      rgba(204,85,170,0.05) 55%,
      transparent 70%,
      rgba(34,221,204,0.04) 80%,
      transparent 100%
    );
    animation: ringRotate 90s linear infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.gs-archival-bg #starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
}

.gs-archival-bg .nebula-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: bloomPulse var(--dur) ease-in-out infinite alternate;
}

.gs-archival-bg .bloom-1 {
    width: 420px; height: 300px;
    background: radial-gradient(ellipse, rgba(204,85,170,0.25) 0%, transparent 70%);
    bottom: 20%; left: -5%;
    --dur: 8s;
    animation-delay: 0s;
}
.gs-archival-bg .bloom-2 {
    width: 380px; height: 280px;
    background: radial-gradient(ellipse, rgba(34,221,204,0.2) 0%, transparent 70%);
    top: 15%; right: -3%;
    --dur: 11s;
    animation-delay: -3s;
}
.gs-archival-bg .bloom-3 {
    width: 500px; height: 350px;
    background: radial-gradient(ellipse, rgba(74,158,255,0.18) 0%, transparent 70%);
    top: -10%; left: 30%;
    --dur: 14s;
    animation-delay: -6s;
}

@keyframes bloomPulse {
    0%   { opacity: 0.4; transform: scale(1) translate(0, 0); }
    50%  { opacity: 0.8; transform: scale(1.15) translate(10px, -8px); }
    100% { opacity: 0.5; transform: scale(0.95) translate(-6px, 12px); }
}

.gs-archival-bg .flare {
    position: absolute;
    pointer-events: none;
    animation: flarePulse var(--fd) ease-in-out infinite;
}

.gs-archival-bg .flare::before, .gs-archival-bg .flare::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
}

.gs-archival-bg .flare::before {
    width: var(--fs); height: var(--fs);
    box-shadow: 0 0 calc(var(--fs) * 2) calc(var(--fs) * 1.5) rgba(255,255,255,0.4),
                0 0 calc(var(--fs) * 6) calc(var(--fs) * 3) rgba(180,210,255,0.2);
}

.gs-archival-bg .flare::after {
    width: 1px; height: calc(var(--fs) * 10);
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
    box-shadow: calc(var(--fs) * 5) 0 1px 0 rgba(255,255,255,0.4);
}

@keyframes flarePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

.gs-archival-bg #vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
      transparent 30%,
      rgba(0,3,15,0.4) 70%,
      rgba(0,3,15,0.85) 100%
    );
    pointer-events: none;
}

.gs-archival-bg .lum-star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: white;
    animation: lumTwinkle var(--lt) ease-in-out infinite alternate,
               lumFloat var(--lf) ease-in-out infinite alternate;
}

.gs-archival-bg .lum-star::before,
.gs-archival-bg .lum-star::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
}
.gs-archival-bg .lum-star::before {
    width: calc(var(--sz) * 5);
    height: calc(var(--sz) * 0.18);
}
.gs-archival-bg .lum-star::after {
    width: calc(var(--sz) * 0.18);
    height: calc(var(--sz) * 5);
}

@keyframes lumTwinkle {
    0%   { opacity: var(--lo); box-shadow: 0 0 calc(var(--sz)*1.5) calc(var(--sz)*0.5) rgba(255,255,255,0.6), 0 0 calc(var(--sz)*4) calc(var(--sz)*1.5) rgba(200,220,255,0.3); }
    50%  { opacity: 1;         box-shadow: 0 0 calc(var(--sz)*3)   calc(var(--sz)*1.5) rgba(255,255,255,0.9), 0 0 calc(var(--sz)*8) calc(var(--sz)*3)   rgba(180,210,255,0.5); }
    100% { opacity: var(--lo); box-shadow: 0 0 calc(var(--sz)*1.5) calc(var(--sz)*0.5) rgba(255,255,255,0.5), 0 0 calc(var(--sz)*3) calc(var(--sz)*1)   rgba(200,220,255,0.2); }
}

@keyframes lumFloat {
    from { transform: translate(0, 0); }
    to   { transform: translate(var(--fx), var(--fy)); }
}

.gs-archival-bg .shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.gs-archival-bg .shooting-star::after {
    content: '';
    position: absolute;
    top: 50%; right: 0;
    width: 120px; height: 1px;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    transform: translateY(-50%);
}
/* ════════════════════════════
   HERO EYEBROW & SECTION SUB  (UX Restructure v2.0)
════════════════════════════ */
.gs-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.gs-section-sub {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--fg-muted);
    max-width: 640px;
    margin: -1rem auto 3rem;
    text-align: center;
    line-height: 1.65;
}

/* ════════════════════════════
   FEATURED CARD BADGE
════════════════════════════ */
.gs-card-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}
.gs-card-featured {
    border-color: rgba(255, 179, 0, 0.35) !important;
    background: rgba(255, 179, 0, 0.04) !important;
}

/* ════════════════════════════
   DEMO SECTION
════════════════════════════ */
.gs-demo-section {
    padding: 7rem 0 5rem;
    background: rgba(255, 85, 0, 0.025);
    border-top: 1px solid rgba(255, 85, 0, 0.08);
    border-bottom: 1px solid rgba(255, 85, 0, 0.08);
}
.gs-demo-sub {
    font-family: var(--font-body);
    color: var(--fg-muted);
    text-align: center;
    margin: -1.5rem auto 3rem;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.65;
}
.gs-demo-widget {
    max-width: 880px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.gs-demo-steps {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.gs-demo-step {
    flex: 1;
    min-width: 170px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gs-demo-step-num {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    opacity: 0.8;
}
.gs-demo-step-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--fg-muted);
    line-height: 1.4;
}
.gs-demo-step-math {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.gs-demo-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    color: var(--fg-main);
    font-weight: 600;
}
.gs-demo-op { color: var(--fg-muted); font-size: 1rem; }
.gs-demo-result {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--fg-muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gs-demo-result.revealed { opacity: 1; transform: translateY(0); }
.gs-demo-result strong { color: var(--accent-primary); }
.gs-demo-arrow { font-size: 1.3rem; color: var(--fg-muted); opacity: 0.35; flex-shrink: 0; }
.gs-demo-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    text-align: center;
}
.gs-demo-answer.revealed { opacity: 1; transform: translateY(0); }
.gs-demo-answer-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    opacity: 0.7;
}
.gs-demo-answer-val { font-family: 'Roboto Mono', monospace; font-size: 1.5rem; color: var(--fg-main); }
.gs-demo-answer-val strong { color: var(--accent-primary); font-size: 1.9rem; }
.gs-demo-answer-sub { font-size: 0.78rem; color: var(--fg-muted); opacity: 0.65; font-family: 'Roboto Mono', monospace; }
.gs-demo-cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.gs-demo-hint { font-size: 0.78rem; color: var(--fg-muted); opacity: 0.55; }

/* ════════════════════════════
   QUOTE WALL
════════════════════════════ */
.gs-quotes-section { padding: 7rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.gs-quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}
.gs-tradition-quote {
    margin: 0;
    padding: 2rem 2rem 2rem 2.25rem;
    border-left: 3px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 0 16px 16px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.gs-tradition-quote:hover { border-color: var(--accent-secondary); transform: translateX(4px); }
.gs-quote-featured { background: rgba(212,175,55,0.06); border-left-color: var(--accent-secondary); border-radius: 16px; padding: 2.5rem; }
.gs-tradition-quote p { font-family: var(--font-ancient,'Cormorant Garamond',serif); font-size: 1.05rem; color: var(--fg-main); line-height: 1.7; margin: 0 0 1rem; font-style: italic; }
.gs-tradition-quote cite { font-size: 0.78rem; color: var(--accent-primary); font-style: normal; letter-spacing: 0.05em; font-weight: 600; }

/* ════════════════════════════
   FINAL CTA ENHANCEMENTS
════════════════════════════ */
.gs-final-cta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    border: 1px solid rgba(255,85,0,0.3);
    padding: 5px 18px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.gs-final-cta-btns { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════
   NEW FOOTER COLUMNS
════════════════════════════ */
.gs-footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.gs-footer-nav-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.gs-footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.gs-footer-col-title { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-soft); margin-bottom: 0.25rem; }
.gs-footer-col a { font-size: 0.88rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.gs-footer-col a:hover { color: var(--fg-main); }
.gs-footer-copy-inline { font-size: 0.8rem; color: var(--fg-muted); opacity: 0.6; margin-top: 0.75rem; }
.gs-footer-copy-inline a { color: var(--accent-soft); text-decoration: none; }
.gs-footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3rem; padding-top: 1.5rem; text-align: center; font-size: 0.78rem; color: var(--fg-muted); opacity: 0.5; }

/* ════════════════════════════
   LIGHT THEME: NEW COMPONENTS
════════════════════════════ */
[data-theme="light"] .gs-demo-section { background: rgba(255,85,0,0.015); border-color: rgba(255,85,0,0.06); }
[data-theme="light"] .gs-demo-widget { background: rgba(255,255,255,0.85) !important; border-color: rgba(0,0,0,0.06) !important; }
[data-theme="light"] .gs-demo-step { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.05); }
[data-theme="light"] .gs-tradition-quote { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .gs-tradition-quote p { color: var(--fg-main); }
[data-theme="light"] .gs-quote-featured { background: rgba(212,175,55,0.07); border-color: rgba(212,175,55,0.3); }

/* ════════════════════════════
   LIGHT THEME: FOOTER (full override)
════════════════════════════ */
[data-theme="light"] .gs-footer {
    background: #FFFFFF !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .gs-footer-col-title {
    color: var(--accent-primary) !important;  /* AITDL orange — good contrast on white */
}
[data-theme="light"] .gs-footer-col a {
    color: rgba(0, 0, 0, 0.55) !important;
}
[data-theme="light"] .gs-footer-col a:hover {
    color: var(--fg-main) !important;
}
[data-theme="light"] .gs-footer-copy-inline {
    color: rgba(0, 0, 0, 0.45) !important;
}
[data-theme="light"] .gs-footer-copy-inline a {
    color: var(--accent-primary) !important;
}
[data-theme="light"] .gs-footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.45) !important;
    opacity: 1 !important;
}
[data-theme="light"] .gs-nav-logo-dev {
    color: var(--accent-primary) !important;
}
[data-theme="light"] .gs-footer .gs-nav-logo {
    color: var(--fg-main) !important;
}
[data-theme="light"] .gs-footer p[data-i18n] {
    color: rgba(0, 0, 0, 0.55) !important;
}

/* ════════════════════════════
   RESPONSIVE: NEW COMPONENTS
════════════════════════════ */
@media (max-width: 900px) {
    .gs-quotes-grid { grid-template-columns: 1fr; }
    .gs-demo-steps { flex-direction: column; }
    .gs-demo-arrow { transform: rotate(90deg); }
    .gs-footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .gs-footer-nav-cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .gs-footer-nav-cols { grid-template-columns: 1fr 1fr; }
    .gs-demo-widget { padding: 2rem 1.25rem; }
    .gs-final-cta-btns { flex-direction: column; align-items: center; }
}

/* ----------------------------
   GATE PROGRESS INDICATOR
---------------------------- */
.gs-gate-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.gs-gate-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fg-muted);
    transition: all 0.3s ease;
}
.gs-gate-step.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #fff;
}
.gs-gate-step-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    transition: background 0.3s ease;
}
.gs-gate-step-line.active { background: var(--accent-primary); }

/* ----------------------------
   PERSONA BEST-FOR TAG
---------------------------- */
.gs-persona-best {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    opacity: 0.75;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .gs-persona-best {
    border-top-color: rgba(0,0,0,0.06);
}

/* ----------------------------
   PERSONA CARD SELECTED STATE
---------------------------- */
.gs-persona-card.selected {
    border-color: var(--accent-primary) !important;
    background: rgba(255, 85, 0, 0.08) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 0 0 2px rgba(255,85,0,0.3), 0 12px 32px rgba(255,85,0,0.15) !important;
}
.gs-persona-card.selected .gs-persona-icon {
    color: var(--accent-primary);
}
