/* ============================================
   ROWAN GUARDIAN — Design System
   Premium dark theme with botanical accents
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors — Earth Tone Palette */
    --bg-primary: #111210;
    --bg-secondary: #161815;
    --bg-tertiary: #1c1f1b;
    --bg-card: rgba(28, 31, 27, 0.75);
    --bg-card-hover: rgba(40, 48, 36, 0.85);
    --bg-glass: rgba(28, 31, 27, 0.5);

    /* Sage / Forest greens */
    --green-50: #f4f7f0;
    --green-100: #e2ebd8;
    --green-200: #c5d7b2;
    --green-300: #9dbd84;
    --green-400: #7aaa5d;
    --green-500: #5e8f45;
    --green-600: #4a7338;
    --green-700: #3b5c2d;

    /* Warm accent tones */
    --teal-400: #6b9e8a;
    --teal-500: #4f8070;
    --cyan-400: #8db8a0;
    --cyan-500: #6b9e8a;

    /* Terracotta / Amber accents */
    --terra-400: #c4784a;
    --terra-500: #a8623a;
    --amber-400: #d4a24e;
    --amber-500: #b8892e;

    --text-primary: #f0ede6;
    --text-secondary: rgba(240, 237, 230, 0.72);
    --text-tertiary: rgba(240, 237, 230, 0.45);

    --border: rgba(122, 170, 93, 0.14);
    --border-hover: rgba(122, 170, 93, 0.28);

    --gradient-main: linear-gradient(135deg, #7aaa5d, #d4a24e);
    --gradient-warm: linear-gradient(135deg, #d4a24e, #c4784a);
    --gradient-cool: linear-gradient(135deg, #6b9e8a, #7aaa5d);

    /* Spacing */
    --section-pad: 120px;
    --container-max: 1200px;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(122, 170, 93, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--green-400);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green-300);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Particles Background --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--green-400);
    opacity: 0;
    animation: floatParticle 15s infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #111210;
    box-shadow: 0 4px 20px rgba(122, 170, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(122, 170, 93, 0.4);
    color: #111210;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(122, 170, 93, 0.12);
    border-color: var(--green-400);
    color: var(--green-300);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
}

.btn-ghost:hover {
    color: var(--green-400);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 18px 44px;
    font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(17, 18, 16, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon svg {
    width: 36px;
    height: 36px;
}

.logo-icon img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Section Common --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(122, 170, 93, 0.12);
    color: var(--green-400);
    border: 1px solid rgba(122, 170, 93, 0.22);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(122, 170, 93, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(122, 170, 93, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(34, 197, 94, 0.04) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 170, 93, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 170, 93, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(122, 170, 93, 0.07);
    filter: blur(100px);
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(122, 170, 93, 0.1);
    border: 1px solid rgba(122, 170, 93, 0.18);
    font-size: 0.85rem;
    color: var(--green-300);
    width: fit-content;
    animation: fadeInUp 0.8s var(--ease) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-400);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.badge-sep {
    opacity: 0.3;
    margin: 0 4px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-subtitle strong {
    color: var(--green-400);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dashboard Preview --- */
.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s var(--ease) 0.5s both;
}

.dashboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s var(--ease);
}

.dashboard-preview:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #ef4444;
}

.preview-dots span:nth-child(2) {
    background: #f59e0b;
}

.preview-dots span:nth-child(3) {
    background: #22c55e;
}

.preview-title {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.preview-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 280px;
}

.preview-sidebar {
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    transition: var(--transition);
}

.sidebar-item span {
    font-size: 0.85rem;
}

.sidebar-item.active {
    background: rgba(122, 170, 93, 0.12);
    color: var(--green-400);
}

.preview-main {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(122, 170, 93, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(122, 170, 93, 0.12);
}

.weather-icon {
    font-size: 1.5rem;
}

.weather-temp {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-card {
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.mini-card.green {
    background: rgba(122, 170, 93, 0.1);
    border: 1px solid rgba(122, 170, 93, 0.18);
}

.mini-card.blue {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.mini-card.amber {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.mini-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.mini-label {
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

.mini-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.preview-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.chart-svg {
    width: 100%;
    height: 60px;
}

.chart-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s var(--ease) 1.5s forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeIn 1s var(--ease) 2.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Trusted Bar --- */
.trusted-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.trusted-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trusted-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trusted-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.partner-icon {
    font-size: 1.3rem;
}

.partner-sep {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.partner-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: var(--transition);
}

/* Give OPEN logo a visible white pill background so it reads on dark */
.partner-logo:first-child {
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-logo:first-child .partner-logo-img {
    height: 36px;
    filter: brightness(1.15) contrast(1.05);
}

/* Give Cognosense logo a premium gradient-border glow — they built this */
.partner-logo:last-child {
    position: relative;
    background: rgba(10, 18, 10, 0.85);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.08), inset 0 1px 0 rgba(74, 222, 128, 0.1);
    color: var(--green-300);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.partner-logo:last-child span {
    background: linear-gradient(135deg, var(--green-300), var(--cyan-400, #06b6d4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.partner-logo:hover .partner-logo-img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* --- Screenshots Showcase Section --- */
.screenshots-section {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
}

.screenshots-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber-400), transparent);
    opacity: 0.25;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.screenshot-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s var(--ease);
    cursor: pointer;
}

.screenshot-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.screenshot-card:hover img {
    transform: scale(1.03);
}

.screenshot-featured {
    grid-column: span 3;
}

.screenshot-featured img {
    max-height: 480px;
    object-fit: cover;
    object-position: top;
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(17, 18, 16, 0.92));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.screenshot-role {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-300);
}

.screenshot-name {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Screenshot click-to-feature transition */
.screenshot-card {
    transition: all 0.5s var(--ease);
}

.screenshot-card:not(.screenshot-featured)::after {
    content: 'Click to expand';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(17, 18, 16, 0.85);
    color: var(--green-300);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    border: 1px solid rgba(122, 170, 93, 0.3);
}

.screenshot-card:not(.screenshot-featured):hover::after {
    opacity: 1;
}

/* Hide "Click to expand" on touch devices — hover is unavailable */
@media (hover: none) {
    .screenshot-card:not(.screenshot-featured)::after {
        display: none;
    }
}

/* Screenshots CTA */
.screenshots-cta {
    text-align: center;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.screenshots-cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.screenshots-cta-hint {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

/* --- Features Section --- */
.features {
    padding: var(--section-pad) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-highlight {
    grid-column: span 2;
}

.feature-icon-wrap {
    margin-bottom: 20px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(122, 170, 93, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(122, 170, 93, 0.15);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(122, 170, 93, 0.1);
    color: var(--green-400);
    border: 1px solid rgba(122, 170, 93, 0.18);
}

/* --- Roles Section --- */
.roles {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
}

.roles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-400), transparent);
    opacity: 0.3;
}

.role-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.role-tab {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.role-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.role-tab.active {
    background: rgba(122, 170, 93, 0.15);
    border-color: var(--green-400);
    color: var(--green-400);
}

.role-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    animation: fadeInUp 0.5s var(--ease);
}

.role-panel.active {
    display: grid;
}

.role-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.role-who {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.role-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.role-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.role-feat span {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.role-dialect {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dialect-label {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 600;
}

.dialect-chip {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* --- AI Chat Preview --- */
.ai-chat-preview {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.chat-header-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-avatar {
    font-size: 1.2rem;
}

.chat-msg {
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.user-msg {
    background: rgba(122, 170, 93, 0.06);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.ai-msg {
    color: var(--text-secondary);
}

.ai-msg strong {
    color: var(--text-primary);
}

.ai-msg em {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.ai-msg table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.ai-msg table td {
    padding: 4px 8px;
    border-bottom: 1px solid var(--border);
}

/* --- AI Engine Section --- */
.ai-engine {
    padding: var(--section-pad) 0;
    position: relative;
}

.protocol-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.protocol-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    min-width: 180px;
}

.protocol-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #111210;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.protocol-connector {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-400), var(--cyan-400));
    opacity: 0.3;
    flex-shrink: 0;
}

.dual-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 24px;
}

.track {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.track-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.track h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 8px;
}

.track p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.track-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.track-vs span {
    font-size: 0.75rem;
    color: var(--green-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.vs-line {
    width: 2px;
    height: 24px;
    background: var(--border-hover);
}

.track-note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    font-style: italic;
}

/* --- Models Section --- */
.models-section {
    padding: 0 0 var(--section-pad);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.3s var(--ease);
    position: relative;
}

.model-card.featured {
    border-color: var(--green-400);
    box-shadow: var(--shadow-glow);
}

.model-card:hover {
    transform: translateY(-4px);
}

.model-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.model-badge.fast {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-400);
}

.model-badge.pro {
    background: rgba(122, 170, 93, 0.18);
    color: var(--green-400);
}

.model-badge.deep {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.model-badge.lite {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.model-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.model-name {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.model-stat {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.model-mult {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
    background: rgba(122, 170, 93, 0.12);
    color: var(--green-400);
}

/* --- Demo Section --- */
.demo-section {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    opacity: 0.3;
}

.demo-characters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.4s var(--ease);
    cursor: pointer;
}

.demo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.demo-avatar {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.demo-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 4px;
}

.demo-role {
    color: var(--green-400);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.demo-loc {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.demo-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.demo-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--green-400);
    background: rgba(122, 170, 93, 0.1);
    border: 1px solid rgba(122, 170, 93, 0.22);
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.demo-btn:hover {
    background: var(--gradient-main);
    color: #111210;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(122, 170, 93, 0.3);
}

.demo-cta {
    text-align: center;
}

.demo-note {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 16px;
}

/* --- School Section --- */
.school-section {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.school-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.04);
    filter: blur(80px);
}

.school-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.school-info .section-tag {
    display: inline-block;
}

.school-info .section-title {
    text-align: left;
}

.school-info>p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.school-themes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.theme-chip {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid;
}

.theme-chip.forest {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.theme-chip.ocean {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.theme-chip.sunset {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.theme-chip.galaxy {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.theme-chip.rainbow {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}

.theme-chip.bubblegum {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.theme-chip.midnight {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.reading-levels {
    margin-bottom: 24px;
}

.reading-levels h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.level em {
    color: var(--text-tertiary);
    font-size: 0.82rem;
}

.level-icon {
    font-size: 1.2rem;
}

.school-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

/* School Preview Card */
.school-preview {
    background: var(--bg-tertiary);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}

.school-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    font-weight: 700;
    font-size: 0.95rem;
}

.school-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    position: relative;
    transition: var(--transition);
}

.toggle-switch.on {
    background: var(--green-500);
}

.toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch.on .toggle-knob {
    left: 23px;
}

.school-dash {
    padding: 20px;
}

.xp-bar {
    height: 28px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    transition: width 1.5s var(--ease);
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.school-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.school-card {
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
}

.school-card.sc-green {
    background: rgba(122, 170, 93, 0.12);
    border: 1px solid rgba(122, 170, 93, 0.22);
}

.school-card.sc-blue {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.school-card.sc-purple {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.sc-emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.sc-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.sc-val {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.school-challenge {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(244, 63, 94, 0.08);
    border: 1px dashed rgba(244, 63, 94, 0.3);
    font-size: 0.85rem;
    text-align: center;
    color: #fb7185;
    font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
    background: var(--bg-secondary);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(122, 170, 93, 0.07) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.footer-brand>p {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-links a {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    line-height: 1.8;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
/* ============================================
   RESPONSIVE DESIGN — All Screen Sizes
   Fold phones · Phones · Tablets · Laptops · Desktop
   ============================================ */

/* --- Desktop Navigation Dropdown --- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-dropdown {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(22, 24, 21, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s var(--ease);
    z-index: 1100;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.touch-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s var(--ease);
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(122, 170, 93, 0.12);
    color: var(--green-300);
}

/* --- Coming Soon Tag --- */
.tag-soon {
    background: rgba(212, 162, 78, 0.15);
    color: var(--amber-400);
    border: 1px solid rgba(212, 162, 78, 0.3);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 6px;
    display: inline-block;
}

/* --- Share Button & Popover (Desktop) --- */
.btn-share-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-share-desktop:hover {
    background: rgba(122, 170, 93, 0.12);
    color: var(--green-300);
    border-color: rgba(122, 170, 93, 0.3);
}

.btn-nav-cta {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
}

.share-popover {
    position: fixed;
    top: 70px;
    right: 24px;
    background: rgba(22, 24, 21, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.share-popover.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.share-popover-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.share-icons-row {
    display: flex;
    gap: 8px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.share-icon:hover {
    background: rgba(122, 170, 93, 0.15);
    color: var(--green-300);
    border-color: rgba(122, 170, 93, 0.3);
    transform: translateY(-2px);
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

.share-icon[data-share="copy"].copied {
    background: rgba(122, 170, 93, 0.25);
    color: var(--green-300);
}

/* Mobile-only elements hidden on desktop */
.mobile-nav-extras {
    display: none;
}

/* ========== LARGE DESKTOP (>1280px) ========== */
/* Default styles apply */

/* ========== SMALL DESKTOP / LARGE TABLET (≤1024px) ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badge {
        justify-self: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .dashboard-preview {
        transform: none;
    }

    .dashboard-preview:hover {
        transform: none;
    }

    .role-panel {
        grid-template-columns: 1fr;
    }

    .school-layout {
        grid-template-columns: 1fr;
    }

    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-highlight {
        grid-column: span 1;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-featured {
        grid-column: span 2;
    }

    .protocol-flow {
        flex-direction: column;
    }

    .protocol-connector {
        width: 2px;
        height: 20px;
    }

    .protocol-step {
        width: 100%;
        max-width: 400px;
    }

    .dual-track {
        flex-direction: column;
        gap: 16px;
    }

    .track-vs {
        flex-direction: row;
    }

    .vs-line {
        width: 40px;
        height: 2px;
    }
}

/* ========== TABLET (≤768px) — Mobile Nav Activates ========== */
@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
    }

    /* --- Mobile Nav Drawer --- */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(17, 18, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 999;
        padding: 80px 32px 40px;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    /* Show mobile extras in drawer */
    .mobile-nav-extras {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        width: 100%;
        max-width: 280px;
    }

    .mobile-share-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
    }

    .mobile-share-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .mobile-share-row .share-icons-row {
        justify-content: center;
    }

    /* Dropdown on mobile — tap to expand */
    .nav-dropdown {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        margin-top: 8px;
        padding: 4px;
        min-width: 220px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
        box-shadow: none;
    }

    .nav-dropdown.mobile-expanded .dropdown-menu {
        max-height: 500px;
        padding: 8px;
    }

    .dropdown-item {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.92rem;
    }

    /* Hide desktop share, show mobile toggle */
    .nav-actions {
        gap: 8px;
    }

    .btn-share-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    /* --- Content adjustments --- */
    .hero {
        padding-top: 100px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        display: none;
    }

    /* Hide dashboard preview on mobile — too complex for phone screens */
    .hero-visual {
        display: none;
    }

    .models-grid {
        grid-template-columns: 1fr 1fr;
    }

    .demo-characters {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .school-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-featured {
        grid-column: span 1;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Hide "Click to expand" tooltip on mobile */
    .screenshot-card:not(.screenshot-featured)::after {
        display: none;
    }

    /* Role tabs: horizontal scroll for better mobile UX */
    .role-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 12px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .role-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Trusted bar: stack vertically on mobile */
    .trusted-bar .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .trusted-logos {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .partner-sep {
        display: none;
    }

    /* Hide secondary ghost button on mobile (prevents subpage nav overflow) */
    .nav-actions .btn-ghost {
        display: none;
    }

    /* Demo buttons: meet 44px minimum tap target */
    .demo-btn {
        padding: 12px 24px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer safe area for gesture-bar / notched phones */
    .footer-bottom {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    /* Role info heading: tighter on mobile */
    .role-info h3 {
        font-size: 1.5rem;
    }

    /* Chat messages: breathing room on mobile */
    .chat-msg {
        padding: 14px 18px;
    }

    /* Protocol flow: better mobile spacing */
    .protocol-step {
        min-width: auto;
    }
}

/* ========== PHONE (≤480px) ========== */
@media (max-width: 480px) {
    :root {
        --section-pad: 56px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 0.9rem;
    }

    .demo-characters {
        grid-template-columns: 1fr;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .role-tabs {
        gap: 6px;
        flex-wrap: wrap;
    }

    .role-tab {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .school-cards {
        grid-template-columns: 1fr 1fr;
    }

    .cta-features {
        flex-direction: column;
        gap: 8px;
    }

    .cta-content .section-title {
        font-size: 1.4rem;
    }

    .btn-xl {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .chat-msg {
        font-size: 0.88rem;
    }

    .dashboard-preview {
        padding: 16px;
        border-radius: 12px;
    }

    .btn-nav-cta {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .logo-icon img {
        height: 72px;
        width: auto;
    }

    /* Full-width CTA buttons on phone */
    .cta-actions,
    .cta-buttons {
        flex-direction: column;
    }

    .cta-actions .btn,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tighter trusted bar */
    .trusted-label {
        font-size: 0.78rem;
    }

    .partner-logo-img {
        height: 34px;
    }

    /* Demo cards: better mobile spacing */
    .demo-card {
        padding: 24px 20px;
    }

    /* Protocol steps: responsive sizing */
    .protocol-step {
        padding: 16px 20px;
    }

    /* Subpage hero actions: full-width on phone */
    .subpage-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== SMALL PHONE / FOLD (≤360px) ========== */
@media (max-width: 360px) {
    :root {
        --section-pad: 44px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-badge {
        font-size: 0.62rem;
        padding: 5px 10px;
    }

    .badge-sep {
        display: none;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-icon {
        font-size: 1.6rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.82rem;
    }

    .school-cards {
        grid-template-columns: 1fr;
    }

    .role-tab {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .cta-content .section-title {
        font-size: 1.2rem;
    }

    .btn-xl {
        padding: 12px 20px;
        font-size: 0.82rem;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .nav-links.open {
        padding: 70px 20px 30px;
        gap: 14px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .dropdown-item {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .mobile-nav-extras {
        gap: 12px;
    }

    .share-icon {
        width: 36px;
        height: 36px;
    }

    .share-icon svg {
        width: 16px;
        height: 16px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-icon svg {
        width: 28px;
        height: 28px;
    }

    .logo-icon img {
        height: 56px;
        width: auto;
    }

    .btn-nav-cta {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Compact demo cards for fold phones */
    .demo-card {
        padding: 20px 16px;
    }

    .demo-avatar {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .demo-btn {
        padding: 10px 18px;
        font-size: 0.78rem;
    }

    /* Ultra-compact trusted bar */
    .partner-logo-img {
        height: 28px;
    }

    .trusted-bar {
        padding: 28px 0;
    }

    .partner-logo:first-child {
        padding: 6px 14px;
    }
}

/* ========== GALAXY FOLD / ULTRA-NARROW (≤280px) ========== */
@media (max-width: 280px) {
    .container {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .hero-badge {
        font-size: 0.55rem;
        padding: 4px 8px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .btn-nav-cta {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }

    .logo-text {
        font-size: 0.82rem;
    }

    .logo-icon img {
        height: 48px;
        width: auto;
    }
}

/* ========== LANDSCAPE PHONE ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links.open {
        padding: 60px 16px 20px;
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .mobile-nav-extras {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-top: 10px;
        max-width: 100%;
    }

    .mobile-share-row {
        flex-direction: row;
        align-items: center;
    }
}

/* ========== PRINT ========== */
@media print {

    .navbar,
    .mobile-toggle,
    .share-popover,
    .mobile-nav-extras,
    .hero-bg,
    .particles-canvas {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        padding-top: 20px;
    }
}

/* ========== HUMAN VERIFICATION CHALLENGE ========== */
.challenge-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadein 0.25s ease;
}

.challenge-overlay.open {
    display: flex;
}

.challenge-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.35s var(--ease);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.challenge-header {
    margin-bottom: 24px;
}

.challenge-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
}

.challenge-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.challenge-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.challenge-option {
    font-size: 2rem;
    padding: 16px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.challenge-option:hover {
    border-color: var(--green-400);
    background: rgba(122, 170, 93, 0.08);
    transform: scale(1.08);
}

.challenge-option:active {
    transform: scale(0.95);
}

.challenge-option.correct {
    border-color: var(--green-400);
    background: rgba(122, 170, 93, 0.2);
    animation: pulse-green 0.5s ease;
}

.challenge-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    animation: shake 0.4s ease;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(122, 170, 93, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(122, 170, 93, 0.3);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.challenge-hint {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    min-height: 20px;
    transition: all 0.2s ease;
}

.challenge-hint.error {
    color: #ef4444;
}

.challenge-hint.success {
    color: var(--green-400);
    font-weight: 600;
}

.challenge-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.challenge-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 360px) {
    .challenge-modal {
        padding: 28px 20px 24px;
    }

    .challenge-grid {
        gap: 8px;
    }

    .challenge-option {
        font-size: 1.6rem;
        padding: 12px 6px;
    }
}


/* ========== EARLY ACCESS / WAITLIST ========== */
.early-access {
    padding: calc(var(--section-pad) * 1.5) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(122, 170, 93, 0.05) 30%, rgba(122, 170, 93, 0.08) 50%, rgba(122, 170, 93, 0.05) 70%, transparent 100%);
}

.early-access-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1.5px solid rgba(122, 170, 93, 0.25);
    border-radius: var(--radius-xl);
    padding: 64px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(122, 170, 93, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.early-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-400), var(--cyan-400, #06b6d4), transparent);
}

.early-access-content .section-tag {
    margin-bottom: 24px;
}

.early-access-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--green-400), var(--green-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.early-access-content>p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Native waitlist form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
    margin-bottom: 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-field label .required {
    color: var(--green-400);
    font-weight: 700;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.input-icon-wrap input:focus~.input-icon,
.input-icon-wrap:focus-within .input-icon {
    color: var(--green-400);
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form input:hover {
    border-color: rgba(122, 170, 93, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.waitlist-form input:focus {
    border-color: var(--green-400);
    background: rgba(122, 170, 93, 0.06);
    box-shadow: 0 0 0 3px rgba(122, 170, 93, 0.12);
}

/* Custom select dropdown */
.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.waitlist-form select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.25s ease;
}

.waitlist-form select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
}

.waitlist-form select:hover {
    border-color: rgba(122, 170, 93, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.waitlist-form select:focus {
    border-color: var(--green-400);
    background: rgba(122, 170, 93, 0.06);
    box-shadow: 0 0 0 3px rgba(122, 170, 93, 0.12);
}

.select-chevron {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.select-wrap:focus-within .select-chevron {
    color: var(--green-400);
    transform: rotate(180deg);
}

/* Submit button */
.waitlist-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 24px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.waitlist-submit .submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state */
.waitlist-success {
    text-align: center;
    padding: 32px 0 8px;
    animation: fadeInUp 0.6s var(--ease) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waitlist-success .success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounceIn 0.6s ease 0.2s both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.waitlist-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-400);
    margin-bottom: 12px;
}

.waitlist-success p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.privacy-note {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

.privacy-note a {
    color: var(--green-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ========== STICKY WAITLIST BANNER ========== */
.waitlist-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 18, 16, 0.92);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    z-index: 999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: slideUpBanner 0.5s var(--ease) both;
    animation-delay: 2s;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.waitlist-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.waitlist-banner-content .btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.waitlist-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.waitlist-close:hover {
    color: var(--text-primary);
}

/* Early access + banner mobile */
@media (max-width: 480px) {
    .early-access-card {
        padding: 36px 20px;
    }

    .early-access-content h2 {
        font-size: 1.5rem;
    }

    .waitlist-form input[type="email"],
    .waitlist-form input[type="text"],
    .waitlist-form select {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .waitlist-banner {
        padding: 12px 16px;
    }

    .waitlist-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        font-size: 0.88rem;
    }

    .waitlist-banner-content .btn-sm {
        width: 100%;
    }
}

/* ========== DEMO ROLE PICKER MODAL ========== */
.demo-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-picker-overlay.open {
    display: flex;
}

.demo-picker-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.35s var(--ease);
    -webkit-overflow-scrolling: touch;
}

/* Gradient top accent line */
.demo-picker-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, transparent, var(--green-400), var(--cyan-400, #06b6d4), transparent);
}

/* Custom scrollbar inside modal */
.demo-picker-modal::-webkit-scrollbar {
    width: 6px;
}

.demo-picker-modal::-webkit-scrollbar-track {
    background: transparent;
}

.demo-picker-modal::-webkit-scrollbar-thumb {
    background: rgba(122, 170, 93, 0.3);
    border-radius: 3px;
}

.demo-picker-header {
    margin-bottom: 24px;
}

.demo-picker-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
}

.demo-picker-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-picker-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

.demo-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.demo-picker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s var(--ease);
    color: var(--text-primary);
    font-family: var(--font-body);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.demo-picker-card:hover {
    border-color: var(--green-400);
    background: rgba(122, 170, 93, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(122, 170, 93, 0.15);
}

.demo-picker-card:active {
    transform: scale(0.97);
    box-shadow: none;
}

.dpc-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.dpc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dpc-name {
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dpc-role {
    font-size: 0.78rem;
    color: var(--green-400);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dpc-loc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.demo-picker-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.demo-picker-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    line-height: 1;
}

.demo-picker-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Demo Picker Responsive ---- */

/* Tablets */
@media (max-width: 600px) {
    .demo-picker-modal {
        padding: 32px 24px 24px;
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .demo-picker-header h3 {
        font-size: 1.3rem;
    }

    .demo-picker-header p {
        font-size: 0.85rem;
    }
}

/* Standard phones (iPhone 12/13/14/15, Pixel, Galaxy S) */
@media (max-width: 480px) {
    .demo-picker-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .demo-picker-modal {
        padding: 28px 18px 22px;
        max-height: 85vh;
        max-height: 85dvh;
        border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
        animation: slideUpSheet 0.35s var(--ease);
    }

    .demo-picker-grid {
        gap: 8px;
    }

    .demo-picker-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .dpc-emoji {
        font-size: 1.5rem;
    }

    .dpc-name {
        font-size: 0.82rem;
    }

    .dpc-role {
        font-size: 0.72rem;
    }

    .dpc-loc {
        font-size: 0.68rem;
    }
}

/* Small phones (iPhone SE, Galaxy A series) */
@media (max-width: 375px) {
    .demo-picker-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .demo-picker-card {
        padding: 12px 14px;
    }

    .demo-picker-modal {
        padding: 24px 16px 20px;
    }

    .demo-picker-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .demo-picker-header h3 {
        font-size: 1.15rem;
    }

    .demo-picker-header {
        margin-bottom: 16px;
    }
}

/* Fold / ultra-narrow */
@media (max-width: 280px) {
    .demo-picker-overlay {
        padding: 8px;
    }

    .demo-picker-modal {
        padding: 20px 12px 16px;
    }

    .demo-picker-header h3 {
        font-size: 1.05rem;
    }

    .demo-picker-card {
        padding: 10px 10px;
        gap: 8px;
    }

    .dpc-emoji {
        font-size: 1.3rem;
    }
}

/* Bottom-sheet slide-up for mobile */
@keyframes slideUpSheet {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landscape phones: side-by-side grid */
@media (max-height: 500px) and (orientation: landscape) {
    .demo-picker-overlay {
        padding: 12px;
        align-items: center;
    }

    .demo-picker-modal {
        max-height: 90vh;
        max-height: 90dvh;
        padding: 24px 20px 20px;
    }

    .demo-picker-header {
        margin-bottom: 12px;
    }

    .demo-picker-header h3 {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .demo-picker-header p {
        font-size: 0.78rem;
    }

    .demo-picker-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .demo-picker-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 10px;
    }

    .demo-picker-card {
        padding: 8px 10px;
        gap: 8px;
    }

    .dpc-emoji {
        font-size: 1.3rem;
    }

    .dpc-name {
        font-size: 0.78rem;
    }

    .dpc-role {
        font-size: 0.68rem;
    }

    .dpc-loc {
        display: none;
    }
}

/* --- Demo Coming Soon --- */
.demo-coming-soon {
    text-align: center;
    padding: 48px 0 0;
}

.coming-soon-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.coming-soon-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(122, 170, 93, 0.08);
    border: 1px solid rgba(122, 170, 93, 0.18);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.coming-soon-role:hover {
    background: rgba(122, 170, 93, 0.15);
    border-color: var(--green-400);
    color: var(--text-primary);
    transform: translateY(-2px);
}