/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --bg-alt: #f5f3ff;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #3730A3;
    --accent-hover: #312e81;
    --accent-light: #ede9fe;
    --accent-mid: #6366f1;
    --border: #e2e8f0;
    --border-accent: #c4b5fd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== NAV ===== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
#navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg { display: block; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin-left: auto;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 7px;
    transition: color 0.15s, background 0.15s;
    display: block;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

.nav-cta {
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    margin-left: 8px;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: auto;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.lang-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}
.lang-btn:hover { color: var(--text); background: var(--border); }
.lang-btn.active { background: var(--accent); color: white; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    border: 1px solid var(--border-accent);
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--accent-mid);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #3730A3 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-trust .sep { color: var(--border); }

/* ===== DASHBOARD MOCK ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mock {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.mock-header {
    background: var(--bg-alt);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green { background: #22c55e; }

.mock-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
}

.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.mock-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 12px 14px;
}
.mock-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    flex: 1;
}
.mock-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.mock-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}
.mock-tag.normal { background: #dcfce7; color: #16a34a; }
.mock-tag.good { background: #dcfce7; color: #16a34a; }
.mock-tag.stable { background: #e0e7ff; color: var(--accent); }

.mock-chart {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 14px;
    overflow: hidden;
}
.mock-chart svg { width: 100%; height: 60px; display: block; }
.mock-chart-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55,48,163,0.35);
}
.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); transform: translateY(-1px); }
.btn-full { width: 100%; }

/* ===== STATS ===== */
.stats {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== SECTION SHARED ===== */
.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}
.section-header h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== AUDIENCE ===== */
.audience {
    padding: 96px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.audience-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.audience-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-accent);
}
.audience-icon {
    width: 44px; height: 44px;
    background: var(--accent-light);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}
.audience-icon svg { width: 20px; height: 20px; }
.audience-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.audience-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===== MODULES ===== */
.modules {
    padding: 96px 0;
    background: var(--bg);
}
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.module-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-accent);
}
.module-card.wide { grid-column: 1 / -1; }
.module-card.wide p { max-width: 680px; }

.module-icon {
    width: 44px; height: 44px;
    background: var(--accent-light);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}
.module-icon svg { width: 20px; height: 20px; }
.module-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===== CUSTOM MODULE CALLOUT ===== */
.custom-callout {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--accent-light) 0%, #e0e7ff 100%);
    border: 2px dashed var(--border-accent);
    border-radius: 16px;
    padding: 32px 36px;
    flex-wrap: wrap;
}
.custom-callout-icon {
    width: 56px; height: 56px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.custom-callout-icon svg { width: 28px; height: 28px; }
.custom-callout-body { flex: 1; min-width: 240px; }
.custom-callout-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.custom-callout-body p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }
.btn-custom {
    background: var(--accent);
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55,48,163,0.35);
}

/* ===== CLINICIANS ===== */
.clinicians {
    padding: 96px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.two-col-text h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.two-col-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}
