/* ===== Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 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);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { color: var(--gray); }

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--light);
}

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

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--gray);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fff5f5 100%);
    position: relative;
    overflow: hidden;
}

/* Floating decorations */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    left: var(--x);
    top: var(--y);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

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

.hero-content {
    flex: 1;
    max-width: 580px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-icon {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--dark);
    font-size: 3.75rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 28px;
    line-height: 1.8;
}

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

.hero-subtitle em {
    font-style: italic;
    color: var(--gray-light);
}

/* Hero feature checklist */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--dark);
    font-weight: 600;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-cta .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Trust indicators */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    font-size: 1.25rem;
}

.trust-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: var(--light);
}

/* Hero Phone Mockup - Realistic iOS Style */
.hero-image {
    flex: 0 0 auto;
    width: 380px;
    position: relative;
    z-index: 1;
}

.phone-glow {
    position: absolute;
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: -1;
}

.phone-mockup {
    background: linear-gradient(145deg, #2a2a2e 0%, #1c1c1e 50%, #0d0d0d 100%);
    border-radius: 58px;
    padding: 14px;
    box-shadow:
        0 60px 120px -20px rgba(0, 0, 0, 0.5),
        0 40px 80px -30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}

/* Side buttons */
.phone-button {
    position: absolute;
    background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
    border-radius: 2px;
}

.phone-button.volume-up {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 32px;
}

.phone-button.volume-down {
    left: -3px;
    top: 165px;
    width: 3px;
    height: 32px;
}

.phone-button.power {
    right: -3px;
    top: 140px;
    width: 3px;
    height: 50px;
}

.phone-screen {
    background: linear-gradient(180deg, #f8f9fa 0%, var(--white) 100%);
    border-radius: 48px;
    padding: 0 20px 16px;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* iOS Status Bar */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px 12px;
    position: relative;
}

.status-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.status-notch {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    width: 130px;
    height: 38px;
    background: #0d0d0d;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
}

.notch-camera {
    width: 13px;
    height: 13px;
    background: radial-gradient(circle at 30% 30%, #2d2d3a 0%, #1a1a24 50%, #0d0d12 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.8);
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-signal {
    width: 20px;
    height: 14px;
    color: var(--dark);
}

.status-wifi {
    width: 18px;
    height: 14px;
    color: var(--dark);
}

.status-battery {
    display: flex;
    align-items: center;
    gap: 1px;
}

.battery-body {
    width: 26px;
    height: 13px;
    border: 1.5px solid var(--dark);
    border-radius: 4px;
    padding: 2px;
    position: relative;
}

.battery-fill {
    width: 85%;
    height: 100%;
    background: var(--dark);
    border-radius: 1.5px;
}

.battery-cap {
    width: 2px;
    height: 6px;
    background: var(--dark);
    border-radius: 0 1px 1px 0;
}

/* Home Indicator */
.phone-home-indicator {
    width: 140px;
    height: 5px;
    background: rgba(0,0,0,0.2);
    border-radius: 100px;
    margin: 16px auto 6px;
}

/* Demo header */
.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--light);
    margin-bottom: 16px;
}

.demo-book-icon {
    font-size: 1.5rem;
}

.demo-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--dark);
}

