/* ==========================================================================
   APS Three AI — Modern Static Site (v2 rebuild)
   Premium, multi-theme design system. Pure CSS, no build step.
   Themes: light (default), dark, purple, ocean — toggled via [data-theme].
   ========================================================================== */

/* ---------- Design tokens shared across themes ---------- */
:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font-sans);

    --max: 1200px;
    --gutter: clamp(20px, 5vw, 48px);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --space-section: clamp(64px, 9vw, 128px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.18s var(--ease);
    --t: 0.32s var(--ease);
    --t-slow: 0.6s var(--ease);

    --nav-h: 68px;
}

/* ---------- LIGHT (default) ---------- */
:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --bg-grid: rgba(20, 24, 40, 0.04);
    --surface: #ffffff;
    --surface-2: #f8f9fd;
    --surface-inset: #f1f3f9;
    --border: rgba(18, 22, 40, 0.09);
    --border-strong: rgba(18, 22, 40, 0.16);
    --text: #0c1020;
    --text-muted: #525a6e;
    --text-faint: #8b93a7;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-contrast: #ffffff;
    --primary-soft: rgba(79, 70, 229, 0.1);
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --grad-btn: linear-gradient(120deg, #4f46e5 0%, #6d28d9 55%, #4338ca 100%);
    --grad-soft: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(124,58,237,0.08));
    --on-dark: #ffffff;
    --dark-panel: linear-gradient(150deg, #16182a 0%, #1f1d3a 100%);
    --ring: rgba(79, 70, 229, 0.35);
    --shadow-sm: 0 1px 2px rgba(16,20,40,0.06), 0 1px 3px rgba(16,20,40,0.05);
    --shadow-md: 0 8px 24px rgba(16,20,40,0.08);
    --shadow-lg: 0 24px 60px rgba(16,20,40,0.12);
    --glow: 0 0 0 transparent;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-border: rgba(18, 22, 40, 0.08);
}

/* ---------- DARK ---------- */
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a0b10;
    --bg-soft: #0f111a;
    --bg-grid: rgba(255, 255, 255, 0.035);
    --surface: #14161f;
    --surface-2: #181b26;
    --surface-inset: #1d2130;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f2f4fb;
    --text-muted: #a3aac0;
    --text-faint: #6b7287;
    --primary: #7c8bff;
    --primary-hover: #93a0ff;
    --primary-contrast: #0a0b10;
    --primary-soft: rgba(124, 139, 255, 0.16);
    --accent: #a78bfa;
    --accent-2: #22d3ee;
    --grad: linear-gradient(120deg, #7c8bff 0%, #a78bfa 50%, #22d3ee 100%);
    --grad-btn: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #6d28d9 100%);
    --grad-soft: linear-gradient(135deg, rgba(124,139,255,0.16), rgba(167,139,250,0.1));
    --on-dark: #ffffff;
    --dark-panel: linear-gradient(150deg, #1a1d2b 0%, #221f3d 100%);
    --ring: rgba(124, 139, 255, 0.45);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.6);
    --glow: 0 0 40px rgba(124,139,255,0.18);
    --nav-bg: rgba(12, 13, 20, 0.7);
    --nav-border: rgba(255, 255, 255, 0.08);
}

