/* ========================================
   How Are You?! Landing Page Styles
   Mobile-first, Accessible, Dark Theme + Glassmorphism
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #7C3AED;
    --color-primary-dark: #6D28D9;
    --color-primary-light: #A78BFA;
    --color-accent: #3B82F6;
    --color-success: #22C55E;
    --color-error: #EF4444;

    /* Dark theme base colors */
    --color-bg-deep: #0f0b2a;
    --color-bg-section: #130f30;
    --color-bg-card: rgba(255, 255, 255, 0.06);
    --color-bg-card-hover: rgba(255, 255, 255, 0.10);
    --color-text: #f0eef6;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.10);
    --color-border-hover: rgba(255, 255, 255, 0.20);

    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #2563eb 100%);
    --gradient-section-1: linear-gradient(180deg, #130f30 0%, #1a1145 100%);
    --gradient-section-2: linear-gradient(180deg, #1a1145 0%, #130f30 100%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;

    --border-radius: 12px;
    --border-radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.4);

    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-deep);
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c4b5fd;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

/* ========================================
   Header — Dark Glassmorphism
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 11, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-light);
}

.logo-accent {
    color: var(--color-accent);
    font-weight: 500;
}

.language-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--color-primary-light);
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-text);
}

.lang-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ========================================
   Hero Section — Gradient + Floating Shapes
   ======================================== */
.hero {
    position: relative;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-sm) var(--spacing-xl);
    text-align: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
    animation-duration: 7s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -60px;
    animation-duration: 5s;
    animation-delay: -2s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: 20%;
    animation-duration: 8s;
    animation-delay: -4s;
}

.hero-shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 60%;
    animation-duration: 6s;
    animation-delay: -1s;
    opacity: 0.05;
}

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

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.hero-cta {
    margin-bottom: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

.play-icon {
    width: 24px;
    height: 24px;
}

.hero-reviews {
    font-size: var(--font-size-sm);
}

.reviews-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
}

.reviews-link:hover {
    color: #FFFFFF;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-top: calc(-1 * var(--spacing-md));
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   Features Section — Glassmorphism Cards
   ======================================== */
.features {
    background: var(--gradient-section-1);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.feature-icon svg {
    fill: white;
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

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

/* Staggered animation for feature cards */
.features.revealed .feature-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.features.revealed .feature-card:nth-child(1) { animation-delay: 0s; }
.features.revealed .feature-card:nth-child(2) { animation-delay: 0.1s; }
.features.revealed .feature-card:nth-child(3) { animation-delay: 0.2s; }
.features.revealed .feature-card:nth-child(4) { animation-delay: 0.3s; }
.features.revealed .feature-card:nth-child(5) { animation-delay: 0.4s; }
.features.revealed .feature-card:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   What We Detect (Scenarios) Section
   ======================================== */
.scenarios {
    background: var(--gradient-section-2);
}

.scenario-card .feature-desc {
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

/* Staggered animation for scenario cards */
.scenarios.revealed .scenario-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.scenarios.revealed .scenario-card:nth-child(1) { animation-delay: 0s; }
.scenarios.revealed .scenario-card:nth-child(2) { animation-delay: 0.1s; }
.scenarios.revealed .scenario-card:nth-child(3) { animation-delay: 0.2s; }
.scenarios.revealed .scenario-card:nth-child(4) { animation-delay: 0.3s; }
.scenarios.revealed .scenario-card:nth-child(5) { animation-delay: 0.4s; }
.scenarios.revealed .scenario-card:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   How It Works Section — Connected Timeline
   ======================================== */
.how-it-works {
    background: var(--gradient-section-2);
}

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

.step {
    text-align: center;
    padding: var(--spacing-md);
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-deep);
    color: var(--color-primary-light);
    font-size: var(--font-size-xl);
    font-weight: 700;
    border-radius: 50%;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--color-bg-deep), var(--color-bg-deep)), linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.step-desc {
    color: var(--color-text-secondary);
}

/* ========================================
   A Day With How Are You?! — Story Timeline
   ======================================== */
.day-story {
    background: var(--gradient-section-1);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent), var(--color-error));
    border-radius: 1px;
}

.timeline-phase {
    position: relative;
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-md);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: var(--color-bg-deep);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker svg {
    fill: var(--color-primary-light);
}