.demo-page {
    font-size: 0.8125rem;
    color: var(--gray);
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Illustration area */
.demo-illustration {
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.illustration-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.illus-emoji {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.illus-emoji.small {
    font-size: 1.75rem;
    animation-delay: 0.3s;
}

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

/* Reading text */
.demo-text {
    font-size: 1.5rem;
    line-height: 2.4;
    text-align: center;
    margin-bottom: 20px;
    flex: 1;
    padding: 8px 4px;
}

.demo-text .word {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.demo-text .word.correct {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    font-weight: 600;
}

.demo-text .word.current {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
}

/* Listening feedback */
.demo-feedback {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sound-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}

.wave {
    width: 5px;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.wave:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.wave:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.wave:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mic-pulse {
    font-size: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.feedback-text {
    font-weight: 700;
    color: white;
    font-size: 1.0625rem;
}

/* Progress bar */
.demo-progress {
    background: var(--light);
    padding: 14px 16px;
    border-radius: 14px;
}

.progress-bar {
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 43%;
    background: var(--gradient);
    border-radius: 4px;
    animation: progress-grow 2s ease-out;
}

@keyframes progress-grow {
    from { width: 0; }
    to { width: 43%; }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}

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

/* Floating feedback cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 700;
    animation: float-card 3s ease-in-out infinite;
}

.card-correct {
    top: 18%;
    right: -40px;
    color: var(--secondary);
    animation-delay: 0s;
}

.card-star {
    bottom: 30%;
    left: -50px;
    color: var(--accent);
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 1rem;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ===== Problem/Solution ===== */
.problem-solution {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 24px;
}

.ps-header {
    text-align: center;
    margin-bottom: 60px;
}

.ps-header h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.ps-header p {
    color: var(--gray-light);
    font-size: 1.25rem;
}

.ps-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.ps-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-vs span {
    background: var(--dark-light);
    color: var(--gray-light);
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: 50%;
}

.ps-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
}

.ps-card.problem {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ps-card.solution {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ps-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ps-card h3 {
    margin-bottom: 8px;
}

.ps-card.problem h3 {
    color: #f87171;
}

.ps-card.solution h3 {
    color: var(--secondary);
}

.ps-subtitle {
    color: var(--gray-light);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.ps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-light);
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ps-list li:last-child {
    border-bottom: none;
}

.ps-x {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
}

.ps-check {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
}

.ps-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9375rem;
}

.ps-result.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.ps-result.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.result-icon {
    font-size: 1.25rem;
}

.ps-bottom-line {
    text-align: center;
    margin-top: 60px;
    padding: 24px 32px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ps-bottom-line p {
    color: var(--gray-light);
    font-size: 1.125rem;
    margin: 0;
}

.ps-bottom-line strong {
    color: var(--white);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 24px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 60px;
}

h2 {
    text-align: center;
    margin-bottom: 16px;
}

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

.step {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--light);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.step p {
    font-size: 0.9375rem;
}

/* ===== Features Grid ===== */
.features {
    padding: 100px 24px;
    background: var(--light);
}

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

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    border: 2px solid var(--primary-light);
}

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

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.9375rem;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== Speech Analysis ===== */
.speech-analysis {
    padding: 100px 24px;
}

.speech-analysis .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.speech-content h2 {
    text-align: left;
}

.speech-content .section-subtitle {
    text-align: left;
}

.patterns-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.pattern-group h4 {
    color: var(--dark);
    margin-bottom: 12px;
}

.pattern-group ul {
    list-style: none;
}

.pattern-group li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pattern-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.substitution-detection {
    margin-top: 32px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius);
}

.substitution-detection h4 {
    color: var(--dark);
    margin-bottom: 12px;
}

.substitutions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.sub {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Speech Chart */
.pattern-chart {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.pattern-chart h4 {
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-item {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
}

.bar-track {
    height: 12px;
    background: var(--light);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 6px;
    transition: width 1s ease;
}

.bar-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
}

/* ===== Comparison ===== */
.comparison {
    padding: 100px 24px;
    background: var(--light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.comparison-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 700;
}

.comparison-table th.kidshelf-col {
    background: var(--primary);
}

.comparison-table td.kidshelf-col {
    background: rgba(99, 102, 241, 0.05);
    font-weight: 600;
}

.comparison-table .highlight-row {
    background: rgba(16, 185, 129, 0.05);
}

.comparison-table .highlight-row td.kidshelf-col {
    background: rgba(16, 185, 129, 0.1);
}

.check {
    color: var(--secondary);
    font-weight: 700;
}

.cross {
    color: #ef4444;
}

.comparison-summary {
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.comparison-summary p {
    font-size: 1.125rem;
    color: var(--dark);
}

/* ===== Use Cases ===== */
.use-cases {
    padding: 100px 24px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.use-case {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light);
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.use-case h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.use-case p {
    font-size: 0.9375rem;
}

/* ===== Download Section ===== */
.download {
    padding: 100px 24px;
    background: var(--gradient);
    text-align: center;
}

.download h2 {
    color: var(--white);
}

.download p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.store-button {
    display: inline-block;
    transition: transform 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
}

.store-button img {
    height: 50px;
}

.download-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.download-features span {
    color: var(--white);
    font-weight: 600;
}

/* ===== Footer ===== */
footer {
    background: var(--dark);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--gray-light);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-light);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

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

.footer-bottom p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 60px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image {
        width: 340px;
    }

    .floating-card {
        display: none;
    }

    .floating-emoji {
        font-size: 1.5rem;
        opacity: 0.4;
    }

    .phone-mockup {
        border-radius: 50px;
        padding: 12px;
    }

    .phone-screen {
        min-height: 620px;
        border-radius: 42px;
        padding: 0 18px 14px;
    }

    .status-notch {
        width: 115px;
        height: 34px;
    }

    .phone-button {
        display: none;
    }

    .demo-illustration {
        padding: 24px;
        min-height: 95px;
    }

    .illus-emoji {
        font-size: 3rem;
    }

    .demo-text {
        font-size: 1.375rem;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .speech-analysis .container {
        grid-template-columns: 1fr;
    }

    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-decorations {
        display: none;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .trust-divider {
        display: none;
    }

    .ps-comparison {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ps-vs {
        order: -1;
    }

    .ps-vs span {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .ps-card {
        padding: 28px;
    }

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

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

    .patterns-list {
        grid-template-columns: 1fr;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-features {
        flex-direction: column;
        gap: 12px;
    }

    .demo-illustration {
        padding: 16px;
        min-height: 80px;
    }

    .illus-emoji {
        font-size: 2.5rem;
    }

    .demo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .hero-trust {
        padding: 12px 16px;
    }

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

    .hero-image {
        width: 100%;
        max-width: 320px;
    }

    .phone-mockup {
        border-radius: 44px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 36px;
        padding: 0 14px 12px;
        min-height: 520px;
    }

    .phone-status-bar {
        padding: 12px 18px 10px;
    }

    .status-notch {
        width: 100px;
        height: 28px;
        top: 8px;
    }

    .status-time {
        font-size: 14px;
    }

    .phone-home-indicator {
        width: 120px;
        height: 4px;
        margin: 10px auto 4px;
    }

    .demo-header {
        padding: 8px 0 12px;
        gap: 10px;
    }

    .demo-book-icon {
        font-size: 1.25rem;
    }

    .demo-title {
        font-size: 0.9375rem;
    }

    .demo-illustration {
        padding: 20px;
        min-height: 90px;
    }

    .illus-emoji {
        font-size: 2.75rem;
    }

    .demo-text {
        font-size: 1.25rem;
        line-height: 2.2;
    }

    .demo-feedback {
        padding: 12px 14px;
    }

    .demo-progress {
        padding: 10px 12px;
    }
}
