/* ============================================
   FITNESS-AI — Стили
   ============================================ */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg: #0a0a0f;
    --bg-2: #0f0f1a;
    --bg-3: #141428;
    --surface: #1a1a2e;
    --surface-2: #1e1e35;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);

    --text: #f8fafc;
    --text-2: #94a3b8;
    --text-3: #64748b;

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);

    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.6), transparent);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.5), transparent);
    top: 100px;
    right: -100px;
    animation: pulse 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.4), transparent);
    top: 200px;
    left: -50px;
    animation: pulse 12s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.6; }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.5);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 32px rgba(99,102,241,0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 48px rgba(99,102,241,0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text), var(--text-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

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

/* ============================================
   HERO DASHBOARD
   ============================================ */

.hero-image-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-dashboard {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-align: left;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.dash-dots {
    display: flex;
    gap: 6px;
}

.dash-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.dash-dots span:first-child { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:last-child { background: #10b981; }

.dash-title {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.dash-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
}

.dash-badge.live {
    background: rgba(16,185,129,0.15);
    color: var(--success);
    animation: blink 2s ease-in-out infinite;
}

.dashboard-body {
    display: flex;
    min-height: 300px;
}

.dash-sidebar {
    width: 160px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--border);
    padding: 16px 0;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-3);
    cursor: pointer;
    transition: var(--transition);
}

.dash-nav-item:hover {
    color: var(--text-2);
    background: rgba(255,255,255,0.04);
}

.dash-nav-item.active {
    color: var(--primary-light);
    background: rgba(99,102,241,0.1);
    border-right: 2px solid var(--primary);
}

.dash-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dash-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dc-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

.dc-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.dc-trend {
    font-size: 11px;
    font-weight: 600;
}

.dc-trend.up { color: var(--success); }
.dc-trend.down { color: var(--danger); }

.dash-chart {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.chart-label {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 12px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.bar::before {
    content: '';
    display: block;
    width: 100%;
    height: var(--h, 50%);
    background: rgba(99,102,241,0.3);
    border-radius: 3px 3px 0 0;
    transition: height var(--transition-slow);
}

.bar.active::before {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 0 12px rgba(99,102,241,0.5);
}

.bar span {
    font-size: 9px;
    color: var(--text-3);
}

.dash-ai-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.ai-icon { font-size: 20px; }

.ai-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-text strong {
    font-size: 13px;
    color: var(--text);
}

.ai-text span {
    font-size: 11px;
    color: var(--text-3);
}

.ai-btn {
    padding: 6px 12px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ai-btn:hover {
    background: rgba(239,68,68,0.25);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    bottom: 80px;
    left: -60px;
    animation-delay: 0s;
}

.card-2 {
    top: 60px;
    right: -60px;
    animation-delay: -3s;
}

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

.fc-icon { font-size: 24px; }

.fc-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fc-content strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.fc-content span {
    font-size: 11px;
    color: var(--text-3);
}

/* ============================================
   LOGOS
   ============================================ */

.logos-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.logos-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 24px;
}

.logos-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logos-inner {
    display: flex;
    gap: 60px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-3);
    white-space: nowrap;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo-item:hover {
    color: var(--text-2);
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
    opacity: 0;
    transition: var(--transition-slow);
}

.feature-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-large {
    grid-column: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

/* X-Ray Demo */
.feature-visual {
    margin-top: 24px;
}

.xray-demo {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.xray-scan {
    position: relative;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 12px;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.8), transparent);
    animation: scanDown 3s ease-in-out infinite;
}

@keyframes scanDown {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.xray-teeth {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.tooth {
    width: 30px;
    height: 40px;
    border-radius: 4px 4px 8px 8px;
}

.tooth[data-status="ok"] {
    background: rgba(255,255,255,0.12);
}

.tooth[data-status="warning"] {
    background: rgba(245,158,11,0.3);
    border: 1px solid rgba(245,158,11,0.5);
    box-shadow: 0 0 8px rgba(245,158,11,0.3);
}

.tooth[data-status="danger"] {
    background: rgba(239,68,68,0.3);
    border: 1px solid rgba(239,68,68,0.5);
    box-shadow: 0 0 8px rgba(239,68,68,0.4);
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 8px rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 16px rgba(239,68,68,0.8); }
}

.xray-result {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.xr-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.xr-badge.danger {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}

.xr-badge.warning {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.3);
}

/* Schedule Demo */
.schedule-demo {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 24px;
}

.sch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.sch-header span:first-child {
    color: var(--text-2);
    font-weight: 600;
}

.sch-ai-label {
    color: var(--primary-light);
    font-weight: 500;
}

.sch-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sch-slot {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.sch-slot.busy {
    background: rgba(255,255,255,0.05);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.sch-slot.free {
    background: rgba(16,185,129,0.08);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
}

.sch-slot.ai-suggested {
    background: rgba(99,102,241,0.1);
    color: var(--primary-light);
    border: 1px dashed rgba(99,102,241,0.4);
    animation: pulse-ai 2s ease-in-out infinite;
}

@keyframes pulse-ai {
    0%, 100% { border-color: rgba(99,102,241,0.4); }
    50% { border-color: rgba(99,102,241,0.8); }
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-2);
}

.steps-wrapper {
    position: relative;
}

.steps-line {
    position: absolute;
    top: 60px;
    left: calc(16.66% + 4px);
    right: calc(16.66% + 4px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.4;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 24px rgba(99,102,241,0.2);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.step-time {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
    padding: 100px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-3);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-3);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: var(--primary-light);
}

.save-badge {
    padding: 4px 10px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition-slow);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.3);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(99,102,241,0.08), var(--surface));
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 48px rgba(99,102,241,0.12);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 28px;
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 28px;
}

.price-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-2);
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -2px;
}

.price-period {
    font-size: 15px;
    color: var(--text-3);
}

.btn-plan {
    display: block;
    padding: 13px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    color: var(--text-2);
    margin-bottom: 28px;
    transition: var(--transition);
}

.btn-plan:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

.btn-plan-featured {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}

.btn-plan-featured:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
}

.check {
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.cross {
    color: var(--text-3);
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    padding: 100px 0;
    background: var(--bg-2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition-slow);
}

.testimonial-card:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-3px);
}

