/* ============================================
   ClinicaIA — Premium Design System
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-900: #1c1c1e;
    --gray-800: #2c2c2e;
    --gray-700: #3a3a3c;
    --gray-400: #8e8e93;
    --accent: #0071e3;
    --accent-glow: rgba(0, 113, 227, 0.4);
    --gold: #d4af37;
    --gold-soft: #f4d03f;
    --success: #32d74b;

    --bg-main: var(--black);
    --bg-surface: var(--gray-900);
    --text-primary: var(--white);
    --text-secondary: var(--gray-400);
    --border-color: rgba(255, 255, 255, 0.1);

    --radius-lg: 32px;
    --radius-md: 20px;
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Inter', -apple-system, sans-serif;
    --glow: 0 0 20px var(--accent-glow);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.47;
    letter-spacing: -0.015em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-800);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

/* ── Utilities ──────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(120deg, var(--accent), #70baff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* Ensure gradient applies correctly */
}

.section-tag {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
    line-height: 1.4;
}

/* ── Navigation ─────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    opacity: .8;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.nav-cta-btn {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-cta-btn:hover {
    background: #0077ed;
    transform: scale(1.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .3s;
}

.mobile-toggle span {
    top: 9px;
}

.mobile-toggle span::before {
    top: -9px;
}

.mobile-toggle span::after {
    top: 9px;
}

.mobile-toggle.active span {
    background: transparent;
}

.mobile-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ── Hero ───────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #1c1c1e 0%, #000 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--gold);
    border: 1px solid hsla(38, 80%, 58%, .3);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 28px;
    animation: fadeUp .6s ease both;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    animation: fadeUp .8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    animation: fadeUp .7s .2s ease both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeUp .7s .3s ease both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: .78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeUp .7s .4s ease both;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.btn-ghost {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-ghost:hover {
    text-decoration: underline;
}

/* ── Phone Mockup ───────────────────────────── */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    animation: fadeUp .8s .3s ease both;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gray-800);
    border-radius: 40px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5), var(--glow);
    position: relative;
}

.phone-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: hsl(230, 18%, 11%);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: hsl(230, 18%, 9%);
    border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: .82rem;
    font-weight: 600;
}

.chat-status {
    font-size: .68rem;
    color: #4ade80;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.chat-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: .72rem;
    line-height: 1.5;
    animation: bubblePop .3s ease both;
}

.chat-bubble.from-client {
    background: var(--dark-4);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.from-bot {
    background: linear-gradient(135deg, hsl(340, 50%, 20%), hsl(300, 40%, 20%));
    border: 1px solid hsla(340, 50%, 35%, .4);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: hsl(340, 20%, 90%);
}

.chat-input-bar {
    padding: 12px 16px;
    background: hsl(230, 18%, 9%);
    border-top: 1px solid var(--border-color);
    font-size: .72rem;
    color: var(--text-secondary);
}

/* ── Problem Simple ────────────────────────── */
.problem-simple {
    padding: 120px 24px;
    background: #000;
    text-align: center;
}

.problem-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.problem-box p {
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.loss-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ff3b30;
}

.loss-stat strong {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
}

.loss-stat span {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ── Solution Simple ───────────────────────── */
.solution-simple {
    padding: 120px 24px;
    background: var(--bg-main);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.step-num {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    left: 20px;
}

.step-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    position: relative;
}

.step-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .problem-box {
        padding: 40px 24px;
    }

    .problem-box p {
        font-size: 1.4rem;
    }
}

/* ── Problems ───────────────────────────────── */
.problems {
    padding: 100px 0;
    text-align: center;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.problem-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.problem-card:hover {
    transform: scale(1.02);
    background: var(--gray-800);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.problem-card h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.problem-card p {
    font-size: .9rem;
    color: var(--text-secondary);
}

/* ── Solution ───────────────────────────────── */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow);
    background: rgba(255, 255, 255, 0.05);
}

.flow-step {
    display: grid;
    grid-template-columns: 56px 1fr 48px;
    align-items: center;
    gap: 20px;
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 28px;
    width: 100%;
    text-align: left;
    transition: all .3s;
}

.flow-step:hover {
    border-color: hsla(340, 70%, 62%, .4);
    background: hsl(230, 16%, 16%);
}

.highlighted-step {
    border-color: hsla(340, 70%, 62%, .5) !important;
    background: hsl(340, 20%, 10%) !important;
}

.step-number {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: .5;
}

.step-content h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: .85rem;
    color: var(--text-secondary);
}

.step-icon {
    font-size: 1.5rem;
    text-align: center;
}

.flow-arrow {
    font-size: 1.4rem;
    color: var(--border-color);
    padding: 6px 0;
}

/* ── Features ───────────────────────────────── */
.features {
    padding: 100px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity .3s;
}

.feature-card:hover {
    border-color: hsla(340, 70%, 62%, .4);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: .95rem;
}

.feature-card p {
    font-size: .88rem;
    color: var(--text-secondary);
}

/* ── Results ────────────────────────────────── */
.results {
    padding: 100px 0;
    background: var(--gray-800);
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
    text-align: left;
    align-items: start;
}

.result-card {
    background: rgba(0, 113, 227, 0.05);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
}

.primary-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.result-scenario h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.result-scenario p {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.result-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.result-before,
.result-after {
    background: var(--dark-4);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--border-color);
}

.result-after {
    border-color: hsla(340, 70%, 62%, .4);
    background: hsl(340, 15%, 10%);
}

