/* ===================================
   Design System & Variables
   =================================== */
:root {
    /* Colors */
    --color-background: #FFFFFF;
    --color-text-primary: #0A0A0A;
    --color-text-secondary: #525252;
    --color-highlight: #FFD69A;
    --color-highlight-darker: #FFC870;
    --color-accent: #3B82F6;
    --color-border: #E5E5E5;
    
    /* Spacing (8px grid system) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 96px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 48px;
    --font-size-5xl: 64px;
    --font-size-6xl: 80px;
    
    --line-height-tight: 1.1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: navSlideDown 0.6s ease-out;
    transition: all 0.3s ease-out;
}

.nav-content {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease-out;
}

/* Scrolled state - reduced opacity (more transparent) */
.navbar.scrolled .nav-content {
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(229, 231, 235, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Hover on scrolled navbar - restore full opacity */
.navbar.scrolled:hover .nav-content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Subtle scale effect on logo and links when scrolled (optional enhancement) */
.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .cta-button {
    opacity: 0.9;
    transition: opacity 0.3s ease-out;
}

.navbar.scrolled:hover .logo,
.navbar.scrolled:hover .nav-links a,
.navbar.scrolled:hover .cta-button {
    opacity: 1;
}

.navbar.scrolled .logo:hover,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .cta-button:hover {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.logo:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.logo-text {
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    align-items: center;
    margin-left: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all var(--transition-base);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
}

.nav-links a:hover {
    color: var(--color-text-primary);
    background-color: rgba(10, 10, 10, 0.05);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

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

/* Hamburger animation when open */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-lg);
    overflow: hidden;
}

/* Background Pattern */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(10, 10, 10, 0.06) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(10, 10, 10, 0.06) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 0;
    filter: blur(0.5px);
}

.background-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0.9) 85%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
}

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

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    line-height: var(--line-height-tight);
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.highlight {
    background: linear-gradient(120deg, var(--color-highlight) 0%, var(--color-highlight) 100%);
    background-repeat: no-repeat;
    background-size: 0% 45%;
    background-position: 0 85%;
    padding: 0 var(--spacing-sm);
    position: relative;
    display: inline-block;
    animation: highlightMarker 1s ease-out 0.8s forwards;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Input Section */
.hero-input-section {
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.input-wrapper:focus-within {
    border-color: var(--color-text-primary);
    box-shadow: var(--shadow-xl);
}

.hero-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    color: var(--color-text-primary);
}

.hero-input::placeholder {
    color: #A3A3A3;
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--color-text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.generate-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.generate-btn:active {
    transform: translateY(0);
}

.sparkle-icon {
    width: 18px;
    height: 18px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(180deg);
    }
}

.hero-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

.quiz-cta {
    margin-top: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.3s forwards;
}

.quiz-cta-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-cta-centered.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quiz-cta-centered .quiz-btn {
    animation: gentleBounce 2s ease-in-out infinite;
}

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

.quiz-cta-centered .quiz-btn:hover {
    animation: none;
}

.quiz-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #171717 0%, #262626 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    padding: 20px 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.quiz-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-btn-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.quiz-btn-subtitle {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

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

@keyframes highlightMarker {
    from {
        background-size: 0% 45%;
    }
    to {
        background-size: 100% 45%;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    position: relative;
    padding: var(--spacing-3xl) 0 var(--spacing-4xl) 0;
    margin-top: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 10%,
        rgba(255, 255, 255, 1) 100%
    );
    overflow: hidden;
}

.how-it-works-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.accordion-column {
    opacity: 1;
}

.section-heading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.1s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.illustration-column {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-out 0.3s;
    position: relative;
}

.illustration-column.visible {
    opacity: 1;
    transform: scale(1);
}

/* Phone Visualization Wrapper - New Layout */
.phone-visualization-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 650px;
    padding: 60px 60px 60px 80px;
}

