/* =====================================================
   ClinicIQ — Premium Awwwards Redesign
   Dramatic, immersive, impressive
   ===================================================== */

:root {
    /* Light medical palette */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f0f9ff;
    
    --text: #0c4a6e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Medical accents */
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --accent-dark: #0369a1;
    
    --green: #10b981;
    --green-light: #34d399;
    
    /* Dark sections (hero, results, contact) */
    --dark-bg: #0c4a6e;
    --dark-bg-alt: #075985;
    
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    /* Animation */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: none; }
@media (max-width: 768px) { button { cursor: pointer; } }

/* =====================================================
   Custom Cursor
   ===================================================== */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s var(--ease), width 0.3s ease, height 0.3s ease;
    opacity: 0.5;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    opacity: 0.2;
    background: rgba(2, 132, 199, 0.1);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
}

/* =====================================================
   Loader
   ===================================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-text {
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    gap: 2px;
    color: white;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letterReveal 0.5s var(--ease) forwards;
}

.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.15s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.25s; }
.loader-text span:nth-child(5) { animation-delay: 0.3s; }
.loader-text span:nth-child(6) { animation-delay: 0.35s; }
.loader-text span:nth-child(7) { animation-delay: 0.4s; color: var(--green-light); }
.loader-text span:nth-child(8) { animation-delay: 0.45s; color: var(--green-light); }

@keyframes letterReveal {
    to { opacity: 1; transform: translateY(0); }
}

.loader-line {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--green);
    animation: loadProgress 1.5s var(--ease) 0.5s forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    transition: all 0.5s var(--ease);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: 0 1px 0 var(--border);
}

.header.hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.header.scrolled .logo {
    color: var(--text);
}

.logo-icon {
    color: var(--green);
    font-size: 12px;
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        inset: 0;
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-lg);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s var(--ease);
    }
    
    .nav.active {
        opacity: 1;
        visibility: visible;
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--text-secondary);
}

.header.scrolled .nav-link:hover {
    color: var(--accent);
}

.header.scrolled .nav-link::after {
    background: var(--accent);
}

@media (max-width: 900px) {
    .nav-link {
        font-size: 32px;
        font-weight: 600;
        color: white;
    }
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    background: var(--green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.cta-arrow {
    transition: transform 0.3s var(--ease);
}

.header-cta:hover {
    transform: scale(1.05);
    background: var(--green-light);
}

.header-cta:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .header-cta { display: none; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    z-index: 1001;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.header.scrolled .menu-toggle span {
    background: var(--text);
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =====================================================
   Hero — Fullscreen Photo Style (Mayra)
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-2xl) var(--space-xl);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-xl) var(--space-lg);
        align-items: center;
    }
}

/* Background — animated gradient mesh */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0c1d2e 0%, #0c3d5e 30%, #0a2942 60%, #071e30 100%);
    overflow: hidden;
}

.hero-gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
}

/* Floating glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(2, 132, 199, 0.2);
    top: -15%;
    right: -5%;
    animation: glowDrift1 12s ease-in-out infinite alternate;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15);
    bottom: -10%;
    left: -5%;
    animation: glowDrift2 15s ease-in-out infinite alternate;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.1);
    top: 40%;
    left: 50%;
    animation: glowDrift3 10s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 40px) scale(1.15); }
}

@keyframes glowDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -30px) scale(1.1); }
}

@keyframes glowDrift3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -50px) scale(1.2); }
}

/* Particle canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating dental SVG icons */
.hero-float-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.06);
    will-change: transform;
    pointer-events: none;
}

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

.float-1 {
    width: 120px;
    height: 120px;
    top: 8%;
    right: 12%;
    animation: floatIcon 18s ease-in-out infinite;
    animation-delay: 0s;
}

.float-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 8%;
    animation: floatIcon2 22s ease-in-out infinite;
    animation-delay: -3s;
}

.float-3 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 60%;
    animation: floatIcon3 20s ease-in-out infinite;
    animation-delay: -7s;
}

.float-4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation: floatIcon 16s ease-in-out infinite;
    animation-delay: -5s;
}

.float-5 {
    width: 140px;
    height: 140px;
    top: 15%;
    left: 5%;
    animation: floatIcon2 25s ease-in-out infinite;
    animation-delay: -10s;
    color: rgba(255, 255, 255, 0.04);
}

