/* ============================================
   WARRANCY WEBSITE — Main Styles
   Colors: Indigo / Purple / Gold (Premium)
   Dark theme, futuristic glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --indigo-950: #1e1b4b;
    --indigo-900: #312e81;
    --indigo-800: #3730a3;
    --indigo-700: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --indigo-300: #a5b4fc;

    --purple-900: #5b21b6;
    --purple-800: #6d28d9;
    --purple-700: #7c3aed;
    --purple-600: #8b5cf6;
    --purple-500: #a78bfa;

    --gold-dark: #c9a84c;
    --gold: #e8c547;
    --gold-light: #d4b85c;

    /* Status */
    --green: #34d399;
    --green-dark: #059669;
    --orange: #fb923c;
    --orange-dark: #ea580c;
    --red: #f87171;
    --red-dark: #dc2626;
    --blue: #60a5fa;
    --blue-dark: #3b82f6;

    /* Backgrounds */
    --bg-primary: #0a0e1a;
    --bg-surface: #0d0a1a;
    --bg-surface-variant: #150e2b;
    --bg-card: #150e2b;
    --bg-card-hover: #1a1040;
    --bg-gradient-mid: #1a1040;

    /* Text */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-dim: #4b5563;

    /* Borders */
    --border-subtle: rgba(99, 102, 241, 0.12);
    --border-light: rgba(99, 102, 241, 0.25);
    --border-glow: rgba(99, 102, 241, 0.4);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6, #c9a84c);
    --gradient-purple: linear-gradient(135deg, #4338ca, #8b5cf6);
    --gradient-gold: linear-gradient(135deg, #c9a84c, #e8c547);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Canvas Background --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

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

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

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s var(--ease-out);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-md { padding: 12px 28px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--indigo-500);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

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

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
}

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

/* ==================== SECTION DEFAULTS ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--indigo-400);
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--indigo-700), transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-700), transparent 70%);
    bottom: -150px;
    left: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-dark), transparent 70%);
    top: 50%;
    left: 40%;
    opacity: 0.15;
}

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

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--indigo-300);
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 62px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* --- Hero Visual / Phone Mockup --- */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: #0d0a1a;
    border-radius: 40px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.1);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #0d0a1a;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0e1a, #150e2b);
    border-radius: 28px;
    overflow: hidden;
    padding: 40px 16px 16px;
}

/* App UI Inside Phone */
.app-ui {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.greeting {
    font-size: 14px;
    font-weight: 600;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-purple);
}

.app-quick-actions {
    display: flex;
    gap: 8px;
}

.quick-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 10px;
    color: var(--text-secondary);
}

.qb-add { background: linear-gradient(135deg, rgba(49, 46, 129, 0.5), rgba(30, 27, 75, 0.5)); }
.qb-scan { background: linear-gradient(135deg, rgba(67, 56, 202, 0.5), rgba(55, 48, 163, 0.5)); }
.qb-template { background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(79, 70, 229, 0.3)); }

.app-stats-row {
    display: flex;
    gap: 8px;
}

.mini-stat {
    flex: 1;
    padding: 10px 8px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ms-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.ms-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-stat .ms-num { color: var(--green); }
.expiring-stat .ms-num { color: var(--orange); }
.storage-stat .ms-num { color: var(--blue); }

.app-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dc-name { font-size: 11px; font-weight: 600; }
.dc-meta { font-size: 9px; color: var(--text-muted); }

.dc-status {
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-status.active { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.dc-status.expiring { background: rgba(251, 146, 60, 0.15); color: var(--orange); }

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(13, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.fc-scan {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}

.fc-notify {
    bottom: 20%;
    left: -40px;
    animation-delay: -3s;
}

.fc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--indigo-500), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
    100% { opacity: 1; transform: scaleY(1); }
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(13, 10, 26, 0.5);
    position: relative;
    z-index: 1;
}

.trust-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg { opacity: 0.5; }

/* ==================== FEATURES - BENTO GRID ==================== */
.features {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.bento-card {
    position: relative;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.bento-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--indigo-500), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

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

.bento-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 20px;
    position: relative;
}

.premium-icon {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.2);
}

.premium-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gradient-gold);
    color: #1a1040;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- Scan Demo --- */
.scan-demo {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 24px;
}

.scan-frame {
    width: 180px;
    height: 140px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--indigo-500), transparent);
    animation: scan-sweep 2.5s ease-in-out infinite;
}

