/* ============================================================
   Office XXL – Landing Page Stylesheet
   Premium SaaS Design System
   ============================================================ */

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

:root {
    --bg-deep: #09090e;
    --bg-dark: #0f111a;
    --bg-card: rgba(20, 22, 30, 0.6);
    --bg-card-hover: rgba(30, 34, 45, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899, #f59e0b);
    --gradient-text: linear-gradient(135deg, #22d3ee 10%, #a855f7 50%, #f43f5e 90%);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.25);
    --radius: 24px;
    --radius-sm: 12px;
    --radius-full: 9999px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

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

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

/* === GRADIENT TEXT === */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(9, 9, 14, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
}
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex; gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s;
    text-align: center;
}
.nav-login:hover { color: var(--text); }
.nav-cta {
    background: var(--gradient);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}
.mobile-nav-actions {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.nav-toggle:hover, .nav-toggle:active {
    background: rgba(255,255,255,0.12);
}
.nav-toggle span {
    width: 22px; height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.15s ease;
    display: block;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
    top: -200px; right: -100px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
    bottom: -150px; left: -100px;
    animation-delay: -7s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
    top: 50%; left: 40%;
    animation-delay: -14s;
    opacity: 0.8;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(59,130,246,0.05); }
.btn-white {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* === HERO STATS === */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === HERO VISUAL (Dashboard Mockup) === */
.hero-visual {
    position: relative;
}
.dashboard-mockup {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 120px rgba(6, 182, 212, 0.15);
}
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-url {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dim);
}
.mockup-content {
    display: flex;
    min-height: 280px;
}
.mockup-sidebar {
    width: 50px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mockup-nav-item {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
}
.mockup-nav-item.active {
    background: var(--primary);
    opacity: 0.6;
}
.mockup-main { flex: 1; padding: 16px; }
.mockup-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mockup-title-block { width: 120px; height: 14px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.mockup-btn-block { width: 80px; height: 14px; background: rgba(59,130,246,0.3); border-radius: 4px; }
.mockup-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.mockup-stat-card {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.mockup-stat-card.c1 { background: rgba(59,130,246,0.08); }
.mockup-stat-card.c2 { background: rgba(34,197,94,0.08); }
.mockup-stat-card.c3 { background: rgba(245,158,11,0.08); }
.mc-label {
    width: 60%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-bottom: 8px;
}
.mc-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}
.mockup-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mockup-table-header {
    height: 10px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
    margin: 8px 10px;
    border-radius: 3px;
}
.mockup-table-row {
    height: 8px;
    margin: 10px;
    border-radius: 3px;
    background: rgba(255,255,255,0.03);
    animation: shimmer 2s ease-in-out infinite;
}
.mockup-table-row.r1 { width: 90%; animation-delay: 0s; }
.mockup-table-row.r2 { width: 75%; animation-delay: 0.2s; }
.mockup-table-row.r3 { width: 85%; animation-delay: 0.4s; }
.mockup-table-row.r4 { width: 70%; animation-delay: 0.6s; }
.mockup-table-row.r5 { width: 80%; animation-delay: 0.8s; }

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Floating Notification Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: floatCard 6s ease-in-out infinite;
}
.fc-1 { bottom: 40px; left: -30px; animation-delay: 0s; }
.fc-2 { top: 30px; right: -20px; animation-delay: -3s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.fc-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    flex-shrink: 0;
}
.fc-title { font-size: 13px; font-weight: 600; white-space: nowrap; }
.fc-sub { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === TRUSTED === */
.trusted {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.3);
}
.trusted-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trusted-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dim);
    opacity: 0.4;
    letter-spacing: 1px;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === FEATURES === */
.features {
    padding: 120px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: rgba(20, 22, 30, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(30, 34, 45, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139, 92, 246, 0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === PREVIEW / STEPS === */
.preview {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,0.5), transparent);
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.step-card {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
.step-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}
.step-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient);
    margin-top: 28px;
    flex-shrink: 0;
    border-radius: 2px;
}

/* === PRICING === */
.pricing {
    padding: 120px 0;
}
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}
.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
}
.toggle-label.active { color: var(--text); }
.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}
.toggle-switch {
    width: 48px; height: 26px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}
.toggle-switch.active { background: var(--primary); border-color: var(--primary); }
.toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch.active .toggle-knob { transform: translateX(22px); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(59,130,246,0.08), var(--bg-card));
    box-shadow: 0 0 60px rgba(59,130,246,0.1);
    transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