.float-6 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 25%;
    animation: floatIcon3 19s ease-in-out infinite;
    animation-delay: -2s;
}

body.loaded .hero-float-icon {
    animation-play-state: running;
}

@keyframes floatIcon {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -25px) rotate(5deg); }
    50% { transform: translate(-10px, -40px) rotate(-3deg); }
    75% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes floatIcon2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 15px) rotate(-6deg); }
    50% { transform: translate(15px, 30px) rotate(4deg); }
    75% { transform: translate(-25px, 10px) rotate(-2deg); }
}

@keyframes floatIcon3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(25px, -20px) rotate(8deg) scale(1.05); }
    66% { transform: translate(-15px, 25px) rotate(-5deg) scale(0.95); }
}

@media (max-width: 768px) {
    .float-1, .float-3, .float-5 { display: none; }
    .float-2 { width: 60px; height: 60px; }
    .float-4 { width: 40px; height: 40px; }
    .float-6 { width: 50px; height: 50px; }
    .hero-glow { filter: blur(60px); }
    .glow-1 { width: 300px; height: 300px; }
    .glow-2 { width: 250px; height: 250px; }
    .glow-3 { display: none; }
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Intro label */
.hero-intro {
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateY(20px);
}

body.loaded .hero-intro {
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Title */
.hero-title {
    margin-bottom: var(--space-md);
    line-height: 0.9;
}

.title-line {
    display: block;
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    opacity: 0;
    transform: translateY(100px);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

body.loaded .title-line {
    animation: titleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.loaded .title-line:nth-child(1) { animation-delay: 0.4s; }
body.loaded .title-line:nth-child(2) { animation-delay: 0.55s; }

@keyframes titleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Outline text effect */
.title-line.outline {
    color: transparent;
    -webkit-text-stroke: 2px white;
    text-stroke: 2px white;
}

@media (max-width: 768px) {
    .title-line {
        font-size: clamp(60px, 22vw, 120px);
    }
    
    .title-line.outline {
        -webkit-text-stroke: 1.5px white;
    }
}

/* Tagline */
.hero-tagline {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 500;
    color: white;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.loaded .hero-tagline {
    animation: fadeUp 0.8s ease forwards 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom section */
.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
}

body.loaded .hero-bottom {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@media (max-width: 768px) {
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 500px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 6px;
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--dark-bg);
    border-color: white;
}

.btn-outline:hover::before {
    transform: translateX(0);
}

.btn-outline svg {
    transition: transform 0.3s ease;
}

.btn-outline:hover svg {
    transform: translateX(4px);
}

@media (max-width: 500px) {
    .btn-outline {
        justify-content: center;
        width: 100%;
    }
}

/* Note */
.hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 280px;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-note {
        text-align: left;
    }
}

/* Socials */
.hero-socials {
    position: absolute;
    right: var(--space-xl);
    bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
}

body.loaded .hero-socials {
    animation: fadeUp 0.8s ease forwards 1.1s;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--dark-bg);
    border-color: white;
    transform: translateY(-3px);
}

/* =====================================================
   Marquee
   ===================================================== */
.marquee {
    padding: var(--space-lg) 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    gap: var(--space-lg);
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.marquee span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee .dot {
    color: var(--accent);
    font-size: 10px;
}

/* =====================================================
   Audiences Section — Two Cards
   ===================================================== */
.audiences {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-alt);
}

.audiences-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.audiences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .audiences-grid {
        grid-template-columns: 1fr;
    }
}

.audience-card {
    padding: var(--space-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease);
}

.audience-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.08);
}

.audience-card.dark {
    background: var(--dark-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

.audience-card.dark:hover {
    border-color: var(--green);
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.15);
}

.audience-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.audience-card.dark .audience-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--green-light);
}

.audience-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.audience-card.dark .audience-label {
    color: var(--green-light);
}

.audience-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.audience-card.dark .audience-title {
    color: white;
}

.audience-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.audience-desc strong {
    color: var(--text);
    font-weight: 600;
}

.audience-card.dark .audience-desc {
    color: rgba(255, 255, 255, 0.6);
}

.audience-card.dark .audience-desc strong {
    color: var(--green-light);
}