@keyframes scan-sweep {
    0% { top: 0; }
    50% { top: calc(100% - 2px); }
    100% { top: 0; }
}

.scan-corners span {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--indigo-500);
}

.scan-corners span:nth-child(1) { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.scan-corners span:nth-child(2) { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.scan-corners span:nth-child(3) { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.scan-corners span:nth-child(4) { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.scan-doc-preview {
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sdp-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.scan-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sr-item {
    display: flex;
    gap: 8px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    opacity: 0;
    animation: sr-appear 0.5s var(--ease-out) forwards;
    animation-delay: var(--delay);
}

.bento-card:hover .sr-item { animation-play-state: running; }

.sr-label { color: var(--text-muted); }
.sr-value { color: var(--indigo-300); font-weight: 600; }

@keyframes sr-appear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Status Demo --- */
.status-demo {
    margin-top: 16px;
}

.status-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.sb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sb-active .sb-dot { background: var(--green); }
.sb-expiring .sb-dot { background: var(--orange); }
.sb-expired .sb-dot { background: var(--red); }

.timeline-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 65%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green), var(--orange));
    animation: timeline-grow 3s ease-in-out infinite alternate;
}

@keyframes timeline-grow {
    from { width: 30%; }
    to { width: 75%; }
}

.timeline-marker {
    position: absolute;
    top: 50%;
    left: 65%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Doc Types Grid --- */
.doc-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dt-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
}

/* --- Notify Demo --- */
.notify-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.notify-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: slide-in-right 0.6s var(--ease-out) both;
}

.nb-1 { animation-delay: 0.3s; }
.nb-2 { animation-delay: 0.6s; }

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.nb-text {
    display: flex;
    flex-direction: column;
}

.nb-text strong { font-size: 12px; }
.nb-text span { font-size: 10px; color: var(--text-muted); }

/* --- Template Demo --- */
.template-demo {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.tmpl-card {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    text-align: center;
    transition: all 0.3s;
}

.tmpl-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

.tmpl-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin-bottom: 8px;
}

.tmpl-line {
    height: 3px;
    border-radius: 2px;
    background: rgba(201, 168, 76, 0.15);
}

.tmpl-field {
    height: 12px;
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px dashed rgba(201, 168, 76, 0.2);
}

.tmpl-card span {
    font-size: 10px;
    color: var(--gold-dark);
    font-weight: 600;
}

/* --- Cloud Demo --- */
.cloud-demo {
    position: relative;
    height: 120px;
    margin-top: 16px;
}

.cloud-center {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.3); }
}

.cloud-device {
    position: absolute;
    bottom: 0;
    font-size: 24px;
    animation: float 4s ease-in-out infinite;
}

.cd-phone { left: 15%; animation-delay: 0s; }
.cd-tablet { left: 45%; animation-delay: -1.3s; }
.cd-desktop { right: 15%; animation-delay: -2.6s; }

.cloud-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step-line {
    position: absolute;
    top: 0;
    left: 36px;
    width: 2px;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
}

.step-line-progress {
    width: 100%;
    height: 0%;
    background: var(--gradient-purple);
    transition: height 0.5s var(--ease-out);
    border-radius: 1px;
}

.step {
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    border: 2px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--indigo-400);
    position: relative;
    z-index: 2;
}

.step-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--indigo-500);
    opacity: 0;
    animation: step-ring 3s infinite;
}

@keyframes step-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Step Illustrations */
.step-illustration {
    padding: 24px;
    border-radius: 16px;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
}

/* Scan Illustration */
.si-scan {
    display: flex;
    gap: 20px;
    align-items: center;
}

.si-phone {
    width: 80px;
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.si-camera-view {
    width: 100%;
    height: 100%;
    position: relative;
}

.si-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--indigo-500);
    box-shadow: 0 0 10px var(--indigo-500);
    animation: scan-sweep 2s ease-in-out infinite;
}

.si-doc-outline {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 70%;
    height: 60%;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.si-extracted-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.si-field {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    opacity: 0;
    animation: fade-slide-up 0.5s var(--ease-out) forwards;
    animation-delay: var(--d);
}

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

/* Organize Illustration */
.si-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.si-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(var(--c), 0.06);
    border-left: 3px solid var(--c, var(--indigo-500));
    opacity: 0;
    animation: fade-slide-up 0.5s var(--ease-out) forwards;
    animation-delay: var(--d);
}