.quote-icon {
    font-size: 56px;
    line-height: 0.5;
    color: var(--primary);
    opacity: 0.4;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.author-info span {
    font-size: 12px;
    color: var(--text-3);
}

.stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    padding: 100px 0;
}

.faq-grid {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: rgba(99,102,241,0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255,255,255,0.03);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--radius-xl);
    padding: 80px 48px;
    text-align: center;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.cta-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(99,102,241,0.25);
    top: -100px;
    left: -50px;
}

.cta-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(139,92,246,0.2);
    bottom: -80px;
    right: -50px;
}

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

.cta-card h2 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 17px;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 32px rgba(99,102,241,0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 48px rgba(99,102,241,0.6);
}

.btn-cta-secondary {
    padding: 16px 28px;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

.cta-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 72px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.7;
    margin: 16px 0 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-3);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .feature-large {
        grid-column: span 1;
    }

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

    .pricing-card.featured {
        transform: none;
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

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

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

    .card-1, .card-2 {
        display: none;
    }
}

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

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        z-index: 99;
    }

    .nav-links.open + .nav-actions {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

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

    .stat-item {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 16px;
    }

    .dashboard-body {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 8px;
        gap: 4px;
    }

    .dash-nav-item {
        flex-shrink: 0;
        border-radius: var(--radius-sm);
    }

    .dash-nav-item.active {
        border-right: none;
        border-bottom: 2px solid var(--primary);
    }

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

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

    .steps-line {
        display: none;
    }

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

    .pricing-card.featured {
        grid-column: span 1;
        max-width: 100%;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        text-align: center;
    }

    .dash-cards {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   AI CHAT DEMO
   ============================================ */

.ai-chat-section {
    padding: 100px 0;
    background: var(--bg-2);
}

.ai-chat-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Chat Container */
.ai-chat-container {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.08);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border-bottom: 1px solid var(--border);
}

.ai-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ai-avatar svg {
    width: 44px;
    height: 44px;
}

.ai-avatar-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: var(--success);
    border: 2px solid var(--surface);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.ai-header-info {
    flex: 1;
}

.ai-header-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.ai-online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.ai-online-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.ai-header-badge {
    padding: 5px 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

/* Messages */
.ai-messages-list {
    min-height: 360px;
    max-height: 420px;
    overflow-y: auto;
    padding: 20px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.ai-messages-list::-webkit-scrollbar {
    width: 4px;
}
.ai-messages-list::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 2px;
}

.ai-message {
    display: flex;
    flex-direction: column;
    max-width: 78%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ai-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-message-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    position: relative;
}

.ai-message-time {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 4px;
    font-weight: 500;
}

/* User messages (right side) */
.ai-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.ai-msg-user .ai-message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 4px;
}

/* Bot messages (left side) */
.ai-msg-bot {
    align-self: flex-start;
    align-items: flex-start;
}

.ai-msg-bot .ai-message-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.ai-typing {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
}

.ai-typing.active {
    display: flex;
}

.ai-typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ai-typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.ai-typing-text {
    font-size: 12px;
    color: var(--text-3);
    font-style: italic;
}

/* Input bar */
.ai-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.ai-input-field {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-3);
    user-select: none;
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

.ai-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99,102,241,0.6);
}

.ai-send-btn svg {
    width: 16px;
    height: 16px;
}

/* Side cards */
.ai-chat-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-side-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: var(--transition-slow);
}

.ai-side-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateX(4px);
}

.ai-side-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(99,102,241,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-side-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.ai-side-card span {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

.ai-side-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.ai-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-stat-num {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-stat-lbl {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .ai-chat-wrapper {
        grid-template-columns: 1fr;
    }

    .ai-chat-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-side-stats {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .ai-chat-side {
        grid-template-columns: 1fr;
    }

    .ai-side-stats {
        grid-column: span 1;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}