.audience-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audience-points li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.audience-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.audience-card.dark .audience-points li {
    color: rgba(255, 255, 255, 0.7);
}

.audience-card.dark .audience-points li::before {
    color: var(--green-light);
}

/* Shared Section Styles */
.section-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-num.light {
    color: var(--green-light);
}

.section-heading {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-heading.light {
    color: white;
}

.section-heading.centered {
    text-align: center;
}

.section-heading .line {
    display: block;
}

.section-heading em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--green);
}

.section-heading.light em {
    color: var(--green-light);
}

/* =====================================================
   Features Section — Scroll-Triggered Horizontal Scroll
   ===================================================== */
.features {
    height: 400vh; /* Длина скролла = кол-во карточек * 50vh */
    background: var(--dark-bg);
    position: relative;
}

.features-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.features-header {
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .features-header {
        padding: 0 var(--space-lg);
    }
}

.features-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.features-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: white;
}

.features-title em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--green-light);
}

/* Horizontal Track */
.features-track {
    display: flex;
    gap: var(--space-lg);
    padding: 0 var(--space-xl);
    will-change: transform;
}

@media (max-width: 768px) {
    .features-track {
        padding: 0 var(--space-lg);
        gap: var(--space-md);
    }
}

/* Feature Card */
.feature-card {
    flex: 0 0 400px;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.6s var(--ease);
    position: relative;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .feature-card {
        flex: 0 0 300px;
        padding: var(--space-lg);
    }
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--green);
    transform: translateY(-10px) scale(1.02);
}

.feature-card.visible:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-num {
    display: block;
    font-size: 64px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: var(--space-lg);
    transition: all 0.4s var(--ease);
}

.feature-card:hover .feature-num {
    -webkit-text-stroke-color: var(--green-light);
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

.feature-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* =====================================================
   Retention Section — Patient Retention
   ===================================================== */
.retention {
    background: var(--bg-alt);
}

.retention-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .retention-container {
        grid-template-columns: 1fr;
    }
}

.retention-header {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    padding-left: max(var(--space-xl), calc((100vw - 1400px) / 2 + var(--space-xl)));
    background: var(--dark-bg);
}

@media (max-width: 900px) {
    .retention-header {
        position: relative;
        height: auto;
        padding: var(--space-2xl) var(--space-lg);
    }
}

.retention-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.retention-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.retention-title em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--green-light);
}

.retention-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 440px;
}

.retention-cards {
    display: flex;
    flex-direction: column;
}

.retention-card {
    padding: var(--space-2xl) var(--space-xl);
    padding-right: max(var(--space-xl), calc((100vw - 1400px) / 2 + var(--space-xl)));
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease);
}

.retention-card:last-child {
    border-bottom: none;
}

.retention-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.retention-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--green);
    transition: height 0.6s var(--ease);
}

.retention-card:hover::before {
    height: 100%;
}

.retention-card:hover {
    background: var(--bg-elevated);
}

@media (max-width: 900px) {
    .retention-card {
        padding: var(--space-xl) var(--space-lg);
    }
}

.retention-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.retention-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.retention-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

/* =====================================================
   Integrations Section
   ===================================================== */
.integrations {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg);
}

.integrations-content {
    max-width: 1100px;
    margin: 0 auto;
}

.integrations-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.integrations-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: var(--space-md) auto 0;
}

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

@media (max-width: 900px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}

.integration-item {
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease);
}

.integration-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.integration-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.08);
}

.integration-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.integration-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.integration-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.integration-item.integration-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: var(--border);
    background: transparent;
    grid-column: 1 / -1;
    padding: var(--space-md);
}

.integration-item.integration-more span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.integration-item.integration-more:hover {
    border-color: var(--accent);
}

.integration-item.integration-more:hover span {
    color: var(--accent);
}

.integrations-api {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--dark-bg);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease);
}

.integrations-api.revealed {
    opacity: 1;
    transform: translateY(0);
}

.api-badge {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--green);
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
}

.integrations-api p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .integrations-api {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   Pricing Section — Floating Cards + Featured Spotlight
   ===================================================== */
.pricing {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-alt);
    overflow: visible;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    padding: var(--space-md) 0;
}

.pricing-single {
    display: flex;
    justify-content: center;
    padding: var(--space-md) 0;
}