.si-cat span {
    font-size: 11px;
    font-weight: 700;
    color: var(--indigo-400);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
}

/* Notify Illustration */
.si-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.si-tl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0;
    animation: fade-slide-up 0.5s var(--ease-out) forwards;
    animation-delay: var(--d);
}

.si-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.si-tl-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
.si-tl-dot.orange { background: var(--orange); box-shadow: 0 0 8px rgba(251, 146, 60, 0.4); }
.si-tl-dot.red { background: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, 0.4); }

/* ==================== ARCHITECTURE DIAGRAM ==================== */
.diagram-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 60px 40px;
    border-radius: 24px;
    background: rgba(21, 14, 43, 0.4);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: 16px;
    background: rgba(21, 14, 43, 0.8);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
    cursor: default;
    transition: all 0.3s var(--ease-out);
}

.arch-node:hover {
    border-color: var(--indigo-500);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.arch-node span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.arch-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-connector {
    width: 2px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.data-flow {
    width: 100%;
    height: 8px;
    background: var(--indigo-500);
    border-radius: 4px;
    animation: flow-down 2s linear infinite;
    box-shadow: 0 0 8px var(--indigo-500);
}

@keyframes flow-down {
    from { transform: translateY(-8px); }
    to { transform: translateY(40px); }
}

.arch-branch {
    display: flex;
    justify-content: center;
    gap: 120px;
}

.arch-services {
    display: flex;
    gap: 40px;
    margin-top: 0;
}

.arch-ai .arch-icon svg { stroke: var(--gold); }
.arch-db .arch-icon svg { stroke: var(--purple-500); }
.arch-storage .arch-icon svg { stroke: var(--blue); }

/* ==================== DOCUMENT SHOWCASE CAROUSEL ==================== */
.doc-showcase {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.showcase-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s var(--ease-out);
    padding: 20px 0;
}

.showcase-card {
    min-width: 300px;
    flex-shrink: 0;
    padding: 32px;
    border-radius: 20px;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.showcase-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
}

.sc-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g1), var(--g2));
}

.sc-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.showcase-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.showcase-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.sc-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sc-fields span {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--indigo-500);
    color: var(--text-primary);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--indigo-500);
    width: 24px;
    border-radius: 4px;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.toggle-label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label[data-period="monthly"].active,
.toggle-label[data-period="yearly"].active {
    color: var(--text-primary);
}

.save-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
}

.toggle-switch {
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--indigo-500);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s var(--ease-spring);
}

.toggle-switch.active .toggle-thumb {
    transform: translateX(22px);
}

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

.pricing-card {
    padding: 36px 32px;
    border-radius: 24px;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
}

.pricing-card.featured {
    border-color: var(--indigo-500);
    background: rgba(21, 14, 43, 0.9);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 20px 60px rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

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

.pc-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 20px;
    border-radius: 0 0 10px 10px;
    background: var(--gradient-purple);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.pc-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pc-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
}

.pricing-card.featured .price-amount {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pc-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pc-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.pc-features li.excluded {
    color: var(--text-dim);
}

/* ==================== SECURITY ==================== */
.security {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.security-card {
    padding: 36px;
    border-radius: 20px;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-out);
}

.security-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.sec-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    margin-bottom: 20px;
}

.security-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== FAQ ==================== */
.faq {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.faq-item {
    border-radius: 16px;
    background: rgba(21, 14, 43, 0.6);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: var(--border-light);
}

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

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--indigo-400);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    text-align: center;
    overflow: hidden;
}

.cta-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

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

.cta-platforms {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.platform-icons {
    display: flex;
    gap: 8px;
    font-size: 18px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

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

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

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

.footer-social a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--indigo-400);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .step {
        grid-template-columns: 72px 1fr;
    }

    .step-visual {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 24px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 32px;
    }

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

    .bento-large, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .scan-demo {
        flex-direction: column;
    }

    .scan-frame {
        width: 100%;
    }

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

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .arch-services {
        flex-direction: column;
        gap: 20px;
    }

    .arch-branch {
        flex-direction: column;
        gap: 0;
    }

    .billing-toggle {
        flex-wrap: wrap;
    }

    .template-demo {
        flex-direction: column;
    }

    .showcase-card {
        min-width: 260px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .phone-frame {
        width: 240px;
        height: 490px;
    }
}