.section-heading {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.accordion-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.accordion-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-base);
}

.accordion-item:nth-child(1) {
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s, 
                box-shadow var(--transition-base), border-color var(--transition-base);
}

.accordion-item:nth-child(2) {
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s,
                box-shadow var(--transition-base), border-color var(--transition-base);
}

.accordion-item:nth-child(3) {
    transition: opacity 0.5s ease-out 0.4s, transform 0.5s ease-out 0.4s,
                box-shadow var(--transition-base), border-color var(--transition-base);
}

.accordion-item.visible:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-text-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover .accordion-number {
    background: var(--color-accent);
    transform: scale(1.1) rotate(5deg);
}

.accordion-item.active .accordion-number {
    background: var(--color-accent);
}

.accordion-title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion-header:hover .accordion-icon {
    transform: scale(1.2);
    color: var(--color-accent);
}

.accordion-item.active .accordion-header:hover .accordion-icon {
    transform: rotate(180deg) scale(1.2);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 0 var(--spacing-lg) var(--spacing-md) calc(var(--spacing-lg) + 32px + var(--spacing-md));
    opacity: 1;
}

.accordion-body p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
    transform: translateY(10px);
    transition: transform 0.4s ease-out 0.1s;
}

.accordion-item.active .accordion-body p {
    transform: translateY(0);
}

.how-it-works-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    min-height: 600px;
}

/* Handwritten Text Style */
.handwritten-text {
    font-family: 'Kalam', cursive;
    font-size: 20px;
    color: #A3A3A3;
    font-weight: 400;
    font-style: italic;
}

/* Result Label (Above Phone) */
.result-label-top {
    position: absolute;
    top: -65px;
    left: 145px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.6s forwards;
}

.arrow-down {
    opacity: 0.6;
}

/* Left Floating Elements */
.left-floating-elements {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 4;
}

.your-input-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.5s forwards;
}

.arrow-curved-right {
    opacity: 0.6;
    margin-left: 10px;
}

/* Center Phone Mockup */
.phone-mockup-center {
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: fadeInUp 0.9s ease-out 0.3s forwards;
}

/* Right Floating Elements */
.right-floating-elements {
    position: absolute;
    left: 350px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 4;
}

.model-input-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    margin-left: 20px;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

.arrow-curved-left {
    opacity: 0.6;
}

.floating-pills-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 200px;
    height: 300px;
}

/* Floating Pill Styles */
.floating-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    opacity: 0;
    animation: fadeInScale 0.7s ease-out forwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.hypothesis-pill {
    background: var(--color-highlight);
    border-color: var(--color-highlight-darker);
    animation: fadeInScale 0.7s ease-out 0.4s forwards, subtleHighlightPulse 3s ease-in-out 1s infinite;
}

@keyframes subtleHighlightPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 214, 154, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 214, 154, 0.5);
    }
}

.hypothesis-pill:hover {
    animation: subtleHighlightPulse 3s ease-in-out infinite;
}

.pill-1 { animation-delay: 0.6s; }
.pill-2 { animation-delay: 0.7s; }
.pill-3 { animation-delay: 0.8s; }
.pill-4 { animation-delay: 0.9s; }

/* Glow Dot Animation */
.glow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #F6A72C;
    border-radius: 50%;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    box-shadow: 0 0 12px #F6A72C, 0 0 24px #F6A72C;
    animation: glowPulse 4s ease-in-out infinite;
}

.hypothesis-pill .glow-dot {
    left: auto;
    right: -4px;
    animation-delay: 2s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    10%, 30% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    40%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}

/* Connection Lines */
.connection-line {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
}

.connection-line line {
    stroke-dasharray: 4 4;
    stroke-dashoffset: 0;
    animation: dashFlow 2s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -8;
    }
}

.connection-line-left {
    position: absolute;
    left: auto;
    right: -75px;
    top: 50%;
    transform: translateY(-50%);
}