.timeline-marker-alert {
    border-color: var(--color-error);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.timeline-marker-alert svg {
    fill: #f87171;
}

.timeline-content {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.timeline-phase-alert .timeline-content {
    border-color: rgba(239, 68, 68, 0.3);
}

.timeline-phase-alert .timeline-content:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.timeline-time {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-xs);
}

.timeline-phase-alert .timeline-time {
    color: #f87171;
}

.timeline-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.day-story-closing {
    text-align: center;
    font-style: italic;
    color: var(--color-primary-light);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

/* ========================================
   Why Families Trust Us Section
   ======================================== */
.trust-section {
    background: var(--gradient-section-2);
}

/* Staggered animation for trust cards */
.trust-section.revealed .trust-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.trust-section.revealed .trust-card:nth-child(1) { animation-delay: 0s; }
.trust-section.revealed .trust-card:nth-child(2) { animation-delay: 0.1s; }
.trust-section.revealed .trust-card:nth-child(3) { animation-delay: 0.2s; }
.trust-section.revealed .trust-card:nth-child(4) { animation-delay: 0.3s; }
.trust-section.revealed .trust-card:nth-child(5) { animation-delay: 0.4s; }
.trust-section.revealed .trust-card:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   Why Not Others Section (legacy, kept for mission statement)
   ======================================== */
.why-not-others {
    background: var(--gradient-section-1);
}

.comparison-list {
    max-width: 700px;
    margin: 0 auto;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.comparison-icon.bad {
    background: rgba(239, 68, 68, 0.15);
}

.comparison-icon.bad svg {
    fill: #f87171;
}

.comparison-item p {
    color: var(--color-text-secondary);
}

.mission-statement {
    text-align: center;
    font-style: italic;
    color: var(--color-primary-light);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

/* ========================================
   You're In Control Section
   ======================================== */
.in-control {
    background: var(--gradient-section-2);
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.control-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.control-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.1);
}

.control-item p {
    color: var(--color-text-secondary);
}

.control-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 50%;
}

.control-icon svg {
    fill: white;
}

/* ========================================
   Under the Hood Section
   ======================================== */
.under-the-hood {
    background: var(--gradient-section-1);
}

.tech-details {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.tech-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    list-style: none;
}

.tech-summary::-webkit-details-marker {
    display: none;
}

.tech-summary h2 {
    font-size: var(--font-size-lg);
    margin: 0;
    color: var(--color-text);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.toggle-icon::before {
    width: 2px;
    height: 16px;
    left: 11px;
    top: 4px;
}

.toggle-icon::after {
    width: 16px;
    height: 2px;
    left: 4px;
    top: 11px;
}

details[open] .toggle-icon::before {
    transform: rotate(90deg);
}

.tech-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    color: var(--color-text-secondary);
}

.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
    background: var(--gradient-section-2);
}

.screenshots-gallery {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.screenshot {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    scroll-snap-align: center;
    animation: screenshotFloat 4s ease-in-out infinite;
}

.screenshot:nth-child(2) {
    animation-delay: -1.3s;
}

.screenshot:nth-child(3) {
    animation-delay: -2.6s;
}

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

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    background: var(--gradient-section-1);
}

#troubleshooting {
    background: var(--gradient-section-2);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius);
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--color-border-hover);
}

.faq-item[open] {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.faq-item summary {
    padding: var(--spacing-md);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
    color: var(--color-text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--color-primary-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item[open] summary {
    color: var(--color-primary-light);
}

.faq-item p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text-secondary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--color-bg-section) 0%, #0a0720 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-light);
}

.footer-accent {
    color: var(--color-accent);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    color: white;
}

.footer-copyright {
    text-align: center;
    font-size: var(--font-size-sm);
    opacity: 0.5;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

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

    .steps {
        flex-direction: row;
        justify-content: center;
        position: relative;
    }

    .step {
        flex: 1;
        max-width: 300px;
    }

    /* Connecting line between steps */
    .steps::before {
        content: '';
        position: absolute;
        top: 44px;
        left: calc(50% - 300px + 28px);
        right: calc(50% - 300px + 28px);
        height: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 2px;
        z-index: 0;
    }

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

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================================
   Responsive - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .section-title {
        font-size: var(--font-size-2xl);
    }

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

    .screenshot {
        width: 320px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .features.revealed .feature-card {
        opacity: 1;
    }

    .hero-shape {
        display: none;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
summary:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-text: #ffffff;
        --color-text-secondary: rgba(255, 255, 255, 0.9);
        --color-border: rgba(255, 255, 255, 0.3);
    }
}

/* ========================================
   Mobile: reduce floating shapes
   ======================================== */
@media (max-width: 767px) {
    .hero-shape-3,
    .hero-shape-4 {
        display: none;
    }

    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }

    .hero-shape-2 {
        width: 120px;
        height: 120px;
    }
}
