/* ============================================
   VSMONSTER - Landing Page Styles
   Google Gemini 3 Hackathon 2026
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    
    /* Backgrounds */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.5);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Hide page content until loaded */
body:not(.loaded) .hero,
body:not(.loaded) .navbar {
    visibility: hidden;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.loading-screen.done {
    opacity: 0;
    pointer-events: none;
}

.loading-slide {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-slide.active {
    opacity: 1;
}

.loading-img {
    width: 15vw;
    min-width: 120px;
    max-width: 300px;
    height: auto;
}

#loadSlide1 .loading-img {
    width: 30vw;
    min-width: 200px;
    max-width: 400px;
}

#loadSlide2 .loading-img {
    width: 30vw;
    min-width: 200px;
    max-width: 400px;
}

#loadSlide3 .loading-img {
    width: 30vw;
    min-width: 200px;
    max-width: 400px;
}

/* Blue Sweep Transition */
.blue-sweep {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #2563eb;
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
    opacity: 0;
}

.blue-sweep.active {
    opacity: 1;
    animation: sweepDiagonal 1s cubic-bezier(0.65, 0, 0.35, 0.5) forwards;
}

@keyframes sweepDiagonal {
    0% { transform: translateX(-120%) skewX(-15deg); }
    100% { transform: translateX(120%) skewX(-15deg); }
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition-normal);
    background: transparent;
    opacity: 0;
    transform: translateY(-100%);
}

.navbar.nav-visible {
    opacity: 1;
    /* Avoid creating a containing block so mobile menu layers (position: fixed) are truly viewport-fixed. */
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, border 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.91rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

.nav-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.91rem;
}

.nav-cta .btn svg {
    flex-shrink: 0;
}

/* Mobile-only: Install link inside the opened hamburger menu (keeps desktop CTA unchanged). */
.nav-links .nav-install-link {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* Fullscreen frosted-glass layer shown when the mobile menu is open */
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Audience Mode Toggle */
.mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.91rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.mode-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.mode-btn:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mode-icon {
    font-size: 1.03rem;
}

.mode-label {
    font-size: 0.91rem;
}

/* Audience Mode Visibility */
body.mode-user [data-audience="judge"] {
    display: none !important;
}

body.mode-judge [data-audience="user"] {
    display: none !important;
}

/* Both audience sections always visible */
[data-audience="both"] {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.17rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-icon {
    font-size: 1.79rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    min-height: 56px;
    font-size: 1.3rem;
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--bg-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    display: none;
}

/* Hero Mode Toggle */
.hero-mode-toggle {
    margin-bottom: 2rem;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 1.46rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    font-size: 1.79rem;
}

.hero-title {
    font-size: clamp(3.25rem, 7.8vw, 5.85rem);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.63rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.43rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.06rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.46rem;
    color: var(--text-muted);
}

/* Hero "Better" Title */
.hero-title-better {
    text-align: center;
    margin-bottom: 1.5rem;
}

.better-text {
    font-size: clamp(5.46rem, 18.2vw, 14.3rem);
    font-weight: 900;
    line-height: 1;
    display: block;
    letter-spacing: 0.05em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
}

.better-text.animate-pulse {
    animation: betterPulse 3s ease-in-out infinite;
}

@keyframes betterPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.4)); }
    50% { filter: drop-shadow(0 0 80px rgba(99, 102, 241, 0.7)); }
}