.pill-1 .connection-line { left: -85px; }
.pill-2 .connection-line { left: -120px; }
.pill-3 .connection-line { left: -95px; }
.pill-4 .connection-line { left: -115px; }

.pill-1 .connection-line line { animation-delay: 0s; }
.pill-2 .connection-line line { animation-delay: 0.5s; }
.pill-3 .connection-line line { animation-delay: 1s; }
.pill-4 .connection-line line { animation-delay: 1.5s; }
.connection-line-left line { animation-delay: 0.25s; }

/* Phone Mockup (legacy support) */
.phone-mockup,
.phone-mockup-center {
    position: relative;
    z-index: 3;
}

.phone-frame {
    width: 290px;
    height: 590px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 8px #2a2a2a,
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(255, 214, 154, 0.15);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-frame:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 0 0 8px #2a2a2a,
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 100px rgba(255, 214, 154, 0.25);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg);
    padding-top: var(--spacing-2xl);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.back-button,
.menu-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-primary);
}

.app-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.experiment-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.experiment-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.experiment-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.experiment-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.experiment-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-button:hover::before {
    width: 300px;
    height: 300px;
}

.start-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--color-accent);
}


/* Additional Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .how-it-works-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .phone-visualization-wrapper {
        min-height: 550px;
        padding: 40px 20px;
    }
    
    .left-floating-elements {
        left: -120px;
    }
    
    .right-floating-elements {
        right: -140px;
    }
    
    .floating-pill {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .handwritten-text {
        font-size: 18px;
    }
    
    .section-heading {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        top: var(--spacing-md);
        left: var(--spacing-md);
        right: var(--spacing-md);
        transform: none;
        width: calc(100% - var(--spacing-xl));
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
        position: relative;
    }
    
    .logo {
        width: auto;
        justify-content: flex-start;
    }
    
    .logo-text {
        display: inline;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: calc(var(--spacing-md) + 70px);
        left: var(--spacing-md);
        right: var(--spacing-md);
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        margin-left: 0;
        width: auto;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-out;
        z-index: 999;
    }
    
    /* Show nav links when menu is open */
    .nav-links.active {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Scrolled navbar on mobile */
    .navbar.scrolled .nav-links {
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-out;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: var(--spacing-md);
        text-align: center;
        border-radius: var(--radius-lg);
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: var(--spacing-3xl);
    }
    
    .how-it-works-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .illustration-column {
        position: relative;
        top: auto;
        transform: none;
    }
    
    .phone-visualization-wrapper {
        flex-direction: column;
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-xl);
    }
    
    /* Mobile: Stack elements */
    .result-label-top {
        position: static;
        transform: none;
        margin-bottom: var(--spacing-lg);
        opacity: 1;
        animation: none;
    }
    
    .left-floating-elements {
        position: static;
        transform: none;
        align-items: center;
        margin-bottom: var(--spacing-lg);
        opacity: 1;
    }
    
    .left-floating-elements .floating-pill,
    .left-floating-elements .your-input-text {
        opacity: 1;
        animation: none;
    }
    
    .phone-mockup-center {
        opacity: 1;
        animation: none;
    }
    
    .right-floating-elements {
        position: static;
        transform: none;
        align-items: center;
        margin-top: var(--spacing-lg);
    }
    
    .model-input-label {
        margin-left: 0;
        justify-content: center;
        opacity: 1;
        animation: none;
    }
    
    .floating-pills-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 320px;
    }
    
    .floating-pill {
        opacity: 1;
        animation: none;
    }
    
    .glow-dot,
    .connection-line,
    .arrow-curved-left,
    .arrow-curved-right,
    .arrow-down {
        display: none;
    }
    
    .handwritten-text {
        font-size: 18px;
    }
    
    .section-heading {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .how-it-works-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
        min-height: auto;
    }
    
    .phone-frame {
        width: 240px;
        height: 490px;
    }
    
    .connection-lines {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-2xl);
    }
    
    .input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--spacing-md);
    }
    
    .hero-input {
        width: 100%;
        text-align: center;
    }
    
    .generate-btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero-tagline {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .navbar {
        top: var(--spacing-sm);
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        width: calc(100% - var(--spacing-md));
    }
    
    .nav-content {
        padding: var(--spacing-sm);
    }
    
    .logo-text {
        font-size: var(--font-size-sm);
    }
    
    .nav-links {
        gap: 0;
    }
    
    .nav-links a {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===================================
   The Big Problem Section
   =================================== */
.big-problem {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background);
}

.big-problem .section-heading {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-4xl);
    font-weight: 900;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.highlight-text {
    color: var(--color-highlight-darker);
}

.section-description {
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.section-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.problem-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: block;
}

.problem-card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.problem-card-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-label {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-lg);
    background: #F5F5F5;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.contact-heading {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2xl);
}