/* ---------- AI PURPLE ---------- */
[data-theme="purple"] {
    color-scheme: dark;
    --bg: #0d0717;
    --bg-soft: #140b24;
    --bg-grid: rgba(196, 152, 255, 0.05);
    --surface: #1a1029;
    --surface-2: #201433;
    --surface-inset: #271741;
    --border: rgba(196, 152, 255, 0.14);
    --border-strong: rgba(196, 152, 255, 0.28);
    --text: #f6efff;
    --text-muted: #c3b2dd;
    --text-faint: #8c7aaa;
    --primary: #b249ff;
    --primary-hover: #c46bff;
    --primary-contrast: #ffffff;
    --primary-soft: rgba(178, 73, 255, 0.18);
    --accent: #ff5fd2;
    --accent-2: #7c5cff;
    --grad: linear-gradient(120deg, #7c5cff 0%, #b249ff 50%, #ff5fd2 100%);
    --grad-btn: linear-gradient(120deg, #6d28d9 0%, #9333ea 50%, #a21caf 100%);
    --grad-soft: linear-gradient(135deg, rgba(178,73,255,0.22), rgba(255,95,210,0.12));
    --on-dark: #ffffff;
    --dark-panel: linear-gradient(150deg, #25143f 0%, #3a1857 100%);
    --ring: rgba(178, 73, 255, 0.5);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 12px 34px rgba(40,8,70,0.5);
    --shadow-lg: 0 30px 70px rgba(40,8,70,0.65);
    --glow: 0 0 50px rgba(178,73,255,0.28);
    --nav-bg: rgba(13, 7, 23, 0.72);
    --nav-border: rgba(196, 152, 255, 0.12);
}

/* ---------- OCEAN BLUE ---------- */
[data-theme="ocean"] {
    color-scheme: dark;
    --bg: #05111f;
    --bg-soft: #07182a;
    --bg-grid: rgba(94, 198, 255, 0.05);
    --surface: #0a1f33;
    --surface-2: #0d263f;
    --surface-inset: #103050;
    --border: rgba(94, 198, 255, 0.14);
    --border-strong: rgba(94, 198, 255, 0.3);
    --text: #eaf6ff;
    --text-muted: #9fc0d8;
    --text-faint: #6589a3;
    --primary: #1fb6ff;
    --primary-hover: #4fc6ff;
    --primary-contrast: #04121f;
    --primary-soft: rgba(31, 182, 255, 0.16);
    --accent: #22d3ee;
    --accent-2: #38e8b0;
    --grad: linear-gradient(120deg, #1fb6ff 0%, #22d3ee 50%, #38e8b0 100%);
    --grad-btn: linear-gradient(120deg, #0369a1 0%, #0e7490 50%, #1d4ed8 100%);
    --grad-soft: linear-gradient(135deg, rgba(31,182,255,0.2), rgba(56,232,176,0.1));
    --on-dark: #ffffff;
    --dark-panel: linear-gradient(150deg, #0c2138 0%, #103a54 100%);
    --ring: rgba(31, 182, 255, 0.5);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 12px 34px rgba(2,18,35,0.5);
    --shadow-lg: 0 30px 70px rgba(2,18,35,0.65);
    --glow: 0 0 50px rgba(31,182,255,0.25);
    --nav-bg: rgba(5, 17, 31, 0.72);
    --nav-border: rgba(94, 198, 255, 0.12);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background var(--t), color var(--t);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Lists used as UI (nav, footer, cards) shouldn't carry the browser's
   default left padding — article prose re-adds its own indent. */
ul, ol { padding-left: 0; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
}

::selection { background: var(--primary); color: var(--primary-contrast); }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--primary);
    color: var(--primary-contrast);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 14px; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section-sm { padding-block: clamp(48px, 7vw, 84px); }

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.display {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.h-xl { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}
.muted { color: var(--text-muted); }
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.center { text-align: center; }
.measure { max-width: 64ch; }
.measure-sm { max-width: 48ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 16px; }
.section-head p { margin-top: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    --b-bg: var(--surface);
    --b-fg: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--b-bg);
    color: var(--b-fg);
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
    white-space: nowrap;
    cursor: pointer;
}
.btn i { font-size: 0.85em; transition: transform var(--t); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover i.fa-arrow-right, .btn:hover .fa-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    --b-bg: var(--primary);
    --b-fg: #ffffff;
    color: #ffffff;
    border-color: transparent;
    background: var(--grad-btn);
    box-shadow: var(--shadow-md), var(--glow);
}
.btn-primary i { color: #ffffff; }
.btn-primary:hover { box-shadow: var(--shadow-lg), var(--glow); }

.btn-solid {
    --b-bg: var(--primary);
    --b-fg: var(--primary-contrast);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-text {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--primary);
}
.btn-text { cursor: pointer; }
.btn-text i { transition: transform var(--t); }
.btn-text:hover i { transform: translateX(4px); }

/* Pointer affordance for every interactive control */
a[href], button, [role="button"], label[for], summary,
.btn, .tour-tab, .faq-q, .theme-trigger, .blog-card, .price-card, .feature-card { cursor: pointer; }

/* Subtle shadow lift on hover for actionable controls */
.theme-trigger:hover, .menu-btn:hover, .proof-pill:hover,
.glass-link:hover, .footer-social a:hover, .back-to-top:hover { box-shadow: var(--shadow-md); }
.proof-pill, .glass-link {
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), border-color var(--t-fast);
}
.proof-pill:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.menu-btn { transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast); }
.menu-btn:hover { transform: translateY(-1px); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding-inline: var(--gutter);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
    border-bottom-color: var(--nav-border);
    box-shadow: var(--shadow-sm);
}
.nav-logo { grid-column: 1; justify-self: start; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }
/* logo recoloring: original logos are dark; invert for dark themes */
[data-theme="dark"] .nav-logo img,
[data-theme="purple"] .nav-logo img,
[data-theme="ocean"] .nav-logo img,
[data-theme="dark"] .brandmark-dark,
[data-theme="purple"] .brandmark-dark,
[data-theme="ocean"] .brandmark-dark {
    filter: brightness(0) invert(1);
}

.nav-links {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    position: relative;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 1px;
    width: 5px; height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--primary);
}

.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Theme toggle — a single click cycles Light → Dark → AI Purple → Ocean */
.theme-switch { display: inline-flex; }
.theme-trigger {
    display: inline-flex; align-items: center; gap: 9px;
    height: 42px; padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem; font-weight: 600;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-trigger:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-trigger:active { transform: translateY(0); }
.theme-trigger .swatch {
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-strong);
    flex-shrink: 0;
}
.theme-trigger .t-name { white-space: nowrap; }
@media (max-width: 980px) {
    .theme-trigger { padding: 0 12px; gap: 0; }
    .theme-trigger .t-name { display: none; }
}

.menu-btn {
    width: 42px; height: 42px;
    display: none;
    place-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.05rem;
}

/* Mobile drawer */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 7, 15, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
    z-index: 980;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(86vw, 340px);
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t);
    z-index: 990;
    display: flex; flex-direction: column;
    padding: 18px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-menu-head img { height: 28px; }
.mobile-menu .close-btn {
    width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: var(--radius-pill); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 1rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 14px;
    font-size: 1.05rem; font-weight: 600;
    border-radius: var(--radius);
    color: var(--text);
    transition: background var(--t-fast);
}
.mobile-menu nav a i { width: 22px; color: var(--primary); font-size: 0.95rem; }
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--surface-2); }
.mobile-menu-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

/* ==========================================================================
   Decorative backgrounds
   ========================================================================== */
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(56px, 9vw, 110px);
    padding-bottom: clamp(40px, 7vw, 80px);
}
.hero .glow-orb.a { width: 480px; height: 480px; top: -180px; left: -120px; background: var(--primary); opacity: 0.22; }
.hero .glow-orb.b { width: 420px; height: 420px; top: -120px; right: -100px; background: var(--accent); opacity: 0.18; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
    font-size: clamp(2.5rem, 6.2vw, 4.6rem);
    letter-spacing: -0.045em;
    line-height: 1.0;
    margin-top: 26px;
}
.hero .lead { margin: 24px auto 0; max-width: 60ch; }
.hero-actions {
    margin-top: 36px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-trust {
    margin-top: 22px;
    display: inline-flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
    font-size: 0.85rem; color: var(--text-faint);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--accent-2); }

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: clamp(44px, 6vw, 72px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-visual .browser-bar { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.hero-visual img { width: 100%; display: block; }

/* Browser chrome */
.browser-bar {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-bar .url {
    flex: 1; max-width: 320px;
    font-size: 0.78rem; color: var(--text-faint);
    padding: 5px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    text-align: center;
}

/* Logo / proof strip */
.proof { padding-block: clamp(28px, 4vw, 44px); }
.proof p { text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.proof-row {
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.proof-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: 600; font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
}
.proof-pill i { color: var(--primary); }

/* ==========================================================================
   Cards / generic surfaces
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feature-card {
    position: relative;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.3rem;
    color: var(--primary);
    background: var(--primary-soft);
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 24px); }
.bento > .tile {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform var(--t), box-shadow var(--t);
    display: flex; flex-direction: column;
}
.bento > .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tile p { color: var(--text-muted); font-size: 0.95rem; }
.tile .tile-media { margin-top: auto; padding-top: 22px; }
.tile .tile-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.tile.dark {
    background: var(--dark-panel);
    border-color: transparent;
    color: var(--on-dark);
}
.tile.dark h3, .tile.dark p { color: var(--on-dark); }
.tile.dark p { color: rgba(255,255,255,0.78); }
.tile .feature-icon { background: rgba(125,125,255,0.14); }
.tile.dark .feature-icon { background: rgba(255,255,255,0.14); color: #fff; }
.tile .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 12px; border-radius: var(--radius-pill);
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-muted);
}
.tile.dark .chip { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); }

/* ==========================================================================
   Split / showcase rows
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.split-text p { margin-top: 16px; color: var(--text-muted); }
.split-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}
.split-media.panel { background: var(--dark-panel); padding: clamp(24px, 4vw, 48px); }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 0.98rem; }
.check-list li i { color: var(--accent-2); margin-top: 4px; font-size: 0.9rem; }

/* ==========================================================================
   Product tour
   ========================================================================== */
.tour-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 10px; }
.tour-tab {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
    transition: border-color var(--t), background var(--t), transform var(--t-fast);
}
.tour-tab:hover { transform: translateX(3px); }
.tour-tab.active { border-color: var(--primary); background: var(--surface-2); }
.tour-tab .tab-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 1.05rem;
}
.tour-tab.active .tab-icon { background: var(--grad-btn); color: #fff; }
.tab-title { display: block; font-weight: 700; font-size: 0.98rem; }
.tab-sub { display: block; font-size: 0.82rem; color: var(--text-muted); }
.tab-progress {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
    background: var(--grad);
    transition: width 5s linear;
}
.tour-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.tour-screens { position: relative; }
.tour-screen { display: none; }
.tour-screen.active { display: block; animation: fadeScale 0.5s var(--ease); }
.tour-screen img { width: 100%; display: block; }
@keyframes fadeScale { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-panel {
    position: relative;
    overflow: hidden;
    background: var(--dark-panel);
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 60px);
    color: var(--on-dark);
}
.stats-panel .glow-orb { width: 320px; height: 320px; right: -80px; top: -80px; background: var(--primary); opacity: 0.4; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.stats-head { position: relative; z-index: 1; text-align: center; margin-bottom: 38px; }
.stats-head h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stats-head p { color: rgba(255,255,255,0.72); margin-top: 10px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.price-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-lg);
}
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 6px 16px; border-radius: var(--radius-pill);
    background: var(--grad-btn); color: #fff;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
    box-shadow: var(--shadow-md);
}
.price-name { font-weight: 700; font-size: 1.05rem; color: var(--text-muted); }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 12px 0 4px; }
.price-amount .per { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 22px 0; display: grid; gap: 13px; }
.price-card li { display: flex; align-items: center; gap: 11px; font-size: 0.94rem; color: var(--text); }
.price-card li i { color: var(--accent-2); }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color var(--t); }
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px;
    font-size: 1rem; font-weight: 600;
    background: transparent; border: none; color: var(--text);
    text-align: left;
}
.faq-q i { color: var(--primary); transition: transform var(--t); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--dark-panel);
    padding: clamp(40px, 6vw, 76px);
    text-align: center;
    color: var(--on-dark);
}
.cta-band .glow-orb.a { width: 360px; height: 360px; left: -60px; bottom: -120px; background: var(--accent); opacity: 0.4; }
.cta-band .glow-orb.b { width: 320px; height: 320px; right: -60px; top: -100px; background: var(--primary); opacity: 0.4; }
.cta-band > :not(.glow-orb) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: rgba(255,255,255,0.8); margin: 16px auto 0; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 30px; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
.contact-aside {
    position: relative;
    overflow: hidden;
    background: var(--dark-panel);
    color: var(--on-dark);
    padding: clamp(34px, 4vw, 52px);
    display: flex; flex-direction: column;
}
.contact-aside .glow-orb { width: 320px; height: 320px; bottom: -120px; left: -80px; background: var(--primary); opacity: 0.4; }
.contact-aside > :not(.glow-orb) { position: relative; z-index: 1; }
.contact-aside h1 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin: 14px 0 14px; }
.contact-aside p { color: rgba(255,255,255,0.78); }
.contact-points { list-style: none; margin-top: auto; padding-top: 34px; display: grid; gap: 18px; }
.contact-points li { display: flex; align-items: center; gap: 15px; }
.contact-points .ic {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center; border-radius: 12px;
    background: rgba(255,255,255,0.12); color: #fff;
}
.contact-points a, .contact-points span { color: #fff; }
.contact-points small { display: block; color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.contact-glass-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.glass-link {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
    color: #fff; font-weight: 600; font-size: 0.9rem;
    transition: background var(--t-fast), transform var(--t-fast);
}
.glass-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.contact-form { padding: clamp(30px, 4vw, 48px); display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-content: center; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
    font-family: inherit; font-size: 0.95rem;
    padding: 13px 15px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: var(--surface);
}
.field.invalid input, .field.invalid textarea { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,80,120,0.12); }
.error-msg { font-size: 0.78rem; color: var(--accent); min-height: 14px; }

.map-card { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(0.9); }
[data-theme="dark"] .map-card iframe,
[data-theme="purple"] .map-card iframe,
[data-theme="ocean"] .map-card iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.8); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-hero { text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.blog-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.blog-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-faint); }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-body h3 { font-size: 1.12rem; line-height: 1.3; }
.blog-body .btn-text { margin-top: auto; font-size: 0.88rem; }