/* Hero entrance animation - elements initially hidden */
.hero-content .hero-mode-toggle,
.hero-content .hero-title-better,
.hero-content .hero-tagline,
.hero-content .hero-sub,
.hero-content .hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content .hero-mode-toggle.hero-visible,
.hero-content .hero-title-better.hero-visible,
.hero-content .hero-tagline.hero-visible,
.hero-content .hero-sub.hero-visible,
.hero-content .hero-cta.hero-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator entrance (needs translateX(-50%) to stay centered) */
.hero .scroll-indicator {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero .scroll-indicator.hero-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Letter-by-letter animation for 更好 */
.better-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.better-char.char-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    font-size: clamp(1.17rem, 2.28vw, 1.82rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-sub {
    font-size: clamp(0.91rem, 1.43vw, 1.24rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Hero Visual */
.hero-visual {
    display: none; /* Hidden on mobile, shown on larger screens */
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.device {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.device-screen {
    border-radius: var(--radius-md);
    width: 100%;
}

.phone {
    width: 180px;
    animation: float 6s ease-in-out infinite;
}

.laptop {
    width: 400px;
    animation: float 6s ease-in-out infinite 0.5s;
}

.connection-beam {
    position: relative;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ufo-floating {
    width: 80px;
    animation: floatRotate 4s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator dotlottie-player {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.scroll-indicator:hover dotlottie-player {
    opacity: 1;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 1.11rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.6rem, 5.2vw, 3.9rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.43rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--secondary);
}

/* ============================================
   Concept Section
   ============================================ */
.concept {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1a 100%);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.concept-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

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

.card-icon {
    font-size: 4.88rem;
    margin-bottom: 20px;
}

.concept-card h3 {
    font-size: 1.95rem;
    margin-bottom: 16px;
}

.concept-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-features span {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 1.04rem;
    color: var(--primary-light);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 4.06rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.63rem;
    margin-bottom: 8px;
}

.feature-title-zh {
    font-size: 1.17rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.24rem;
}

/* See Others Button */
.see-others-cta {
    text-align: center;
    margin-top: 3rem;
}

.see-others-btn {
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 100px;
}

/* ============================================
   Story Section
   ============================================ */
.story {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a14 50%, var(--bg-dark) 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.time-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.17rem;
    white-space: nowrap;
}

.timeline-content {
    padding-top: 50px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.story-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.story-card.highlight-card {
    border-color: var(--secondary);
}

.story-card.evolution-card {
    border-color: var(--accent);
}

.story-visual {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text {
    padding: 24px;
}

.story-text h3 {
    font-size: 1.63rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-badge {
    font-size: 0.91rem;
    padding: 4px 10px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-weight: 500;
}

/* Chat Bubbles */
.chat-bubble {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-bubble.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-message {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    max-width: 80%;
}

.chat-bubble.user .chat-message {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.chat-bubble.encouragement .chat-message {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.chat-message p {
    font-size: 1.24rem;
    color: var(--text-primary);
}

.photo-indicator {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.system-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.ufo-icon {
    font-size: 2.44rem;
}

.system-message p {
    font-size: 1.17rem;
    color: var(--text-secondary);
}

.code-preview {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', monospace;
    font-size: 1.11rem;
}

.code-status {
    color: var(--success);
}

/* ============================================
   Architecture Section
   ============================================ */
.architecture {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

/* Arch Slider (horizontal carousel) */
.arch-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.arch-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Navigation Dots for Architecture Slider */
.arch-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.arch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.arch-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.arch-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.arch-dot.active:hover {
    background: var(--primary);
}

.arch-slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.arch-layer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation Dots */
.arch-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
}

.arch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.arch-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.arch-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.arch-layer h4 {
    text-align: center;
    font-size: 1.11rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.arch-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.arch-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
}

.arch-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.arch-icon {
    font-size: 3.25rem;
    display: block;
    margin-bottom: 8px;
}

.arch-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.arch-item small {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.arch-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.arch-highlight.ufo {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid var(--primary);
}

.gemini-logo {
    width: 40px;
    height: 40px;
}

.arch-content {
    text-align: left;
}

.arch-title {
    display: block;
    font-weight: 700;
    font-size: 1.43rem;
    margin-bottom: 4px;
}

.arch-content small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.11rem;
}

.monster-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.arch-note {
    text-align: center;
    font-size: 1.11rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ============================================
   Milestones Section
   ============================================ */
.milestones {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1a 100%);
}

.milestone-track {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.milestone-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent), var(--success));
}

.milestone-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 48px;
}

.milestone-icon {
    position: absolute;
    left: 20px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.03rem;
    z-index: 1;
}

.milestone-item.active .milestone-icon {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.milestone-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
}

.milestone-item:hover .milestone-content {
    border-color: var(--primary);
}

.milestone-item.active .milestone-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.milestone-phase {
    font-size: 1.04rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: block;
}

.milestone-content h3 {
    font-size: 1.63rem;
    margin-bottom: 12px;
}

.milestone-content p {
    color: var(--text-secondary);
    font-size: 1.24rem;
    margin-bottom: 12px;
}

.milestone-status {
    font-size: 1.04rem;
    color: var(--text-muted);
}

.milestone-status.current {
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   Judge Panel Section
   ============================================ */
.judge-panel {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #0d0d1f 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.judge-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.judge-header {
    text-align: center;
    margin-bottom: 48px;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.score-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.score-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.score-card:hover::before {
    opacity: 1;
}

.score-weight {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.score-card h3 {
    font-size: 1.43rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.score-card p {
    font-size: 1.17rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.score-link {
    font-size: 1.11rem;
    color: var(--primary-light);
    font-weight: 600;
    transition: color 0.2s ease;
}

.score-link:hover {
    color: var(--secondary);
}

/* ============================================
   Demo Video Section
   ============================================ */
.demo-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.demo-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.demo-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.demo-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-placeholder .demo-play-btn,
.demo-placeholder p {
    position: relative;
    z-index: 1;
}

.demo-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.demo-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.25rem;
    color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    transition: transform 0.3s ease;
}

.demo-placeholder:hover .demo-play-btn {
    transform: scale(1.1);
}

.demo-placeholder p {
    color: #fff;
    font-size: 1.63rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.demo-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: none;
}

/* ============================================
   Examples Section
   ============================================ */
.examples-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.example-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.example-icon {
    font-size: 4.88rem;
    margin-bottom: 1rem;
}

.example-card h3 {
    font-size: 1.56rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.example-card p {
    font-size: 1.24rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e1b4b 50%, var(--bg-dark) 100%);
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-monster {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    animation: float 3s ease-in-out infinite;
}

.download-content h2 {
    font-size: clamp(2.34rem, 5.2vw, 3.25rem);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-content > p {
    color: var(--text-secondary);
    font-size: 1.43rem;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.download-note {
    /* Keep the support line on a single line (as requested) */
    font-size: clamp(0.91rem, 2.25vw, 1.11rem);
    color: var(--text-muted);
    white-space: nowrap;
    text-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 0 8px;
    scrollbar-width: none;
}

.download-note::-webkit-scrollbar {
    display: none;
}

/* ============================================
   Time Machine Section
   ============================================ */
.time-machine {
    padding: var(--section-padding) 0 calc(var(--section-padding) * 0.5);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Marquee Carousel */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: max-content;
    animation: marquee 240s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navigation Dots for Time Machine (mobile) */
.time-machine-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0 16px;
}

.time-machine-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.time-machine-dot.active {
    background: var(--primary);
    width: 24px;
    min-width: 24px;
    border-radius: 4px;
}

.time-machine-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.time-machine-dot.active:hover {
    background: var(--primary);
}

.future-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    min-width: 380px;
    max-width: 420px;
    flex-shrink: 0;
}

.future-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.future-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.future-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.55rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.future-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.future-avatar {
    font-size: 4.06rem;
}

.future-content h3 {
    font-size: 1.43rem;
    color: var(--primary-light);
    margin-bottom: 2px;
}

.future-role {
    display: block;
    font-size: 0.98rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.future-content blockquote {
    font-size: 1.24rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin: 0;
    display: none;
}

.future-content blockquote.show {
    display: block;
}

.future-toggle-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition-normal);
}

.future-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.future-toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
}

/* ============================================
   Vision Section
   ============================================ */
.vision-section {
    padding: var(--section-padding) 0 calc(var(--section-padding) * 1.5);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0a2a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.vision-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.vision-dream {
    font-size: clamp(1.43rem, 2.6vw, 1.82rem);
    color: var(--text-secondary);
    line-height: 2;
    margin: 2rem 0 3rem;
}

.vision-dream strong {
    color: var(--text-primary);
}

.vision-traits {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 3rem;
    overflow-x: auto;
    max-width: 100%;
    padding: 0 8px;
    scrollbar-width: none;
}

.vision-traits::-webkit-scrollbar {
    display: none;
}

.trait-tag {
    padding: 0.7rem 1.35rem;
    border-radius: 50px;
    font-size: clamp(1.04rem, 1.9vw, 1.37rem);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--primary-light);
    transition: var(--transition-normal);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
    white-space: nowrap;
    flex: 0 0 auto;
}

.trait-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.vision-closing {
    font-size: 1.56rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2.6rem, 5.2vw, 3.9rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.63rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: #050508;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 60px;
    height: 60px;
}

.footer-brand p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.95rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 1.17rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 1.11rem;
}

.badge img {
    width: 20px;
    height: 20px;
}

.footer-credits p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hackathon-badge {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 1.11rem;
    color: var(--text-muted);
}

/* ============================================
   Founder Card
   ============================================ */
.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.founder-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.founder-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.founder-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.founder-card:hover .founder-photo {
    border-color: var(--primary);
}

.founder-text {
    text-align: left;
}

.founder-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.63rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.founder-title {
    font-size: 1.17rem;
    color: var(--secondary);
    font-weight: 500;
}

.founder-links {
    display: flex;
    gap: 1.5rem;
}

.founder-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 1.11rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.founder-link:hover {
    color: var(--primary-light);
}

.founder-link svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.founder-link:hover svg {
    opacity: 1;
}

/* Mobile founder card */
@media (max-width: 480px) {
    .founder-card {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .founder-photo {
        width: 52px;
        height: 52px;
    }

    .founder-name {
        font-size: 1.43rem;
    }

    .founder-links {
        gap: 1rem;
    }

    .founder-link span {
        display: none;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Enhanced Responsive Design
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: transparent;
        flex-direction: column;
        padding: calc(120px + env(safe-area-inset-top)) 20px calc(220px + env(safe-area-inset-bottom));
        gap: 14px;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 999;
        border-left: none;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a:not(.btn) {
        display: block;
        width: 100%;
        max-width: 420px;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        font-size: 1.63rem;
        letter-spacing: 0.01em;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Mobile menu: hide duplicate Install (using nav-cta instead). */
    .nav-links .nav-install-link {
        display: none;
    }

    .nav-cta {
        display: none;
        position: fixed;
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 12px;
        z-index: 1000;
        width: 100%;
        max-width: 420px;
        padding: 0 20px;
    }

    .nav-cta.active {
        display: flex;
    }

    .nav-cta .btn {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 1.1rem;
    }

    .nav-cta .btn-outline {
        display: inline-flex;
    }

    /* Mode Toggle Mobile */
    .mode-toggle {
        padding: 2px;
    }

    .mode-btn {
        padding: 5px 10px;
    }

    .mode-label {
        font-size: 0.91rem;
    }

    /* Hero Mobile */
    .hero {
        padding: 100px 16px 40px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.24rem;
    }

    .hero-description {
        font-size: 1.17rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .stat {
        min-width: 80px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 8px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        word-break: keep-all;
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    /* Concept Grid Mobile */
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-marker {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 16px;
        z-index: 2;
    }

    .time-badge {
        font-size: 1.14rem;
        padding: 6px 14px;
    }

    .timeline-content {
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Milestone Mobile */
    .milestone-line {
        left: 16px;
    }

    .milestone-item {
        padding-left: 52px;
    }

    .milestone-icon {
        left: -4px;
        width: 36px;
        height: 36px;
        font-size: 1.63rem;
    }

    /* Architecture Mobile */
    .arch-slider {
        max-width: 100%;
    }

    .arch-slide {
        padding: 0 8px;
    }

    .arch-items {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .arch-item {
        width: 100%;
        padding: 12px;
    }

    .arch-icon {
        font-size: 2.5rem;
    }

    .arch-item span {
        font-size: 0.9rem;
    }

    .arch-item small {
        font-size: 0.8rem;
    }

    .arch-highlight {
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
    }

    /* Gemini highlight specific - prevent overflow */
    .arch-highlight.gemini-glow {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .arch-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .arch-title {
        font-size: 1.1rem;
    }

    .arch-content small {
        font-size: 0.8rem;
        display: block;
        word-wrap: break-word;
        line-height: 1.4;
    }

    .gemini-logo {
        width: 32px;
        height: 32px;
    }

    .arch-layer {
        padding: 16px;
        min-height: 150px;
        max-width: 100%;
        overflow: hidden;
    }

    .arch-note {
        font-size: 0.95rem;
    }

    /* Scoring Grid Mobile */
    .scoring-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .score-weight {
        font-size: 2.6rem;
    }

    /* Section Headers Mobile */
    .section-title {
        font-size: 2.28rem;
    }

    .section-subtitle {
        font-size: 1.17rem;
    }

    /* Persona Selector Mobile */
    .persona-selector {
        margin-top: 20px;
    }

    .category-group {
        justify-content: center;
    }

    .category-label {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
        margin-right: 0;
    }

    .persona-btn {
        padding: 7px 12px;
        font-size: 0.98rem;
    }

    /* Gemini Reasons Mobile */
    .gemini-reasons {
        grid-template-columns: 1fr;
    }

    /* Impact Text Mobile */
    .impact-text {
        padding: 0 16px;
        font-size: 1.79rem;
    }

    /* CTA Section Mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile */
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }

    /* Demo Section Mobile */
    .demo-play-btn {
        width: 60px;
        height: 60px;
        font-size: 2.44rem;
    }

    /* Story Card Mobile */
    .story-card {
        flex-direction: column;
        width: 90vw;
        max-width: 90vw;
    }

    .story-visual {
        min-width: auto;
        max-height: 200px;
    }

    .story-image {
        max-height: 200px;
    }

    .chat-message {
        max-width: 95%;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Time Machine Mobile - swipeable with snap */
    .marquee-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        mask-image: none;
        -webkit-mask-image: none;
        padding: 0 16px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .marquee-wrapper::-webkit-scrollbar {
        display: none;
    }

    .time-machine-dots {
        display: flex;
    }

    .marquee-track {
        animation: none !important;
        gap: 1rem;
        padding-right: 16px;
    }

    .marquee-wrapper:hover .marquee-track {
        animation-play-state: running;
    }

    .future-card {
        padding: 1.5rem;
        min-width: 336px;
        max-width: 384px;
        scroll-snap-align: center;
    }

    .future-year {
        font-size: 4.06rem;
    }

    .future-content blockquote {
        font-size: 1.11rem;
    }

    .vision-traits {
        gap: 0.75rem;
    }

    .trait-tag {
        padding: 0.5rem 1.5rem;
        font-size: 1.24rem;
    }

    .better-text {
        font-size: clamp(6.5rem, 29.25vw, 16.25rem);
    }

    /* Fix hero content alignment */
    .hero-content {
        padding: 0 8px;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-tagline {
        font-size: 1.3rem;
        padding: 0 4px;
    }

    .hero-sub {
        font-size: 1.1rem;
        padding: 0 4px;
    }

    /* Features 3-column to 1-column on mobile */
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    .hero-title {
        font-size: 2.08rem;
    }

    .hero-badge {
        font-size: 0.98rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 1.95rem;
    }

    .stat-label {
        font-size: 0.91rem;
    }

    .section-title {
        font-size: 1.95rem;
    }

    .persona-btn {
        padding: 6px 10px;
        font-size: 0.91rem;
    }

    .mode-label {
        display: none;
    }

    .mode-btn {
        padding: 6px 10px;
    }

    .score-card {
        padding: 20px;
    }

    .score-weight {
        font-size: 2.28rem;
    }

    .feature-card {
        padding: 20px;
    }

    .concept-card {
        padding: 20px;
    }

    .reason-card {
        padding: 20px;
    }

    .better-text {
        font-size: clamp(4.88rem, 24.38vw, 9.75rem);
    }

    .future-card {
        padding: 1.25rem;
        min-width: 340px;
        max-width: 380px;
    }

    .future-year {
        font-size: 3.25rem;
    }

    .trait-tag {
        padding: 0.4rem 1rem;
        font-size: 1.11rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-sub {
        font-size: 1.11rem;
    }
}

@media (min-width: 1024px) {
    .hero-visual {
        display: flex;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   Neon Glow Effects (Hackathon Polish)
   ============================================ */
.neon-text {
    color: #4285f4;
    text-shadow: 
        0 0 10px rgba(66, 133, 244, 0.5),
        0 0 20px rgba(66, 133, 244, 0.3),
        0 0 40px rgba(66, 133, 244, 0.2);
}

.gemini-glow {
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
    animation: geminiPulse 3s ease-in-out infinite;
}

@keyframes geminiPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(66, 133, 244, 0.3),
            0 0 40px rgba(66, 133, 244, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(66, 133, 244, 0.5),
            0 0 60px rgba(66, 133, 244, 0.3);
    }
}

/* ============================================
   Pulse Effect for CTA Button
   ============================================ */
.pulse-effect {
    animation: buttonPulse 2s ease-in-out infinite;
    position: relative;
}

.pulse-effect::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    animation: pulseRing 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* ============================================
   Why Gemini Section
   ============================================ */
.why-gemini {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1f 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.why-gemini::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gemini-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.reason-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.reason-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 
        0 20px 60px rgba(66, 133, 244, 0.15),
        0 0 40px rgba(66, 133, 244, 0.1);
}

.reason-card:hover::before {
    opacity: 1;
}

.reason-icon {
    font-size: 4.88rem;
    margin-bottom: 16px;
}

.reason-card h3 {
    font-size: 1.69rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.reason-card p {
    color: var(--text-secondary);
    font-size: 1.24rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.reason-highlight {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 100px;
    font-size: 1.04rem;
    color: #4285f4;
    font-weight: 600;
}

/* ============================================
   Persona Switcher
   ============================================ */
.persona-selector {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.category-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.category-label {
    font-size: 1.11rem;
    color: var(--text-muted);
    margin-right: 8px;
    font-weight: 600;
}

.persona-btn {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 1.11rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
}

.persona-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.persona-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   Glassmorphism Story Cards
   ============================================ */
.story-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 0 40px rgba(99, 102, 241, 0.05);
}

/* ============================================
   Enhanced UFO Floating Animation
   ============================================ */
.ufo-floating {
    animation: ufoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
}

@keyframes ufoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(3deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

/* ============================================
   Impact Statement Section
   ============================================ */
.impact-statement {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.impact-text {
    font-size: clamp(1.63rem, 3.25vw, 2.28rem);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.impact-text strong {
    color: var(--text-primary);
}

/* ============================================
   S2 Floating Monster Section
   ============================================ */
.s2-floating {
    display: none; /* Hidden on mobile */
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1a 100%);
    position: relative;
    overflow: hidden;
}

.s2-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.s2-left,
.s2-right {
    padding: 40px 50px;
}

.s2-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.06rem;
    font-weight: 700;
    color: #4060d0;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: pre-line;
}

.s2-left .s2-text {
    text-align: left;
}

.s2-right .s2-text {
    text-align: right;
}

.s2-monster {
    position: relative;
    z-index: 10;
}

.s2-monster-img {
    width: 100px;
    height: auto;
    animation: s2Float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(200, 100, 200, 0.5));
}

@keyframes s2Float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Show S2 section on desktop */
@media (min-width: 1024px) {
    .s2-floating {
        display: block;
    }
}

/* Larger screens adjustments */
@media (min-width: 1200px) {
    .s2-text {
        font-size: 4.88rem;
    }
    
    .s2-monster-img {
        width: 120px;
    }
    
    .s2-container {
        gap: 80px;
    }
}

/* ============================================
   Video Lightbox
   ============================================ */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 960px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
