/* ========================================================
   TempOTP — Premium SaaS Landing Page Stylesheet (UI-001)
   Pixel-Perfect Implementation of User Reference Designs:
   - Light Mode: TaskFlow Clean Safari macOS SaaS Design
   - Dark Mode: NexusAI Cyber-Fintech Glowing 3D Neon Design
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------
   1. Theme Variables: Light (TaskFlow) & Dark (NexusAI)
   -------------------------------------------------------- */
:root,
html[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-elevated: #ffffff;
    --bg-pill-nav: #ffffff;
    --bg-input: #f1f5f9;
    --bg-window-chrome: #ffffff;
    --border-window: #e2e8f0;
    --border-card: #eef2f6;
    --border-subtle: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --brand-primary: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft: #eff6ff;
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --brand-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.35);

    --dark-pill-bg: #0f172a;
    --dark-pill-hover: #1e293b;
    --dark-pill-text: #ffffff;

    --shadow-nav: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-mockup: 0 25px 60px -15px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05);

    /* Stat card pastels (TaskFlow) */
    --stat-1-bg: #eff6ff;
    --stat-1-border: #dbeafe;
    --stat-1-text: #1d4ed8;
    --stat-2-bg: #f5f3ff;
    --stat-2-border: #ede9fe;
    --stat-2-text: #6d28d9;
    --stat-3-bg: #ecfdf5;
    --stat-3-border: #d1fae5;
    --stat-3-text: #047857;
    --stat-4-bg: #fff1f2;
    --stat-4-border: #ffe4e6;
    --stat-4-text: #be123c;
}

html[data-theme="dark"] {
    --bg-base: #060818;
    --bg-card: #0c102c;
    --bg-card-elevated: #10163a;
    --bg-pill-nav: rgba(12, 16, 44, 0.85);
    --bg-input: #12173a;
    --bg-window-chrome: #090d24;
    --border-window: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.04);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --brand-primary: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.16);
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --brand-shadow: 0 10px 30px -4px rgba(37, 99, 235, 0.5);

    --dark-pill-bg: var(--brand-gradient);
    --dark-pill-hover: var(--brand-gradient);
    --dark-pill-text: #ffffff;

    --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-mockup: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5);

    /* Stat card dark neons (NexusAI) */
    --stat-1-bg: #10163a;
    --stat-1-border: rgba(56, 189, 248, 0.2);
    --stat-1-text: #38bdf8;
    --stat-2-bg: #10163a;
    --stat-2-border: rgba(139, 92, 246, 0.2);
    --stat-2-text: #a78bfa;
    --stat-3-bg: #10163a;
    --stat-3-border: rgba(16, 185, 129, 0.2);
    --stat-3-text: #34d399;
    --stat-4-bg: #10163a;
    --stat-4-border: rgba(244, 63, 94, 0.2);
    --stat-4-text: #fb7185;
}

/* --------------------------------------------------------
   2. Base Body & Background Patterns
   -------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body.landing-page {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Grid Pattern (NexusAI) */
html[data-theme="dark"] body.landing-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1200px;
    background-image: 
        radial-gradient(circle at 50% 250px, rgba(99, 102, 241, 0.15) 0%, rgba(6, 8, 24, 0) 70%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    background-position: center top, center top, center top;
    pointer-events: none;
    z-index: 0;
}

/* Light Mode Soft Ribbons Pattern (TaskFlow) */
html[data-theme="light"] body.landing-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1000px;
    background: radial-gradient(ellipse 80% 50% at 50% 80px, rgba(219, 234, 254, 0.45) 0%, rgba(248, 250, 252, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------
   3. Side 3D Glowing Waves (Dark Mode NexusAI)
   -------------------------------------------------------- */
.nexus-side-wave {
    position: absolute;
    top: 140px;
    width: 320px;
    height: 700px;
    pointer-events: none;
    z-index: 1;
    display: none;
}

html[data-theme="dark"] .nexus-side-wave {
    display: block;
}

.nexus-side-wave.left {
    left: -40px;
}

.nexus-side-wave.right {
    right: -40px;
    transform: scaleX(-1);
}

/* --------------------------------------------------------
   4. Navigation Bar
   -------------------------------------------------------- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 24px;
    background-color: rgba(248, 250, 252, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .landing-header {
    background-color: rgba(6, 8, 24, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.landing-header.scrolled {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .landing-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.landing-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand Logo */
.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.landing-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: var(--brand-shadow);
}

.landing-brand-logo i {
    font-size: 1.1rem;
}

/* Center Floating Pill Menu */
.landing-nav-pill-wrapper {
    background: var(--bg-pill-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 6px 14px;
    box-shadow: var(--shadow-nav);
    display: flex;
    align-items: center;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 9999px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.landing-nav-link:hover,
.landing-nav-link.active {
    color: var(--text-primary);
}

html[data-theme="light"] .landing-nav-link.active {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

html[data-theme="dark"] .landing-nav-link.active {
    color: var(--brand-primary);
    position: relative;
}

html[data-theme="dark"] .landing-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--brand-primary);
}

/* Nav Actions (Right) */
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-nav);
}