.label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.after-label {
    color: var(--accent);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .82rem;
}

.result-item span {
    color: var(--text-secondary);
}

.result-item strong {
    font-weight: 600;
}

.result-item .highlight {
    color: var(--rose-lt);
}

.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 4px;
    font-size: .85rem;
}

.result-total span {
    color: var(--text-secondary);
}

.result-total strong {
    font-size: 1.05rem;
}

.after-total strong {
    color: var(--rose-lt);
}

.result-gain {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, hsl(340, 40%, 14%), hsl(38, 30%, 12%));
    border: 1px solid hsla(340, 60%, 40%, .4);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    font-size: .9rem;
}

.result-gain span {
    color: var(--text-secondary);
}

.result-gain strong {
    font-size: 1.25rem;
    background: linear-gradient(120deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all .3s;
}

.benefit-item:hover {
    border-color: hsla(340, 70%, 62%, .35);
}

.benefit-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: .83rem;
    color: var(--text-secondary);
}

/* ── Chat Demo ──────────────────────────────── */
.chat-demo {
    padding: 100px 0;
    text-align: center;
}

.demo-phone {
    max-width: 520px;
    margin: 0 auto;
}

.demo-chat {
    background: var(--gray-800);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .4), var(--glow);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: var(--dark-3);
    border-bottom: 1px solid var(--border-color);
}

.demo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.demo-info {
    text-align: left;
}

.demo-info strong {
    display: block;
    font-size: .9rem;
}

.demo-info span {
    font-size: .78rem;
    color: #4ade80;
}

.demo-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: .88rem;
    line-height: 1.6;
    text-align: left;
}

.msg.client {
    background: var(--dark-4);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg.bot {
    background: hsl(340, 25%, 14%);
    border: 1px solid hsla(340, 50%, 30%, .3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: hsl(340, 15%, 90%);
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-3);
    border: 1px solid hsla(38, 80%, 58%, .3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    text-align: left;
    font-size: .9rem;
    color: var(--text-secondary);
}

.demo-label .label-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.demo-label strong {
    color: var(--gold);
}

/* ── Testimonials ──────────────────────────── */
.testimonials {
    padding: 100px 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.testi-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testi-header span {
    font-size: .8rem;
    color: var(--text-secondary);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    opacity: .9;
}

/* ── FAQ ───────────────────────────────────── */
.faq {
    padding: 100px 0;
    background: var(--gray-800);
}

.faq-accordion {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    background: hsla(230, 20%, 20%, 0.3);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    background: hsla(230, 20%, 5%, 0.2);
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px;
}

.faq-item.active .arrow {
    transform: rotate(45deg);
    color: var(--accent);
}

.arrow {
    font-size: 1.2rem;
    transition: transform .3s;
    color: var(--text-secondary);
}

/* ── Back to Top ───────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    box-shadow: 0 8px 24px hsla(340, 70%, 62%, .4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--rose-lt);
}

/* ── Implementation ─────────────────────────── */
.implementation {
    padding: 100px 0;
    background: var(--gray-800);
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 48px auto 32px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--gold));
    opacity: .3;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    text-align: left;
    padding: 24px 0;
    align-items: center;
}

.timeline-day {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    text-align: right;
}

.timeline-content {
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: all .3s;
}

.timeline-content:hover {
    border-color: hsla(340, 70%, 62%, .4);
}

.timeline-content h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: .85rem;
    color: var(--text-secondary);
}

.implementation-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    background: hsl(38, 30%, 10%);
    border: 1px solid hsla(38, 80%, 58%, .3);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    font-size: .9rem;
    color: var(--text-secondary);
}

.implementation-note span {
    font-size: 1.2rem;
    color: var(--gold);
}

.implementation-note strong {
    color: var(--text-primary);
}

/* ── Security ───────────────────────────────── */
.security {
    padding: 80px 0;
    text-align: center;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.security-item {
    background: var(--gray-800);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: all .3s;
}

.security-item:hover {
    border-color: hsla(340, 70%, 62%, .35);
    transform: translateY(-4px);
}

.security-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
}

.security-item h4 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: .95rem;
}

.security-item p {
    font-size: .85rem;
    color: var(--text-secondary);
}

/* ── CTA ────────────────────────────────────── */
.cta-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, hsla(340, 50%, 15%, .5) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    font-size: .88rem;
    color: var(--text-secondary);
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, hsl(140, 60%, 40%), hsl(160, 60%, 35%));
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 99px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all .3s;
    box-shadow: 0 4px 32px hsla(140, 60%, 40%, .4);
    margin-bottom: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px hsla(140, 60%, 40%, .55);
}

.cta-note {
    font-size: .82rem;
    color: var(--text-secondary);
}

/* ── Footer ─────────────────────────────────── */
.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent);
}

.footer p {
    font-size: .88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-legal {
    font-size: .78rem;
    opacity: .5;
}

/* ── Particles ──────────────────────────────── */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: .12;
    animation: float linear infinite;
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubblePop {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    50% {
        transform: translate(15px, -15vh) rotate(180deg);
        opacity: 0.5;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translate(-15px, -100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.phone-mockup {
    animation: phoneFloat 6s ease-in-out infinite;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: hsla(230, 20%, 6%, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right .4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: var(--font-main);
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 140px 24px 60px;
        gap: 48px;
    }

    .hero-subtitle,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        padding: 16px 24px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 80px 1fr;
    }
}

@media (max-width: 600px) {
    .result-comparison {
        grid-template-columns: 1fr;
    }

    .hero .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}