/* Blog detail */
.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: 38px; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 16px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; box-shadow: var(--shadow-md); }
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.article-body h2, .article-body h3 { margin: 34px 0 12px; font-size: 1.35rem; }
.article-body p { margin-bottom: 18px; color: var(--text-muted); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; color: var(--text-muted); }
.article-body li { margin-bottom: 10px; }
.article-body ol > li { margin-bottom: 18px; }
.article-body ol > li > ul { margin-top: 10px; }
.article-body a:not(.btn) { color: var(--primary); font-weight: 600; }
.article-cta {
    margin-top: 44px;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--grad-soft);
    border: 1px solid var(--border);
    text-align: center;
}
.article-cta h3 { margin-bottom: 10px; }
.article-related { margin-top: 60px; }
.article-related h3 { margin-bottom: 22px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: var(--space-section); }
.footer-inner { padding-block: clamp(48px, 6vw, 72px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 30ch; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.9rem; transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--primary); }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text); }
.footer-col address { font-style: normal; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
    margin-top: 44px; padding-top: 26px;
    border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted);
    transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer-copy { font-size: 0.84rem; color: var(--text-faint); }
.footer-copy .heart { color: #ef4444; }
.footer-legal { display: flex; gap: 18px; font-size: 0.84rem; }
.footer-legal a { color: var(--text-faint); }
.footer-legal a:hover { color: var(--text); }

/* ==========================================================================
   Utility widgets
   ========================================================================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--grad); z-index: 1000;
    transition: width 0.1s linear;
}
.back-to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    z-index: 850;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--primary); border-color: var(--primary); }

.toast {
    position: fixed; left: 50%; bottom: 28px;
    transform: translate(-50%, 20px);
    padding: 14px 22px;
    background: var(--text); color: var(--bg);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem; font-weight: 500;
    opacity: 0; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    z-index: 1100;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: var(--accent); color: #fff; }

/* Mobile bottom action bar */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    background: var(--nav-bg);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--nav-border);
    z-index: 860;
    transition: transform var(--t);
}
.mobile-bar.hidden { transform: translateY(100%); }
.mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 4px;
    font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
}
.mobile-bar a i { font-size: 1.05rem; }
.mobile-bar a.primary { color: var(--primary); }
body.has-mobile-bar { padding-bottom: 62px; }

/* ==========================================================================
   AOS-lite reveal
   ========================================================================== */
[data-aos] { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-aos="fade-up"] { transform: translateY(28px); }
[data-aos="fade-down"] { transform: translateY(-28px); }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-left"] { transform: translateX(32px); }
[data-aos="zoom-in"] { transform: scale(0.94); }
[data-aos].aos-in { opacity: 1; transform: none; }

.words-pullup { overflow: hidden; }
.words-pullup .word { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.words-pullup.in-view .word { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 60px 20px; position: relative; overflow: hidden; }
.notfound .glow-orb { width: 480px; height: 480px; background: var(--primary); opacity: 0.18; top: -120px; }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; letter-spacing: -0.05em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .tour-layout { grid-template-columns: 1fr; }
    .tour-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
    .tour-tab { min-width: 220px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-btn { display: grid; }
    .mobile-bar { display: grid; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
    .price-card.featured { order: -1; }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .stats-grid { gap: 16px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile.span-3, .tile.span-4, .tile.span-6 { grid-column: span 2; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .contact-split { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .tile.span-2, .tile.span-3, .tile.span-4, .tile.span-6 { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