.featured-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.price-amount { font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.price-period { font-size: 14px; color: var(--text-dim); margin-left: 4px; }
.pricing-card-price { margin-bottom: 28px; }

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.plan-features li.excluded { color: var(--text-dim); }

/* === FAQ === */
.faq {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,0.5), transparent);
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover,
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}
.faq-chevron { transition: transform 0.3s; color: var(--text-dim); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === CTA SECTION === */
.cta-section { padding: 80px 0 120px; }
.cta-card {
    position: relative;
    background: var(--gradient);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
}
.cta-bg-effect {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 60%);
}
.cta-card h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}
.cta-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
    position: relative;
}
.cta-actions { position: relative; }

/* === FOOTER === */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-top: 8px;
}
.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

/* === VIDEO SECTION === */
.video-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.video-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.video-section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 56px;
}
.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    color: #a78bfa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.video-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 16px;
}
.video-title .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.video-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}
.video-player-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.video-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #22d3ee, #a855f7, #f43f5e);
    opacity: 0.5;
    filter: blur(20px);
    z-index: 0;
    animation: videoGlowPulse 4s ease-in-out infinite alternate;
}
@keyframes videoGlowPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}
.video-frame {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    background: #000;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.video-frame video {
    width: 100%;
    display: block;
    border-radius: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    /* Logo scaling FULLY overridden for mobile to prevent overflow */
    .logo-icon, .logo-text {
        transform: scale(1) !important; 
        transform-origin: center center !important;
    }
    
    .nav-container { padding: 0 16px; }

    .hero { padding: 100px 0 60px; overflow-x: hidden; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 0 16px; width: 100%; box-sizing: border-box; overflow: hidden; }
    .hero-title { font-size: clamp(28px, 8vw, 40px); word-wrap: break-word; }
    
    .hero-content { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-actions { justify-content: center; flex-wrap: wrap; width: 100%; }
    .btn-lg { padding: 12px 20px; font-size: 14px; width: 100%; text-align: center; justify-content: center; }
    
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-visual { max-width: 100%; margin: 0 auto; width: 100%; overflow: hidden; }
    .dashboard-mockup { transform: scale(0.9); transform-origin: top center; margin-bottom: -5%; }
    
    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    
    .preview { padding: 80px 0; }
    
    .pricing { padding: 80px 0; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    
    .steps-grid { flex-direction: column; gap: 24px; }
    .step-connector { width: 2px; height: 30px; margin: 0 auto; }
    
    .faq { padding: 80px 0; }
    
    .video-section { padding: 60px 0; }
    .video-title { font-size: 28px; }
    .video-subtitle { font-size: 15px; }
    .video-section-header { margin-bottom: 32px; }
    .video-glow { filter: blur(12px); }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .floating-card { display: none; }
    
    .nav-actions { display: none !important; }
    .nav-toggle { display: flex; }
    
    /* Mobile menu – instant slide-down using max-height (GPU friendly, no blur lag) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #06060f;
        padding: 0 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    }
    .nav-links.active {
        max-height: 500px;
        padding: 16px 24px 28px;
    }
    
    .mobile-nav-actions { 
        display: flex; 
        flex-direction: column; 
        margin-top: 16px; 
        padding-top: 16px; 
        border-top: 1px solid rgba(255,255,255,0.08);
        gap: 10px;
    }
    .mobile-nav-actions .nav-cta {
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    }
    .mobile-nav-actions .nav-login {
        text-align: center;
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        color: var(--text-muted);
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.06);
    }
}

@media (max-width: 600px) {
    .logo-icon, .logo-text {
        transform: scale(0.9) !important;
    }
    
    /* Make SURE buttons do not overflow horizontally */
    .btn-lg, .btn, .nav-cta {
        padding: 10px 16px !important;
        font-size: 14px !important;
        white-space: normal;
        line-height: 1.4;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-badge { margin-bottom: 16px; font-size: 11px; padding: 4px 12px; }
    .hero-title { font-size: 28px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; margin-bottom: 24px; }
    
    .hero-stats { flex-direction: column; gap: 12px; width: 100%; }
    .stat-divider { width: 100%; height: 1px; background: var(--border); }
    
    .dashboard-mockup { transform: scale(0.75); transform-origin: top center; margin-bottom: -15%; }
    
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 22px; }
    
    .section-title { font-size: 24px; }
    
    .pricing-card { padding: 24px 20px; }
    .price-amount { font-size: 32px; }
}

/* === LEGAL MODALS === */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.legal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.legal-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.legal-modal-box.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.modal-content {
    padding: 40px;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}
.modal-content h2 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 24px;
    margin-top: 0;
    font-weight: 700;
}
.modal-content h3 {
    color: var(--text);
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}
.modal-content p {
    margin-bottom: 16px;
}
.modal-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}
.modal-content li {
    margin-bottom: 8px;
}
.modal-content a {
    color: var(--primary);
    text-decoration: none;
}
.modal-content a:hover {
    text-decoration: underline;
}
