/* ============================================
   CodeBlueCoach Landing Page Styles
   Aesthetic: Medical precision meets modern luxury
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    /* Primary Palette - Medical Blues */
    --primary: #007AFF;
    --primary-dark: #0056B3;
    --primary-light: #4DA3FF;
    --primary-glow: rgba(0, 122, 255, 0.4);

    /* Status Colors */
    --critical: #FF3B30;
    --critical-glow: rgba(255, 59, 48, 0.3);
    --success: #34C759;
    --warning: #FFCC00;
    --medication: #FF9500;
    --purple: #AF52DE;
    --cyan: #5AC8FA;

    /* Neutrals - Deep Dark */
    --bg-deep: #000000;
    --bg-primary: #0A0A0B;
    --bg-card: #141416;
    --bg-elevated: #1C1C1E;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-muted: #636366;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Crimson Pro', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ----- Navigation ----- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

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

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-img.small {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: var(--text-primary) !important;
    border-radius: 100px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg-deep);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: var(--space-lg);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
}

.mobile-link.cta {
    margin-top: var(--space-md);
    padding: 1rem 2rem;
    background: var(--primary);
    border-radius: 100px;
    font-size: 1.25rem;
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

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

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.4;
    animation: pulse-glow 8s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-pulse {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0;
    animation: pulse-ring 4s ease-out infinite;
}

.pulse-1 {
    top: 30%;
    left: 10%;
    width: 300px;
    height: 300px;
}

.pulse-2 {
    top: 40%;
    left: 15%;
    width: 400px;
    height: 400px;
    animation-delay: 1.3s;
}

.pulse-3 {
    top: 25%;
    left: 5%;
    width: 500px;
    height: 500px;
    animation-delay: 2.6s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--critical);
    text-shadow: 0 0 60px var(--critical-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.75rem;
    border-radius: 100px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--critical);
    color: var(--text-primary);
    box-shadow: 0 4px 24px var(--critical-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--critical-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
}

.btn-coming-soon {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: default;
}

.store-badge.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.store-badge.coming-soon:hover {
    transform: none;
    border-color: var(--border);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--bg-elevated);
    border-radius: 44px;
    padding: 12px;
    border: 1px solid var(--border-light);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--bg-deep);
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 48px 16px 16px;
    height: 100%;
}

.app-header {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-align: center;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.app-card.red {
    border-color: rgba(255, 59, 48, 0.3);
}

.app-card.blue {
    border-color: rgba(0, 122, 255, 0.3);
}

.app-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 12px;
}

.app-card.red .app-card-icon {
    background: rgba(255, 59, 48, 0.15);
    color: var(--critical);
}

.app-card.blue .app-card-icon {
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary);
}

.app-card-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.app-card-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    margin: 32px auto 0;
    position: relative;
}

.timer-ring {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 3px solid var(--success);
    border-top-color: transparent;
    animation: timer-spin 2s linear infinite;
}

@keyframes timer-spin {
    to {
        transform: rotate(360deg);
    }
}

.timer-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
}

.timer-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
    filter: blur(40px);
}

/* ----- Sections Common ----- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

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

/* ----- Features Section ----- */
.features {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon.orange {
    background: rgba(255, 149, 0, 0.1);
    color: var(--medication);
}

.feature-icon.green {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.feature-icon.purple {
    background: rgba(175, 82, 222, 0.1);
    color: var(--purple);
}

.feature-icon.cyan {
    background: rgba(90, 200, 250, 0.1);
    color: var(--cyan);
}

.feature-icon.red {
    background: rgba(255, 59, 48, 0.1);
    color: var(--critical);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-tag {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

/* ----- Algorithms Section ----- */
.algorithms {
    padding: var(--space-2xl) 0;
}

.algorithms-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
}

.algorithm-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.algorithm-card.primary {
    border-color: var(--critical);
    background: linear-gradient(180deg, rgba(255, 59, 48, 0.08) 0%, var(--bg-card) 100%);
}

.algorithm-card.secondary {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.08) 0%, var(--bg-card) 100%);
}

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

.algorithm-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.15);
    color: var(--critical);
    border-radius: var(--radius-sm);
}

.algorithm-icon.blue {
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary);
}

.algorithm-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    background: var(--critical);
    border-radius: 100px;
}

.algorithm-badge.blue {
    background: var(--primary);
}

.algorithm-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
}

.algorithm-card>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.algorithm-features {
    list-style: none;
}

.algorithm-features li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.algorithm-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.algorithm-list {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.algorithm-list h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.algorithm-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 500;
}

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

.item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.item-dot.orange {
    background: var(--medication);
}

.item-dot.red {
    background: var(--critical);
}

.item-dot.blue {
    background: var(--primary);
}

.item-dot.purple {
    background: var(--purple);
}

/* ----- Privacy Banner ----- */
.privacy-banner {
    padding: var(--space-xl) 0;
    background: var(--bg-primary);
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-lg);
}

.privacy-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
    border-radius: var(--radius-md);
}

.privacy-icon svg {
    width: 36px;
    height: 36px;
}

.privacy-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

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

.privacy-text strong {
    color: var(--success);
}

/* ----- Download Section ----- */
.download {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.download-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

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

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.store-badge:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 28px;
    height: 28px;
}

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

.store-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.store-text strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.download-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ----- Footer ----- */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.footer-column a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    padding: var(--space-md) var(--space-md) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-bottom .disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-lg));
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: var(--space-lg);
        padding-bottom: var(--space-xl);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .phone-mockup {
        transform: scale(0.9);
    }

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

    .feature-card.featured {
        grid-column: span 2;
    }

    .algorithms-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .algorithm-list {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .feature-card.featured {
        grid-column: span 1;
    }

    .algorithms-showcase {
        grid-template-columns: 1fr;
    }

    .algorithm-list {
        grid-column: span 1;
    }

    .privacy-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: var(--space-md);
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

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

    .phone-frame {
        width: 260px;
        height: 520px;
    }

    .app-timer {
        width: 110px;
        height: 110px;
        padding: 20px;
        margin: 20px auto 0;
    }

    .timer-value {
        font-size: 1.5rem;
    }

    .app-card {
        padding: 12px;
        gap: 10px;
        margin-bottom: 8px;
    }

    .app-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .app-card-text strong {
        font-size: 0.8rem;
    }

    .app-card-text span {
        font-size: 0.65rem;
    }

    .app-header {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .app-preview {
        padding: 36px 12px 12px;
    }

    .phone-notch {
        width: 100px;
        height: 24px;
    }

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

    .store-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}