.feature-list li svg {
    width: 16px; height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Patient list mock */
.feature-card-stack { display: flex; flex-direction: column; gap: 16px; }

.fcard {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.fcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fcard-label { font-size: 13px; font-weight: 700; color: var(--text); }
.fcard-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
}
.fcard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.fcard-row:last-child { border-bottom: none; padding-bottom: 0; }

.patient-avatar {
    width: 36px; height: 36px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.patient-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.patient-name { font-size: 14px; font-weight: 600; color: var(--text); }
.patient-modules { font-size: 12px; color: var(--text-muted); }
.patient-status { font-size: 14px; font-weight: 700; }
.patient-status.ok { color: #16a34a; }
.patient-status.warn { color: #d97706; }

/* ===== AI ASSISTANT ===== */
.assistant { padding: 96px 0; }
.assistant .two-col-visual { display: flex; justify-content: center; }

.chat-mock {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 420px;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.chat-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-avatar svg { width: 16px; height: 16px; }
.chat-title { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
.chat-status {
    width: 8px; height: 8px;
    background: #16a34a;
    border-radius: 50%;
}
.chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px;
}
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.chat-bubble.bot {
    align-self: flex-start;
    background: var(--accent-light);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-confirm {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: white;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 6px 14px;
}

/* ===== TRUST ===== */
.trust {
    padding: 96px 0;
    background: var(--bg);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.trust-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.trust-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-accent);
}
.trust-icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.trust-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ===== PRICING ===== */
.pricing {
    padding: 96px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}
.pricing-header { margin-bottom: 24px; }
.pricing-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}
.price-amount {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.price-period { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.pricing-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 96px 0;
    background: var(--bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}
.contact-info .section-tag { display: block; }
.contact-info h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.contact-info p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}
.contact-meta { display: flex; flex-direction: column; gap: 12px; }
.contact-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.contact-meta-item svg { color: var(--accent); flex-shrink: 0; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(55,48,163,0.1);
    background: white;
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: rgba(255,255,255,0.5);
    padding: 48px 0 32px;
}
.footer-content {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.footer-brand { margin-right: auto; }
.footer-brand svg { display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-legal { color: rgba(255,255,255,0.35); }

/* ===== HERO INTRO SECTION ===== */
.hero-intro {
    background: #0f0e2a;
    padding: 64px 24px 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-intro::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-intro svg { width: 100%; max-width: 520px; height: auto; display: block; }

/* ===== HERO LOGO ANIMATION ===== */
.hero-anim-card {
    background: #0f0e2a;
    border-radius: 20px;
    padding: 40px 32px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 80px rgba(99,102,241,0.12);
}
.hero-anim-card::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-anim-card svg { width: 100%; height: auto; display: block; }

@keyframes hexDraw {
    from { stroke-dashoffset: 600; opacity: 0.2; }
    to   { stroke-dashoffset: 0;   opacity: 1; }
}
@keyframes hexFill {
    0%   { fill-opacity: 0; }
    45%  { fill-opacity: 0; }
    100% { fill-opacity: 1; }
}
@keyframes logoShimmer {
    0%   { transform: translateX(-130px) skewX(-15deg); opacity: 0; }
    25%  { opacity: 0.5; }
    55%  { opacity: 0; }
    100% { transform: translateX(130px) skewX(-15deg); opacity: 0; }
}
@keyframes ecgDraw {
    from { stroke-dashoffset: 420; }
    to   { stroke-dashoffset: 0; }
}
@keyframes flatLine {
    from { stroke-dashoffset: 60; }
    to   { stroke-dashoffset: 0; }
}
@keyframes wordFade {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes subFade {
    from { opacity: 0; letter-spacing: 1px; }
    to   { opacity: 1; letter-spacing: 5px; }
}
@keyframes hexGlowPulse {
    0%, 100% { opacity: 0.1; }
    50%       { opacity: 0.3; }
}
@keyframes hexRingPulse {
    0%, 100% { opacity: 0; stroke-width: 8; }
    50%       { opacity: 0.2; stroke-width: 14; }
}
@keyframes haloIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes divIn {
    from { opacity: 0; transform: scaleY(0); }
    to   { opacity: 0.3; transform: scaleY(1); }
}

.hero-intro .hex-halo {
    animation: haloIn 0.5s ease 1.1s both, hexGlowPulse 2.5s ease 2s infinite;
}
.hero-intro .hex-ring {
    fill: none; stroke: #6366f1;
    animation: haloIn 0.4s ease 1.1s both, hexRingPulse 2.5s ease 2s infinite;
}
.hero-intro .hex-fill {
    fill: url(#hexFillGrad); fill-opacity: 0;
    animation: hexFill 1.3s ease 0.1s forwards;
}
.hero-intro .hex-outline {
    fill: none; stroke: url(#hexStrokeGrad); stroke-width: 2;
    stroke-dasharray: 600; stroke-dashoffset: 600;
    animation: hexDraw 1s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
}
.hero-intro .hex-shimmer {
    fill: url(#shimmerGrad); clip-path: url(#hexClip); opacity: 0;
    animation: logoShimmer 0.75s ease 1.15s forwards;
}
.hero-intro .flat-left {
    fill: none; stroke: white; stroke-width: 3.5; stroke-linecap: round;
    stroke-dasharray: 60; stroke-dashoffset: 60; filter: url(#ecgGlow);
    animation: flatLine 0.28s ease 0.92s forwards;
}
.hero-intro .ecg-line {
    fill: none; stroke: white; stroke-width: 3.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 420; stroke-dashoffset: 420; filter: url(#ecgGlow);
    animation: ecgDraw 0.8s cubic-bezier(0.4,0,0.2,1) 1.0s forwards;
}
.hero-intro .flat-right {
    fill: none; stroke: white; stroke-width: 3.5; stroke-linecap: round;
    stroke-dasharray: 60; stroke-dashoffset: 60; filter: url(#ecgGlow);
    animation: flatLine 0.28s ease 1.75s forwards;
}
.hero-intro .anim-divider {
    opacity: 0; transform-origin: 182px 80px;
    animation: divIn 0.4s ease 1.6s forwards;
}
.hero-intro .word-med {
    opacity: 0;
    animation: wordFade 0.6s ease 1.65s forwards;
    fill: url(#medGrad); filter: url(#textGlow);
}
.hero-intro .word-log {
    opacity: 0;
    animation: wordFade 0.6s ease 1.85s forwards;
}
.hero-intro .sub-text {
    opacity: 0;
    animation: subFade 0.9s ease 2.25s forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; }
    .hero-visual { order: -1; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .module-card.wide { grid-column: auto; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta, .lang-switcher { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px 16px;
        gap: 2px;
        z-index: 99;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open a { padding: 10px 12px; display: block; border-radius: 8px; }
    .hamburger { display: flex; }

    .stats .container { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .trust-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-brand { margin-right: 0; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}