.contact-heading .highlight {
    background: linear-gradient(120deg, var(--color-highlight) 0%, var(--color-highlight) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 85%;
    padding: 0 var(--spacing-sm);
    display: inline-block;
}

.contact-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    align-items: center;
}

.contact-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.contact-input::placeholder {
    color: #D4D4D4;
}

.contact-button {
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--color-text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.contact-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    transition: all 0.1s;
}

.contact-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: #A3A3A3;
}

.contact-email {
    color: var(--color-text-secondary);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.contact-email:hover {
    color: var(--color-text-primary);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-background);
}

.about-label {
    display: inline-block;
    padding: 6px var(--spacing-md);
    background: #F5F5F5;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin: 0 auto var(--spacing-xl);
    display: block;
    text-align: center;
    width: fit-content;
}

.founder-memo-card {
    max-width: 560px;
    margin: 0 auto;
    background: #FFFBF5;
    border: 2px solid var(--color-highlight-darker);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-memo-card:hover {
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.15);
    transform: translateY(-2px);
}

.memo-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
}

.memo-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.memo-company {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 500;
}

.memo-content {
    margin-bottom: var(--spacing-2xl);
}

.memo-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.memo-content p:first-child {
    font-weight: 600;
}

.memo-intro-list {
    margin-bottom: var(--spacing-sm) !important;
    font-weight: 500;
}

.memo-list {
    list-style: none;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.memo-list li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.memo-list li::before {
    content: "•";
    position: absolute;
    left: calc(-1 * var(--spacing-lg));
    color: var(--color-text-primary);
    font-weight: bold;
}

.memo-signature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.signature-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4D4D4;
    display: block;
}

.signature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signature-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1;
}

.signature-title {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 500;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
}

.footer-brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
}

.social-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.app-store-group {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--color-border);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.social-icon:hover {
    color: var(--color-text-primary);
    background: #F5F5F5;
}

.app-store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.app-store-icon:hover {
    color: var(--color-text-primary);
    background: #F5F5F5;
}

.footer-right {
    display: flex;
    align-items: flex-start;
}

.footer-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

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

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ===================================
   Additional Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .problem-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-heading {
        font-size: var(--font-size-4xl);
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .contact-input,
    .contact-button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .app-store-group {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: var(--spacing-md);
    }
    
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .problem-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .problem-card-image {
        height: 200px;
    }
    
    .problem-card-title {
        font-size: var(--font-size-xl);
    }
    
    .contact-heading {
        font-size: var(--font-size-3xl);
    }
    
    .contact-description {
        font-size: var(--font-size-sm);
    }
    
    .founder-memo-card {
        padding: var(--spacing-lg);
    }
    
    .memo-content p {
        font-size: 14px;
    }
    
    .memo-list li {
        font-size: 14px;
    }
    
    .signature-name {
        font-size: 16px;
    }
    
    .avatar-image {
        width: 30px;
        height: 30px;
    }
}