.theme-toggle-btn:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

html[data-theme="light"] .theme-toggle-btn .fa-sun { display: none; }
html[data-theme="light"] .theme-toggle-btn .fa-moon { display: inline-block; color: #6366f1; }
html[data-theme="dark"] .theme-toggle-btn .fa-moon { display: none; }
html[data-theme="dark"] .theme-toggle-btn .fa-sun { display: inline-block; color: #f59e0b; }

/* Dark Pill Login Button (TaskFlow in Light Mode) */
.btn-dark-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-pill-text) !important;
    background: var(--dark-pill-bg);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-dark-pill:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

/* Glowing Get Started Pill (NexusAI in Dark Mode / TaskFlow Blue in Light) */
.btn-glow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--brand-gradient);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--brand-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-glow-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow);
    filter: brightness(1.08);
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-nav);
    transition: all 0.15s ease;
}

.btn-outline-pill:hover {
    transform: translateY(-1px);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.mobile-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
}

.mobile-only-nav-actions {
    display: none;
}

/* --------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 60px 24px 80px 24px;
    z-index: 2;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Eyebrows: Line with glowing dots (Dark) vs Soft Pill (Light) */
.hero-eyebrow-dark {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-eyebrow-dark .eyebrow-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary));
}
.hero-eyebrow-dark .eyebrow-line.rev {
    background: linear-gradient(90deg, var(--brand-primary), transparent);
}
.hero-eyebrow-dark .eyebrow-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 8px var(--brand-primary);
}

.hero-eyebrow-light {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-nav);
    color: var(--brand-primary);
    font-size: 0.86rem;
    font-weight: 600;
    margin: 0 auto 24px auto;
    width: fit-content;
}

html[data-theme="dark"] .hero-eyebrow-dark { display: flex; }
html[data-theme="light"] .hero-eyebrow-light { display: inline-flex; }

/* Headline */
.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

/* Headline Highlights: TaskFlow Serif Italic in Light Mode, NexusAI Cyan Glow in Dark Mode */
.hero-headline .brand-highlight {
    display: inline;
}

html[data-theme="light"] .hero-headline .brand-highlight {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
    color: var(--brand-primary);
}

html[data-theme="dark"] .hero-headline .brand-highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px var(--brand-soft));
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 34px auto;
    line-height: 1.6;
}

/* Hero Action: Dual Buttons (Light) & Email Input Pill (Dark) */
.hero-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Dark Mode Email Pill Input (NexusAI) */
.hero-email-pill-container {
    display: none;
    max-width: 540px;
    width: 100%;
    margin: 0 auto 50px auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--brand-soft);
}

html[data-theme="dark"] .hero-email-pill-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[data-theme="dark"] .hero-actions-row {
    display: none;
}

.hero-email-pill-container input {
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 0.95rem;
    width: 100%;
    padding: 8px 0;
}

.hero-email-pill-container input::placeholder {
    color: #64748b;
}

/* --------------------------------------------------------
   6. Live Product Interface Mockup (TaskFlow & NexusAI)
   -------------------------------------------------------- */
.hero-mockup-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Safari macOS Window Chrome */
.macos-window-frame {
    background: var(--bg-window-chrome);
    border: 1px solid var(--border-window);
    border-radius: 18px;
    box-shadow: var(--shadow-mockup);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.macos-window-header {
    background: var(--bg-window-chrome);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-card);
}

.macos-window-dots {
    display: flex;
    gap: 7px;
}

.macos-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.macos-dot.red { background: #ff5f56; }
.macos-dot.yellow { background: #ffbd2e; }
.macos-dot.green { background: #27c93f; }

.macos-window-nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.macos-address-bar {
    flex: 1;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Inner Dashboard Body Layout */
.mockup-dashboard-layout {
    display: flex;
    min-height: 480px;
}

/* Dashboard Sidebar */
.mockup-sidebar {
    width: 200px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-card);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.mockup-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-left: 6px;
}

.mockup-menu-group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 14px 0 8px 6px;
    font-weight: 700;
}

.mockup-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: default;
}

.mockup-menu-item.active {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

html[data-theme="dark"] .mockup-menu-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* Dashboard Main Content Area */
.mockup-main-panel {
    flex: 1;
    background: var(--bg-base);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

/* Top Greeting / Bar */
.mockup-top-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.greeting-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.greeting-text p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.greeting-user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-avatar-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 4px 12px 4px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar-initials {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 4 Metrics Cards Row (TaskFlow pastel / NexusAI dark) */
.mockup-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric-chip {
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.metric-chip.c1 { background: var(--stat-1-bg); border: 1px solid var(--stat-1-border); }
.metric-chip.c2 { background: var(--stat-2-bg); border: 1px solid var(--stat-2-border); }
.metric-chip.c3 { background: var(--stat-3-bg); border: 1px solid var(--stat-3-border); }
.metric-chip.c4 { background: var(--stat-4-bg); border: 1px solid var(--stat-4-border); }

.metric-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Main Content Widgets (Split Active Number + Gauges/Donut) */
.mockup-widgets-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}

/* Active Order Card */
.mockup-active-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.active-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(37, 211, 102, 0.12);
    color: #10b981;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-pulsing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
}

.pulsing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.phone-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-base);
    border: 1px dashed var(--border-card);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
}

.sms-inbox-preview {
    background: var(--bg-base);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 14px;
}

.sms-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    font-family: ui-monospace, monospace;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 2px;
}

