/* =========================================================
   Concierge AI Landing — 2026 redesign
   Bento, dark-dominant, serif italic accent, surgical motion
   ========================================================= */

:root {
    /* Surface */
    --bg: #060912;
    --bg-elev: #0c1120;
    --bg-card: #0e131e;
    --bg-card-hover: #141b2c;
    --bg-mute: rgba(255, 255, 255, 0.02);

    /* Border */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Accent — saturated single hue + cyan pair */
    --accent: #35b6c4;
    --accent-soft: rgba(53, 182, 196, 0.12);
    --accent-glow: #8be3ec;
    --accent-2: #62d0dc;

    /* Other accents (used sparingly in bento) */
    --hue-blue: #60a5fa;
    --hue-purple: #9fb3c8;
    --hue-pink: #e0a98a;
    --hue-amber: #fbbf24;

    /* Type */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', sans-serif;
    --font-serif: 'Newsreader', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Radius */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px rgba(53, 182, 196, 0.25), 0 12px 40px rgba(53, 182, 196, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page-level ambient gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(34, 211, 238, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(53, 182, 196, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -2;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

::selection {
    background: rgba(53, 182, 196, 0.3);
    color: white;
}

/* Skip-to-content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: #060912;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.1s;
}
.skip-to-content:focus { top: 0; }

/* Focus-visible styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Scroll margin so skip-link target isn't hidden under fixed navbar */
#main-content { scroll-margin-top: 70px; }

/* ===========================================================
   Layout primitives
   =========================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-hairline {
    border-top: 1px solid var(--border);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
    position: relative;
}

/* Big faded section number (01, 02 …) */
.section-num {
    display: inline-block;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    user-select: none;
}

.section-num.accent {
    -webkit-text-stroke: 1px rgba(53, 182, 196, 0.45);
}

/* Squiggle divider between sections */
.squiggle {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 24px;
    color: rgba(255, 255, 255, 0.18);
    overflow: visible;
}

.squiggle.accent { color: rgba(53, 182, 196, 0.45); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-mute);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.eyebrow.accent {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(53, 182, 196, 0.3);
}

.eyebrow.blue {
    color: var(--hue-blue);
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== Scribble / hand-drawn annotation system ===== */

/* Wrap a word in <span class="scribble"> + nested <svg.scribble-line>
   to draw a hand-drawn underline that scales to text width */
.scribble {
    position: relative;
    display: inline-block;
    z-index: 0;
    color: inherit;
    white-space: nowrap;
}

.scribble-line {
    position: absolute;
    left: -2%;
    bottom: -0.18em;
    width: 104%;
    height: 0.45em;
    color: var(--accent);
    overflow: visible;
    pointer-events: none;
    z-index: -1;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

.scribble-line.thin { stroke-width: 2.5; }
.scribble-line.cyan { color: var(--accent-2); }

/* Circled word */
.scribble-circle {
    position: absolute;
    left: -8%;
    top: -25%;
    width: 116%;
    height: 150%;
    color: var(--accent);
    pointer-events: none;
    z-index: -1;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Standalone scribble arrow doodle (positioned absolutely on parent) */
.scribble-arrow {
    color: rgba(255, 255, 255, 0.35);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.scribble-arrow.accent { color: var(--accent); opacity: 0.7; }

/* Tiny annotation note pinned to a tile */
.scribble-note {
    position: absolute;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 5;
}

.scribble-note svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Background utilities ===== */

/* Dots background (Vercel-style) */
.dots-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Grain noise overlay (svg data-uri, very subtle) */
.grain-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Section content above bg layers */
.section > .container { position: relative; z-index: 2; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===========================================================
   Buttons
   =========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-lg svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--text);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111a;
    box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===========================================================
   Navbar
   =========================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(6, 9, 18, 0.55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
    background: rgba(6, 9, 18, 0.85);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.logo img {
    height: 30px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.nav-stars:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.nav-stars svg {
    width: 14px;
    height: 14px;
    color: var(--hue-amber);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text);
    align-items: center;
    justify-content: center;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
    position: relative;
    padding: 128px 0 56px;
    overflow: hidden;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 78%);
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 1000px;
    background:
        radial-gradient(circle at 50% 30%, rgba(53, 182, 196, 0.18), transparent 55%),
        radial-gradient(circle at 30% 60%, rgba(34, 211, 238, 0.12), transparent 55%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.hero-inner {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: var(--bg-mute);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    transition: border-color 0.2s, background 0.2s;
}

.hero-badge:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(53, 182, 196, 0.6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(53, 182, 196, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(53, 182, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 182, 196, 0); }
}

.hero-badge .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.hero h1 .serif-italic {
    color: var(--accent);
    font-size: 1.05em;
    line-height: 1;
}

.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-sub code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 48px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Hero visual: dashboard mockup */
.hero-visual {
    max-width: 1080px;
    margin: 0 auto;
    perspective: 1400px;
}

.browser {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.browser::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(53, 182, 196, 0.4), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.browser:hover {
    transform: rotateX(0);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a2f3a;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.url-bar {
    flex: 1;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 6px;
    max-width: 380px;
    margin: 0 auto;
}

.browser-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================================
   Trust strip
   =========================================================== */

.trust {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.005);
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.trust-item:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.trust-item svg {
    width: 16px;
    height: 16px;
}

/* ===========================================================
   BENTO grid
   =========================================================== */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 38px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tile:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.tile-icon svg { width: 22px; height: 22px; }

.tile-icon.green { background: rgba(53, 182, 196, 0.12); color: var(--accent); }
.tile-icon.blue { background: rgba(96, 165, 250, 0.12); color: var(--hue-blue); }
.tile-icon.purple { background: rgba(159, 179, 200, 0.12); color: var(--hue-purple); }
.tile-icon.pink { background: rgba(244, 114, 182, 0.12); color: var(--hue-pink); }
.tile-icon.amber { background: rgba(251, 191, 36, 0.12); color: var(--hue-amber); }
.tile-icon.cyan { background: rgba(34, 211, 238, 0.12); color: var(--accent-2); }

.tile h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.tile p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tile-spacer {
    flex: 1;
    min-height: 16px;
}

.tile-visual {
    margin-top: 24px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Asymmetric placement — Bento 2.0 */
.tile-hero { grid-column: span 4; grid-row: span 2; }
.tile-3 { grid-column: span 2; }
.tile-half { grid-column: span 3; }
.tile-third { grid-column: span 2; }

/* Live theme picker tile */
.theme-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-controls-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.swatch:hover {
    transform: scale(1.15);
}

.swatch.active {
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px currentColor;
}

.theme-stage-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.widget-mockup {
    --accent: #e2b980;
    flex: 1;
    background: #0b0d12;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.3s ease;
}

.widget-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.widget-avatar svg { width: 14px; height: 14px; }

.widget-body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0b0d12;
}

.widget-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.widget-bubble.bot {
    background: #1a1f2c;
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.widget-bubble.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    transition: background 0.3s ease;
}

.widget-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #0b0d12;
    border-top: 1px solid var(--border);
}

.widget-input span {
    flex: 1;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.widget-send {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.widget-send svg { width: 14px; height: 14px; }

/* Bento — Embed 1-line code tile */
.embed-snippet {
    background: #06080f;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #cbd5e1;
    overflow-x: auto;
    white-space: pre;
    width: 100%;
}

/* Bento — Domain whitelist mock */
.domain-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.domain-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.domain-pill svg {
    width: 12px;
    height: 12px;
    color: var(--accent);
}

.domain-pill.muted {
    opacity: 0.5;
    border-style: dashed;
}

.domain-pill.muted svg {
    color: var(--text-dim);
}

/* Bento — Encryption key mock */
.key-mock {
    width: 100%;
    background: #06080f;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-mock .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.key-mock .value {
    color: var(--accent);
    word-break: break-all;
}

/* Bento — Model picker */
.model-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.model-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.86rem;
}

.model-row.active {
    border-color: rgba(53, 182, 196, 0.4);
    background: rgba(53, 182, 196, 0.05);
}

.model-row .model-name {
    flex: 1;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.84rem;
}

.model-row .model-tag {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.model-row.active .check {
    color: var(--accent);
}

.model-row .check {
    width: 16px;
    height: 16px;
    color: var(--text-dim);
}

/* Bento — Knowledge base files */
.kb-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.kb-row .file-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.kb-row .file-icon svg { width: 14px; height: 14px; }

.kb-row .file-meta {
    flex: 1;
    min-width: 0;
}

.kb-row .file-name {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-row .file-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.kb-row .badge {
    font-size: 0.7rem;
    background: rgba(53, 182, 196, 0.12);
    color: var(--accent);
    padding: 3px 9px;
    border-radius: 100px;
    font-weight: 600;
}

/* ===========================================================
   How it works (code deep-dive)
   =========================================================== */

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.how-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.how-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.how-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.how-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.how-step h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.how-step p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Code window */
.code-window {
    background: #06080f;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.code-window .browser-bar {
    background: rgba(255, 255, 255, 0.02);
}

.code-filename {
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.code-copy {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.code-copy:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.code-copy.copied {
    color: var(--accent);
    border-color: rgba(53, 182, 196, 0.4);
}

.code-copy svg { width: 14px; height: 14px; }

.code-window pre {
    margin: 0;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-x: auto;
}

.code-window code {
    color: #cbd5e1;
}

.k { color: #f472b6; }
.f { color: #60a5fa; }
.p { color: #9fb3c8; }
.s { color: #fde68a; }
.c { color: #475569; font-style: italic; }
.t { color: #f87171; }
.a { color: #93c5fd; }
.n { color: #fbbf24; }

/* ===========================================================
   Deploy timeline
   =========================================================== */

.deploy-pipe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 56px;
    position: relative;
}

.deploy-pipe::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    z-index: 0;
}

.pipe-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.pipe-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
}

.pipe-mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 182, 196, 0.2), transparent 70%);
    z-index: -1;
}

.pipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: border-color 0.25s, transform 0.25s;
}

.pipe-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.pipe-card svg {
    width: 28px;
    height: 28px;
    color: var(--text);
    margin-bottom: 14px;
}

.pipe-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.pipe-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.pipe-card em {
    color: var(--text);
    font-style: normal;
    font-weight: 500;
}

.deploy-cta {
    text-align: center;
}

.deploy-cta .deploy-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===========================================================
   Security
   =========================================================== */

.sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.sec-card:hover {
    border-color: rgba(53, 182, 196, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.sec-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(53, 182, 196, 0.08);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.sec-icon svg { width: 20px; height: 20px; }

.sec-card h4 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sec-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.sec-card code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text);
}

.sec-callout {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(53, 182, 196, 0.06), rgba(34, 211, 238, 0.04));
    border: 1px solid rgba(53, 182, 196, 0.18);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    gap: 18px;
}

.sec-callout-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(53, 182, 196, 0.12);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-callout-icon svg { width: 22px; height: 22px; }

.sec-callout-text strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.sec-callout-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.sec-callout-text code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text);
}

/* ===========================================================
   Architecture (CSS flow diagram)
   =========================================================== */

.arch {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 56px;
    position: relative;
    overflow: hidden;
}

.arch-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        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: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

.arch-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.arch-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arch-node {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.25s, background 0.25s;
}

.arch-node:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.arch-node-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arch-node-ico svg { width: 18px; height: 18px; }

.arch-node h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.arch-node p {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    line-height: 1.4;
}

.arch-node.user .arch-node-ico { background: rgba(96, 165, 250, 0.12); color: var(--hue-blue); }
.arch-node.embed .arch-node-ico { background: rgba(159, 179, 200, 0.12); color: var(--hue-purple); }
.arch-node.next .arch-node-ico { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.arch-node.gemini .arch-node-ico { background: rgba(34, 211, 238, 0.12); color: var(--accent-2); }
.arch-node.qdrant .arch-node-ico { background: rgba(244, 114, 182, 0.12); color: var(--hue-pink); }
.arch-node.mongo .arch-node-ico { background: rgba(53, 182, 196, 0.12); color: var(--accent); }

.arch-arrows {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.arch-arrows .arrow {
    color: var(--text-dim);
}

.arch-arrows .arrow svg {
    width: 22px;
    height: 22px;
}

.arch-legend {
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arch-legend strong {
    color: var(--accent);
}

/* ===========================================================
   FAQ
   =========================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.25s, background 0.25s;
}

.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
    color: var(--text);
}

.faq-item .faq-body {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item .faq-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text);
}

.faq-item .faq-body em {
    color: var(--text);
    font-style: normal;
    font-weight: 500;
}

/* ===========================================================
   CTA
   =========================================================== */

.cta {
    padding: 56px 0 72px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card), var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 80px 32px;
    text-align: center;
    isolation: isolate;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(53, 182, 196, 0.5), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(53, 182, 196, 0.1), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-card em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

/* ===========================================================
   Footer
   =========================================================== */

.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 56px;
}

.footer-brand p {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.footer-socials a:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.footer-socials svg { width: 18px; height: 18px; }

/* ===========================================================
   Use cases — 4 persona cards
   =========================================================== */

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.usecase-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.usecase-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.usecase-card .uc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.usecase-card .uc-icon svg { width: 22px; height: 22px; }

.usecase-card.support .uc-icon { background: rgba(53, 182, 196, 0.12); color: var(--accent); }
.usecase-card.lead .uc-icon { background: rgba(96, 165, 250, 0.12); color: var(--hue-blue); }
.usecase-card.sales .uc-icon { background: rgba(159, 179, 200, 0.12); color: var(--hue-purple); }
.usecase-card.internal .uc-icon { background: rgba(251, 191, 36, 0.12); color: var(--hue-amber); }

.usecase-card .uc-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.usecase-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.usecase-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.usecase-card .uc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 12px;
    background: rgba(53, 182, 196, 0.08);
    border: 1px solid rgba(53, 182, 196, 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

.usecase-card .uc-chip svg { width: 12px; height: 12px; }

/* ===========================================================
   Cost comparison
   =========================================================== */

.cost-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: stretch;
}

.cost-buildx {
    background: linear-gradient(135deg, rgba(53, 182, 196, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(53, 182, 196, 0.3);
    border-radius: var(--r-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cost-buildx::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(53, 182, 196, 0.15), transparent 60%);
    pointer-events: none;
}

.cost-buildx > * { position: relative; z-index: 1; }

.cost-buildx-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cost-buildx-head img { height: 28px; }

.cost-buildx-head .name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.cost-buildx .cost-price {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.cost-buildx .cost-price small {
    font-size: 0.6em;
    color: var(--text-muted);
    font-weight: 500;
}

.cost-buildx .cost-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cost-buildx .cost-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.cost-buildx .cost-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.92rem;
}

.cost-buildx .cost-bullet svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.cost-others {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.cost-other {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-other .name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.cost-other .price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.cost-other .price small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
}

.cost-other .note {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: auto;
}

.cost-savings {
    margin-top: 24px;
    padding: 18px 24px;
    background: rgba(53, 182, 196, 0.06);
    border: 1px solid rgba(53, 182, 196, 0.25);
    border-radius: var(--r);
    text-align: center;
    font-size: 1rem;
    color: var(--text);
}

.cost-savings strong {
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.cost-disclaimer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ===========================================================
   Templates / starter bots gallery
   =========================================================== */

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.template-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.template-preview {
    height: 200px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 18px 18px 58px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    --accent: #e2b980;
}

.template-preview-bubble {
    background: var(--accent);
    color: #07121c;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    font-size: 0.78rem;
    align-self: flex-end;
    max-width: 80%;
    line-height: 1.4;
    margin-bottom: 8px;
}

.template-preview-bubble.bot {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 12px;
    border: 1px solid var(--border);
}

.template-preview-launcher {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    color: #07121c;
}

.template-preview-launcher svg { width: 16px; height: 16px; }

.template-meta {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-meta .tpl-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.template-meta .tpl-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===========================================================
   For-developers expandable
   =========================================================== */

.dev-toggle {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.25s;
}

.dev-toggle[open] {
    border-color: var(--border-strong);
}

.dev-toggle summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-family: var(--font-mono);
}

.dev-toggle summary::-webkit-details-marker { display: none; }

.dev-toggle summary svg {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.25s;
}

.dev-toggle[open] summary svg { transform: rotate(180deg); }

.dev-toggle summary .dev-tag {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.75rem;
}

.dev-toggle .dev-body {
    padding: 0 24px 24px;
}

/* ===========================================================
   Marquee (animated trust strip)
   =========================================================== */

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ===========================================================
   Stats band
   =========================================================== */

.stats-band {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.005);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.stat-cell {
    text-align: center;
    padding: 16px 8px;
    border-right: 1px solid var(--border);
    position: relative;
}

.stat-cell:last-child { border-right: 0; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-num .text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-cell.with-doodle { position: relative; }
.stat-cell .scribble-circle {
    position: absolute;
    left: 18%;
    top: 8%;
    width: 64%;
    height: 84%;
    z-index: 0;
}

/* ===========================================================
   Vertical timeline (How it works)
   =========================================================== */

.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    position: relative;
}

.timeline-text {
    position: sticky;
    top: 100px;
    align-self: start;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 64px;
    bottom: 64px;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(53, 182, 196, 0.35),
        rgba(53, 182, 196, 0.1) 40%,
        rgba(34, 211, 238, 0.1) 60%,
        rgba(34, 211, 238, 0.3));
}

/* Progress line that fills as the visitor scrolls from step 01 to 04 */
.timeline-steps::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 64px;
    width: 2px;
    height: calc((100% - 128px) * var(--tl-progress, 0));
    background: linear-gradient(to bottom, var(--accent), var(--accent-glow));
    box-shadow: 0 0 12px rgba(53, 182, 196, 0.6);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    padding-left: 96px;
}

.tl-js .timeline-step .timeline-num {
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.tl-js .timeline-step.is-active .timeline-num {
    background: var(--accent);
    border-color: var(--accent-glow);
    color: #04121a;
    box-shadow: 0 0 0 8px var(--bg), 0 0 28px rgba(53, 182, 196, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .tl-js .timeline-step .timeline-num { transition: none; }
}

.timeline-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgba(53, 182, 196, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--accent);
    z-index: 2;
    box-shadow: 0 0 0 8px var(--bg), 0 0 24px rgba(53, 182, 196, 0.3);
}

.timeline-step h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.timeline-step > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-step code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 4px;
    color: var(--text);
}

.timeline-step .code-window {
    margin-top: 20px;
}

/* ===========================================================
   Deploy — scribble arrow connectors
   =========================================================== */

.deploy-pipe-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 64px;
}

.deploy-arrow {
    width: 70px;
    height: 60px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: -24px;
}

.deploy-arrow svg { width: 100%; height: 100%; overflow: visible; }

/* ===========================================================
   Security — spotlight + grid layout
   =========================================================== */

.sec-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    grid-auto-rows: minmax(180px, auto);
    gap: 18px;
}

.sec-spotlight {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(53, 182, 196, 0.07), rgba(34, 211, 238, 0.04));
    border: 1px solid rgba(53, 182, 196, 0.25);
    border-radius: var(--r-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sec-spotlight::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(53, 182, 196, 0.18), transparent 70%);
    pointer-events: none;
}

.sec-spotlight .sec-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 24px;
}
.sec-spotlight .sec-icon svg { width: 26px; height: 26px; }

.sec-spotlight h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sec-spotlight p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.sec-spotlight .sec-key-mock {
    margin-top: auto;
    padding-top: 28px;
}

.sec-key-mock {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sec-key-mock .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sec-key-mock .value {
    color: var(--accent);
    word-break: break-all;
}

/* ===========================================================
   Architecture polish — animated dashed arrows
   =========================================================== */

.arch-arrows .arrow {
    color: var(--text-dim);
    position: relative;
}

.arch-arrows .arrow svg {
    width: 22px;
    height: 22px;
}

/* ===========================================================
   Tag-row (used under section title) — stack chips
   =========================================================== */

.tag-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.chip {
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
    }
    .tile-hero { grid-column: span 4; grid-row: span 1; }
    .tile-3, .tile-half, .tile-third { grid-column: span 2; }

    .sec-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .sec-spotlight { grid-column: span 2; grid-row: span 1; }

    .how-grid { grid-template-columns: 1fr; gap: 40px; }

    .timeline {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .timeline-text { position: static; }

    .deploy-pipe-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .deploy-arrow {
        width: 50px;
        height: 50px;
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .stat-cell:nth-child(2) { border-right: 0; }
    .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }

    .arch-flow { grid-template-columns: 1fr; }
    .arch-arrows { flex-direction: row; height: auto; padding: 8px 0; }
    .arch-arrows .arrow svg { transform: rotate(90deg); }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 72px; }

    .usecase-grid { grid-template-columns: repeat(2, 1fr); }
    .templates-grid { grid-template-columns: repeat(2, 1fr); }
    .cost-wrap { grid-template-columns: 1fr; }
    .cost-others { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .section-header { margin-bottom: 48px; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(6, 9, 18, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 0 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        align-items: stretch;
    }

    .nav-links.open {
        max-height: 480px;
        padding: 12px 24px 20px;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child { border-bottom: 0; }

    .nav-stars { display: none; }

    .nav-toggle { display: inline-flex; }

    .hero { padding: 130px 0 60px; }

    .hero-meta { gap: 16px; }

    .bento {
        grid-template-columns: 1fr;
    }
    .tile-hero, .tile-3, .tile-half, .tile-third { grid-column: span 1; }

    .deploy-pipe { grid-template-columns: 1fr; gap: 32px; }
    .deploy-pipe::before { display: none; }

    .sec-grid { grid-template-columns: 1fr; }
    .sec-layout { grid-template-columns: 1fr; }
    .sec-spotlight { grid-column: span 1; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .stat-cell:last-child { border-bottom: 0; }

    .timeline-step {
        padding-left: 0;
        padding-top: 80px;
    }
    .timeline-num {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-steps::before, .timeline-steps::after { left: 50%; transform: translateX(-50%); }
    .timeline-step h4, .timeline-step > p { text-align: center; }
    .section-num { font-size: 2.4rem; }

    .usecase-grid { grid-template-columns: 1fr; }
    .templates-grid { grid-template-columns: 1fr; }
    .cost-others { grid-template-columns: 1fr; }
    .cost-buildx, .cost-other { padding: 24px; }

    .arch { padding: 32px 20px; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }

    .cta-card { padding: 56px 24px; }
    .cta { padding: 60px 0 80px; }

    .sec-callout { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-cols { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

/* ===========================================================
   Responsive hardening (all devices)
   =========================================================== */

html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video { max-width: 100%; }
img { height: auto; }
.container, .container-narrow {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}
.container > *, .container-narrow > * { min-width: 0; }
h1, h2, h3, h4, p, li, summary { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; }

/* Touch targets */
.btn { min-height: 44px; }
.nav-toggle { width: 44px; height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-col a { padding: 6px 0; margin-bottom: 4px; }
.swatch { position: relative; }
.swatch::after { content: ''; position: absolute; inset: -8px; }
.faq-item summary { min-height: 44px; }
@media (pointer: coarse) {
    .swatch { width: 28px; height: 28px; }
    .swatch::after { inset: -8px; }
    .code-copy { width: 44px; height: 44px; }
    .footer-socials a { width: 44px; height: 44px; }
    .widget-send { position: relative; }
    .widget-send::after { content: ''; position: absolute; inset: -8px; }
    .footer-col a { padding: 10px 0; }
}

/* Tablet nav: keep links from crowding between 721px and 900px */
@media (min-width: 721px) and (max-width: 900px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.86rem; }
    .nav-inner { gap: 14px; }
    .nav-stars { display: none; }
}

/* Mobile menu: scrollable, hidden from keyboard when closed */
@media (max-width: 720px) {
    .nav-links {
        visibility: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s linear 0.3s;
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    .nav-links.open {
        visibility: visible;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    html.nav-open, html.nav-open body { overflow: hidden; }
}
@media (max-width: 480px) {
    .container, .container-narrow { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
    .faq-item summary { padding: 16px 18px; }
    .faq-item .faq-body { padding: 0 18px 18px; }
    .code-window pre { padding: 16px; font-size: 0.82rem; }
    .cta-card { padding: 44px 20px; }
    .section { padding: 64px 0; }
}
@media (max-width: 359px) {
    .logo-text { font-size: 1.05rem; }
    .btn-lg { padding: 13px 18px; }
    .nav-inner { gap: 10px; }
    .nav-cta { gap: 8px; }
    .nav-cta .btn { padding-left: 14px; padding-right: 14px; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 96px 0 40px; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }
    .hero-meta { margin-bottom: 40px; }
}

/* Wide screens: scale type and widen the content column, keep it centred */
@media (min-width: 1800px) {
    html { font-size: 18px; }
    .container { max-width: 1400px; }
    .hero-inner { max-width: 1100px; }
}
@media (min-width: 2300px) {
    html { font-size: 20px; }
    .container { max-width: 1560px; }
}

/* Reduced motion: no scrolling marquee; show items statically, wrapped */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee-track .trust-item[aria-hidden="true"] { display: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 720px) {
    .timeline-steps::before, .timeline-steps::after { display: none; }
    .stat-cell .scribble-circle { left: 26%; top: 4%; width: 48%; height: 52%; }
    .dev-toggle summary { flex-wrap: wrap; padding: 14px 18px; }
    .dev-toggle summary > span:first-of-type { flex: 1 1 12rem; min-width: 0; }
    .dev-toggle .dev-body { padding: 0 18px 20px; }
}

@media (max-width: 1024px) {
    .stat-cell .scribble-circle { left: 26%; top: 4%; width: 48%; height: 52%; }
}

/* ===========================================================
   MICRO-INTERACTIONS (public/site/interactions.js)
   Progressive enhancement: nothing here hides content unless
   JS adds html.rv, and motion is disabled for reduced-motion.
   =========================================================== */

/* Anchor offset for the fixed navbar */
section[id], header[id] { scroll-margin-top: 72px; }

/* Navbar: stronger separation after scrolling */
.navbar.scrolled { box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.6); }

/* Scroll progress (transform only) */
.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
    overflow: hidden;
}
.scroll-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

/* Scrollspy */
.nav-links a { position: relative; transition: color 0.15s; }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a:focus-visible,
.to-top:focus-visible,
.template-card:focus-visible,
.copy-btn:focus-visible,
.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Scroll reveal: translate/opacity only, never touches `transform` */
html.rv .rv-item {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), translate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.rv .rv-item.rv-in { opacity: 1; translate: 0 0; }
@media print { html.rv .rv-item { opacity: 1; translate: none; } }

/* Cursor-following highlight (devices with a real hover only) */
@media (hover: hover) and (pointer: fine) {
    .sec-card, .pipe-card { position: relative; }
    .spot::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.055), transparent 70%);
        transition: opacity 0.3s ease;
    }
    .spot:hover::after { opacity: 1; }
}

/* Buttons: press feedback and ripple */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
    animation: btn-ripple 0.6s ease-out;
}
@keyframes btn-ripple {
    0% { opacity: 0.22; transform: scale(0); }
    100% { opacity: 0; transform: scale(1); }
}

/* Back to top */
.to-top {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, border-color 0.2s;
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.to-top:hover { border-color: var(--accent); }

/* Mobile menu: animated toggle and staggered links */
.nav-toggle svg { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
@media (max-width: 720px) {
    .nav-links a { opacity: 0; translate: 0 -6px; transition: color 0.15s, opacity 0.25s ease, translate 0.25s ease; }
    .nav-links.open a { opacity: 1; translate: 0 0; }
    .nav-links.open a:nth-child(2) { transition-delay: 0.03s; }
    .nav-links.open a:nth-child(3) { transition-delay: 0.06s; }
    .nav-links.open a:nth-child(4) { transition-delay: 0.09s; }
    .nav-links.open a:nth-child(5) { transition-delay: 0.12s; }
    .nav-links.open a:nth-child(6) { transition-delay: 0.15s; }
    .nav-links.open a:nth-child(7) { transition-delay: 0.18s; }
    .nav-links a::after { display: none; }
    .nav-links a.is-active { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
    html.rv .rv-item { opacity: 1; translate: none; }
    .btn-ripple { display: none; }
    .btn:active { transform: none; }
    .nav-toggle[aria-expanded="true"] svg { transform: none; }
    .nav-links a { opacity: 1; translate: none; }
}

/* ----- Hero chat demo ----- */
.hero-visual { position: relative; }
.cx-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.hero-chat {
    position: absolute;
    right: 28px;
    bottom: -36px;
    width: 320px;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: left;
    z-index: 3;
}
.hc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
}
.hc-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none; }
.hc-status { margin-left: auto; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.hc-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}
.hc-body {
    height: 216px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0b0d12;
    overflow: hidden;
}
.hc-msg {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
}
.hc-msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: #04121a;
    border-bottom-right-radius: 4px;
}
.hc-msg.bot {
    align-self: flex-start;
    background: #1a1f2c;
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}
.hc-text { display: block; }
.hc-src {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.hc-dots { display: none; }

/* JS-driven states (only when the demo is live) */
.hero-chat.is-live .hc-msg {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-chat.is-live .hc-msg.is-on { opacity: 1; transform: none; }
.hero-chat.is-live .hc-src { opacity: 0; transition: opacity 0.3s ease; }
.hero-chat.is-live .hc-src.is-on { opacity: 1; }
.hero-chat.is-live .hc-user-text::after { content: none; }
.hero-chat.is-live .hc-msg.is-typing .hc-user-text::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.95em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -1px;
}
.hero-chat.is-live .hc-dots.is-on { display: inline-flex; }
.hero-chat.is-live .hc-dots.is-on ~ .hc-text,
.hero-chat.is-live .hc-dots.is-on ~ .hc-src { display: none; }
.hc-dots, .hc-dots-inline { gap: 4px; align-items: center; height: 1.2em; }
.hc-dots-inline { display: inline-flex; }
.hc-dots i, .hc-dots-inline i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: hc-bounce 1s ease-in-out infinite;
}
.hc-dots i:nth-child(2), .hc-dots-inline i:nth-child(2) { animation-delay: 0.15s; }
.hc-dots i:nth-child(3), .hc-dots-inline i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hc-bounce {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}
@media (max-width: 900px) {
    .hero-chat { position: relative; right: auto; bottom: auto; width: min(100%, 340px); margin: 20px auto 0; }
}

/* ----- Template cards: tap to preview a reply ----- */
.template-card.is-interactive { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.template-preview { overflow: hidden; }
.tpl-reply { margin-bottom: 0; }
.tpl-reply:empty { display: none; }
.template-preview.is-playing > .template-preview-bubble.bot:not(.tpl-reply) { display: none; }
.tpl-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.2s, border-color 0.2s;
}
.template-card:hover .tpl-hint, .template-card:focus-visible .tpl-hint { color: var(--text); border-color: var(--border-strong); }
.template-preview.is-playing .tpl-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .hc-dots i, .hc-dots-inline i { animation: none; opacity: 0.7; }
}

/* ----- Counters ----- */
.count-num { display: inline-block; font-variant-numeric: tabular-nums; text-align: center; }

/* ----- FAQ ----- */
.faq-item.is-closing summary svg { transform: none; color: var(--text-muted); }

/* ----- Cost estimator ----- */
.cost-estimator[hidden] { display: none; }
.cost-estimator {
    margin: 28px auto 0;
    max-width: 760px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.ce-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ce-head h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.ce-tag {
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}
.ce-label { display: block; font-size: 0.92rem; color: var(--text-muted); margin-bottom: 8px; }
.ce-label output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ce-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 44px;
    background: transparent;
    cursor: pointer;
    --fill: 20%;
}
.ce-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--accent) var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}
.ce-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.ce-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.ce-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--accent);
    transition: transform 0.15s ease;
}
.ce-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
.ce-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.ce-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ce-rows { display: grid; gap: 16px; margin-top: 8px; }
.ce-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 8px; font-size: 0.92rem; }
.ce-name { color: var(--text-muted); min-width: 0; }
.ce-price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce-bar { display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ce-bar i {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: var(--accent);
    transform: scaleX(0.012);
    transform-origin: 0 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ce-bar.other i { background: #64748b; }
.ce-note { margin-top: 18px; font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 480px) {
    .cost-estimator { padding: 22px 18px; }
    .ce-line { flex-direction: column; gap: 2px; }
}

/* ----- Copy button on the embed snippet ----- */
.copy-wrap { position: relative; width: 100%; }
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent); }
.copy-wrap .embed-snippet { padding-right: 84px; }

@media (prefers-reduced-motion: reduce) {
    .ce-bar i, .ce-range::-webkit-slider-thumb { transition: none; }
}


/* ===========================================================
   Architecture diagram: interactive steps and arrows
   =========================================================== */
.arch-node { cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s; }
.arch-node:focus-visible,
.arch-arrows .arrow:focus-visible,
.arch-trace:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.arch-node.is-lit {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.arch-arrows .arrow { cursor: pointer; padding: 4px; border-radius: 8px; transition: color 0.3s; }
.arch-arrows .arrow svg { animation: arch-idle 2.6s ease-in-out infinite; }
.arch-arrows .arrow:nth-child(2) svg { animation-delay: 0.3s; }
.arch-arrows .arrow:nth-child(3) svg { animation-delay: 0.6s; }
.arch-arrows .arrow.is-flow { color: var(--accent); }
.arch-arrows .arrow.is-flow svg { animation: arch-flow 0.9s ease-in-out infinite; }
@keyframes arch-idle { 0%, 100% { transform: translateX(-2px); opacity: 0.55; } 50% { transform: translateX(3px); opacity: 1; } }
@keyframes arch-flow { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
.arch-controls { display: flex; justify-content: center; margin-top: 28px; }
.arch-trace {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.arch-trace:hover { background: rgba(53, 182, 196, 0.22); }
.arch-trace:active { transform: scale(0.97); }
.arch-legend { min-height: 3.2em; }
@media (prefers-reduced-motion: reduce) {
    .arch-arrows .arrow svg, .arch-arrows .arrow.is-flow svg { animation: none; opacity: 1; }
    .arch-node, .arch-node.is-lit { transition: none; transform: none; }
}


/* ===========================================================
   Capabilities: plain-language benefits for customers and team
   =========================================================== */
.cap-group { margin-bottom: 56px; }
.cap-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.cap-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.cap-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 6px;
}
.cap-ico svg { width: 22px; height: 22px; stroke-width: 1.5; }
.cap-card h4 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
}
.cap-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .cap-grid { grid-template-columns: 1fr; gap: 14px; }
    .cap-group { margin-bottom: 40px; }
    .cap-card { padding: 22px 20px; }
}


/* Keep the longer brand name on one line in the top bar */
.logo { white-space: nowrap; flex-shrink: 0; }
.logo-text { white-space: nowrap; }
@media (max-width: 420px) {
    .logo { gap: 8px; }
    .logo img { height: 24px; width: auto; }
    .logo-text { font-size: 1.02rem; }
    .nav-cta .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 340px) {
    .logo-text { font-size: 0.95rem; }
    .nav-cta .btn { padding-left: 10px; padding-right: 10px; font-size: 0.9rem; }
}