.pricing-single .price-card {
    max-width: 420px;
    width: 100%;
}

.pricing-single .price-extra {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-single .price-extra .currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-light);
}

.pricing-single .price-extra .value {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: white;
}

.pricing-single .price-extra .period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1100px) {
    .pricing-grid {
        max-width: 900px;
        gap: var(--space-sm);
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: var(--space-lg);
    }
}

/* Base Card */
.price-card {
    padding: var(--space-md) var(--space-md);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s var(--ease);
}

.price-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.1);
}

@media (max-width: 900px) {
    .price-card:hover {
        transform: translateY(-5px);
    }
}

/* Featured Card — Spotlight Effect */
.price-card.featured {
    background: var(--dark-bg);
    border-color: var(--green);
    padding: var(--space-lg) var(--space-md);
    box-shadow: 
        0 20px 60px rgba(2, 132, 199, 0.15),
        0 0 0 1px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.price-card.featured.revealed {
    transform: translateY(-10px);
}

.price-card.featured:hover {
    transform: translateY(-18px);
    box-shadow: 
        0 40px 80px rgba(2, 132, 199, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.4);
}

@media (max-width: 900px) {
    .price-card.featured.revealed {
        transform: translateY(0);
    }
    
    .price-card.featured:hover {
        transform: translateY(-8px);
    }
}

/* Featured card colors */
.price-card.featured .price-header h3,
.price-card.featured .price-amount .value {
    color: white;
}

.price-card.featured .price-header p,
.price-card.featured .price-amount .currency,
.price-card.featured .price-amount .period {
    color: rgba(255, 255, 255, 0.6);
}

.price-card.featured .price-features li {
    color: rgba(255, 255, 255, 0.8);
}

.price-card.featured .price-features li::before {
    color: var(--green-light);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--green);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.price-header {
    margin-bottom: var(--space-sm);
}

.price-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.price-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.price-amount {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 4px;
}

.pricing-single .price-amount {
    border-bottom: none;
    margin-bottom: calc(var(--space-sm) / 2);
    padding-bottom: calc(var(--space-sm) / 2);
}

.price-amount .currency {
    font-size: 16px;
    font-weight: 500;
}

.price-amount .value {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    white-space: nowrap;
}

.price-card.featured .price-amount .value {
    color: var(--accent);
}

.price-amount .period {
    font-size: 16px;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.price-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.price-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

.price-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.price-btn:hover {
    border-color: var(--text);
}

.price-btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.price-btn.primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Big Number */
.faq-num {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    min-width: 100px;
    transition: color 0.4s ease;
    font-family: var(--font-heading);
}

.faq-item:hover .faq-num,
.faq-item.active .faq-num {
    color: var(--accent);
}

.faq-main {
    flex: 1;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    color: var(--text);
}

.faq-question {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.3s ease;
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon span {
    position: absolute;
    background: var(--text-muted);
    transition: all 0.4s var(--ease);
}

.faq-icon span:first-child {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon span:last-child {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon span:last-child {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item:hover .faq-icon span {
    background: var(--accent);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
}

.faq-content p {
    padding: var(--space-sm) 0 var(--space-md);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

/* Mobile */
@media (max-width: 768px) {
    .faq-item {
        gap: var(--space-md);
    }
    
    .faq-num {
        min-width: 60px;
        font-size: 40px;
    }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.contact-bg {
    background: var(--dark-bg);
}

.orb-contact {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-md);
    color: white;
}

.contact-title .line {
    display: block;
}

.contact-title em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--green-light);
}

.contact-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xl);
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-field {
    position: relative;
}

.form-field input {
    width: 100%;
    padding: var(--space-md);
    padding-top: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 16px;
    color: white;
    transition: border-color 0.3s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--green);
}

.form-field label {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    top: 14px;
    font-size: 11px;
    color: var(--green-light);
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 20px;
    background: var(--green);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s var(--ease);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    background: var(--green-light);
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

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

.footer-logo {
    color: var(--text);
}

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

@media (max-width: 600px) {
    .footer-main {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--text);
}

/* =====================================================
   Notification
   ===================================================== */
.notification {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
    color: white;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-color: var(--green);
}

.notification::before {
    content: '✓';
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

/* =====================================================
   Reveal Animations
   ===================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