/* Secondary Widget: Donut Chart in Light Mode (TaskFlow) */
.mockup-chart-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    position: relative;
}

/* NexusAI Dark Mode Gauges Widget */
.nexus-gauges-container {
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0;
}

html[data-theme="dark"] .taskflow-donut-container { display: none; }
html[data-theme="dark"] .nexus-gauges-container { display: flex; }

.gauge-box {
    text-align: center;
}

.gauge-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
}

.gauge-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------
   7. Common Public Sections: How It Works, Features, etc.
   -------------------------------------------------------- */
.landing-section,
#how-it-works,
#features,
#services,
#cta {
    padding: 90px 24px;
    position: relative;
    z-index: 2;
    scroll-margin-top: 86px;
}

.landing-section.alt-bg {
    background-color: var(--bg-card);
}

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

.section-heading-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    background: var(--brand-soft);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 3-Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
}

.step-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--brand-shadow);
}

.step-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* 6-Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Supported Services */
.services-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.service-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-nav);
    transition: all 0.2s ease;
}

.service-badge i {
    font-size: 1.15rem;
    color: var(--brand-primary);
}

.service-badge:hover {
    border-color: var(--brand-primary);
    background: var(--brand-soft);
    transform: translateY(-2px);
}

/* Call To Action (CTA) Section */
.cta-section {
    padding: 40px 24px 90px 24px;
    position: relative;
    z-index: 2;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    box-shadow: var(--shadow-mockup);
}

html[data-theme="dark"] .cta-box {
    background-image: radial-gradient(circle at 50% 0%, var(--brand-soft) 0%, rgba(12, 16, 44, 0) 70%);
}

.cta-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 34px auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-trust-item i {
    color: var(--brand-primary);
}

/* --------------------------------------------------------
   8. Footer
   -------------------------------------------------------- */
.landing-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-card);
    padding: 60px 24px 30px 24px;
    position: relative;
    z-index: 2;
}

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

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-card);
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-brand-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 20px;
}

.footer-col-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links-list a:hover {
    color: var(--brand-primary);
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    font-size: 0.86rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* --------------------------------------------------------
   9. Responsive Breakpoints
   -------------------------------------------------------- */
@media (max-width: 992px) {
    .mockup-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .mockup-widgets-split {
        grid-template-columns: 1fr;
    }
    .steps-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-headline {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 12px 16px;
    }

    .landing-nav-container {
        position: relative;
    }

    .landing-nav-pill-wrapper {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-card);
        border-radius: 16px;
        padding: 18px;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
        z-index: 1001;
        flex-direction: column;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    html[data-theme="dark"] .landing-nav-pill-wrapper {
        background: #0c102c;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(99, 102, 241, 0.3);
    }

    .landing-nav-pill-wrapper.active {
        display: flex;
        animation: navSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .landing-nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .landing-nav-link {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .landing-nav-link:hover,
    .landing-nav-link:focus-visible {
        background-color: var(--brand-soft);
        color: var(--brand-primary);
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .landing-nav-actions .btn-dark-pill,
    .landing-nav-actions .btn-glow-pill {
        display: none;
    }

    .mobile-only-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
        margin-top: 10px;
        border-top: 1px solid var(--border-card);
    }

    .mobile-only-nav-actions .btn-dark-pill,
    .mobile-only-nav-actions .btn-glow-pill,
    .mobile-only-nav-actions .btn-outline-pill {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

    .mockup-sidebar {
        display: none;
    }

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

    .hero-headline {
        font-size: 2.2rem;
    }

    .nexus-side-wave {
        display: none !important;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .landing-nav-pill-wrapper {
        display: flex !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 6px 14px !important;
    }

    .mobile-only-nav-actions {
        display: none !important;
    }
}

@media (max-width: 1120px) and (min-width: 769px) {
    .landing-nav-container {
        gap: 12px;
    }
    .landing-nav-links {
        gap: 2px;
    }
    .landing-nav-link {
        padding: 6px 10px;
        font-size: 0.82rem;
    }
    .landing-nav-actions {
        gap: 8px;
    }
    .landing-nav-actions .btn-dark-pill,
    .landing-nav-actions .btn-glow-pill {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
}
