/* ============================================================================
   RapidBot — public marketing site v2 (static)  ·  Midnight Blue theme
   Design language cloned from presencive.com-v6 (pv-* vocabulary),
   re-authored clean and dark-first for RapidBot. Tone: calm, abstract.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
    /* Midnight Blue — dark-first defaults */
    --pv-page:       #030712;   /* midnight obsidian */
    --pv-page-2:     #060b16;
    --pv-section:    #070d1c;   /* lifted section band */
    --pv-card:       #0b1329;   /* deep midnight slate */
    --pv-card-2:     #0e1832;
    --pv-ink:        #eef2f9;   /* headings */
    --pv-body:       #c3cad7;   /* body copy */
    --pv-muted:      #7f8a9d;   /* meta / dim */
    --pv-line:       #1e293b;   /* borders */
    --pv-line-soft:  #141d30;
    --pv-blue:       #38bdf8;   /* electric cyan accent */
    --pv-blue-dark:  #2563eb;   /* cobalt */
    --pv-blue-ink:   #7dd3fc;   /* accent text on dark */
    --pv-blue-soft:  rgba(56, 189, 248, .12);
    --pv-blue-faint: rgba(56, 189, 248, .055);
    --pv-glow:       rgba(56, 189, 248, .28);

    --pv-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --pv-sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --pv-shell-max: 1140px;
    --pv-radius:    18px;
    --pv-radius-lg: 24px;

    color-scheme: dark;
}

html[data-pv-theme="light"] {
    --pv-page:       #f6f8fc;
    --pv-page-2:     #ffffff;
    --pv-section:    #eef2f9;
    --pv-card:       #ffffff;
    --pv-card-2:     #f8fafd;
    --pv-ink:        #0b1329;
    --pv-body:       #3c4657;
    --pv-muted:      #64707f;
    --pv-line:       #dce3ee;
    --pv-line-soft:  #e9eef6;
    --pv-blue:       #2563eb;
    --pv-blue-dark:  #1d4ed8;
    --pv-blue-ink:   #1d4ed8;
    --pv-blue-soft:  #e8f0fe;
    --pv-blue-faint: #f4f8ff;
    --pv-glow:       rgba(37, 99, 235, .18);
    color-scheme: light;
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--pv-page); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--pv-sans);
    background-color: var(--pv-page);
    color: var(--pv-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, h4 { color: var(--pv-ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-family: var(--pv-serif); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-family: var(--pv-serif); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.14; }
h3 { font-size: 1.12rem; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* lucide icons render as <svg>; size them centrally so we don't rely on Tailwind */
.pv-nav [data-lucide], .pv-mobile-menu [data-lucide] { width: 24px; height: 24px; }
[data-lucide] { width: 20px; height: 20px; stroke-width: 1.75; }

::selection { background: var(--pv-blue-soft); color: var(--pv-ink); }

/* ----------------------------------------------------------------- shell -- */
.pv-shell { width: 100%; max-width: var(--pv-shell-max); margin-inline: auto; padding-inline: 24px; }
.pv-narrow { max-width: 720px; margin-inline: auto; }

.pv-rule { height: 1px; background: var(--pv-line); opacity: .8; }
.pv-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pv-blue-ink); margin-bottom: 14px; }
.pv-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--pv-body); line-height: 1.7; margin-top: 18px; max-width: 46ch; }

/* -------------------------------------------------------------------- nav -- */
.pv-nav { position: fixed; z-index: 50; inset: 0 0 auto; height: 64px; display: flex; align-items: center;
    background: color-mix(in srgb, var(--pv-page) 88%, transparent); border-bottom: 1px solid var(--pv-line-soft);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pv-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.pv-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pv-ink); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.pv-brand-logo { width: 30px; height: 30px; }
.pv-links { display: flex; align-items: center; gap: 30px; }
.pv-links a { color: var(--pv-body); font-size: .92rem; font-weight: 500; transition: color .18s ease; }
.pv-links a:hover, .pv-links a[aria-current="page"] { color: var(--pv-blue-ink); }
.pv-actions { display: flex; align-items: center; gap: 12px; }
.pv-icon-btn { display: none; width: 42px; height: 42px; margin-right: -8px; align-items: center; justify-content: center; color: var(--pv-ink); background: transparent; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- buttons -- */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent; font-size: .92rem; font-weight: 600; cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; white-space: nowrap; }
.pv-btn:active { transform: translateY(1px); }
.pv-btn-primary { background: linear-gradient(135deg, var(--pv-blue) 0%, var(--pv-blue-dark) 100%); color: #041018;
    box-shadow: 0 10px 30px -8px var(--pv-glow); }
.pv-btn-primary:hover { box-shadow: 0 16px 40px -8px var(--pv-glow); transform: translateY(-1px); }
html[data-pv-theme="light"] .pv-btn-primary { color: #fff; }
.pv-btn-secondary { background: transparent; color: var(--pv-ink); border-color: var(--pv-line); }
.pv-btn-secondary:hover { border-color: var(--pv-blue); color: var(--pv-blue-ink); background: var(--pv-blue-faint); }
.pv-btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.pv-btn-block { width: 100%; }

/* ---------------------------------------------------------- mobile drawer -- */
.pv-mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    background: var(--pv-page); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.pv-mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.pv-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 24px; border-bottom: 1px solid var(--pv-line-soft); }
.pv-mobile-menu-head button { width: 42px; height: 42px; margin-right: -8px; display: flex; align-items: center; justify-content: center; color: var(--pv-ink); background: transparent; border: 0; cursor: pointer; }
.pv-mobile-menu nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.pv-mobile-menu nav a { color: var(--pv-ink); font-family: var(--pv-serif); font-size: 1.5rem; }
.pv-mobile-menu nav a:last-child, .pv-mobile-menu nav a[data-cta] { font-family: var(--pv-sans); font-size: 1rem; color: var(--pv-blue-ink); }

/* ------------------------------------------------------------------- hero -- */
.pv-hero { padding: 148px 0 84px; position: relative; }
.pv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 55% at 78% 8%, var(--pv-blue-soft), transparent 60%), radial-gradient(50% 40% at 8% 20%, rgba(37,99,235,.08), transparent 60%); }
.pv-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* abstract product visual */
.pv-product-shot { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--pv-radius-lg);
    background: linear-gradient(160deg, var(--pv-card) 0%, var(--pv-page-2) 100%); border: 1px solid var(--pv-line);
    box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); overflow: hidden; }
.pv-product-shot::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(70% 50% at 50% 0%, var(--pv-blue-soft), transparent 70%); }
.pv-orbit { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
    background: var(--pv-card-2); border: 1px solid var(--pv-line); color: var(--pv-blue-ink); box-shadow: 0 12px 30px -12px var(--pv-glow); z-index: 2; }
.pv-orbit.one   { top: 12%; right: -14px; }
.pv-orbit.two   { top: 46%; left: -14px; }
.pv-orbit.three { bottom: 14%; right: 12%; }
.pv-node-stack { position: absolute; inset: 20% 16% auto; display: grid; gap: 12px; z-index: 1; }
.pv-node { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 13px;
    background: color-mix(in srgb, var(--pv-card-2) 85%, transparent); border: 1px solid var(--pv-line); }
.pv-node span { width: 8px; height: 8px; border-radius: 50%; background: var(--pv-blue); box-shadow: 0 0 12px var(--pv-glow); flex: none; }
.pv-node b { font-weight: 600; color: var(--pv-ink); font-size: .82rem; }
.pv-node i { font-style: normal; color: var(--pv-muted); font-size: .74rem; margin-left: auto; }

/* --------------------------------------------------------------- sections -- */
.pv-section { padding: 84px 0; }
.pv-section.alt { background: var(--pv-section); border-block: 1px solid var(--pv-line-soft); }
.pv-section-head { max-width: 640px; margin-bottom: 48px; }
.pv-section-head.center { margin-inline: auto; text-align: center; }
.pv-section-head p { margin-top: 16px; color: var(--pv-body); }

/* statement band */
.pv-statement { padding: 96px 0; text-align: center; }
.pv-statement .pv-quote { font-family: var(--pv-serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--pv-ink); max-width: 20ch; margin-inline: auto; line-height: 1.2; }
.pv-statement .pv-lines { max-width: 620px; margin: 32px auto 0; display: grid; gap: 16px; }
.pv-statement .pv-lines p { color: var(--pv-body); font-size: 1.05rem; }
.pv-statement-rule { width: 46px; height: 2px; margin: 26px auto; background: var(--pv-blue); border-radius: 2px; }

/* ------------------------------------------------------------ card grids -- */
.pv-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-module-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--pv-radius);
    background: var(--pv-card); border: 1px solid var(--pv-line); transition: transform .2s ease, border-color .2s ease; }
.pv-module-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pv-blue) 40%, var(--pv-line)); }
.pv-module-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 20px;
    background: var(--pv-blue-soft); color: var(--pv-blue-ink); }
.pv-module-card h3 { margin-bottom: 8px; }
.pv-module-card p { color: var(--pv-body); font-size: .95rem; }
.pv-module-meta { margin-top: auto; padding-top: 18px; color: var(--pv-muted); font-size: .8rem; letter-spacing: .01em; }

/* numbered "for whom" grid */
.pv-fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-fit-card { padding: 28px; border-radius: var(--pv-radius); background: var(--pv-card); border: 1px solid var(--pv-line); }
.pv-fit-number { font-family: var(--pv-serif); font-size: 1.6rem; color: var(--pv-blue-ink); margin-bottom: 16px; }
.pv-fit-card h3 { margin-bottom: 8px; }
.pv-fit-card p { color: var(--pv-body); font-size: .95rem; }

/* feature hero panel (right side list) */
.pv-feature-hero { padding: 148px 0 72px; }
.pv-feature-hero-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 52px; align-items: center; }
.pv-feature-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pv-panel { border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); background: var(--pv-card); padding: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.7); }
.pv-panel-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; }
.pv-panel-row + .pv-panel-row { border-top: 1px solid var(--pv-line-soft); }
.pv-panel-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pv-blue-soft); color: var(--pv-blue-ink); }
.pv-panel-row h3 { font-size: 1rem; margin-bottom: 4px; }
.pv-panel-row p { color: var(--pv-body); font-size: .9rem; }

/* steps / path */
.pv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pv-step-card { padding: 24px; border-radius: var(--pv-radius); background: var(--pv-card); border: 1px solid var(--pv-line); }
.pv-step-card strong { display: block; color: var(--pv-ink); font-size: 1.02rem; margin-bottom: 8px; }
.pv-step-card p { color: var(--pv-body); font-size: .92rem; }
.pv-step-card .pv-step-n { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-blue-ink); display: block; margin-bottom: 12px; }

/* invitation / cta band */
.pv-invite { padding: 100px 0; text-align: center; position: relative; }
.pv-invite::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(55% 60% at 50% 30%, var(--pv-blue-soft), transparent 65%); }
.pv-invite h2 { max-width: 20ch; margin-inline: auto; }
.pv-invite .pv-lede { margin-inline: auto; text-align: center; max-width: 52ch; }
.pv-invite .pv-hero-actions { justify-content: center; }

.pv-cta-box { padding: 56px 32px; border-radius: var(--pv-radius-lg); text-align: center; background: var(--pv-card); border: 1px solid var(--pv-line); }

/* --------------------------------------------------------------- content -- */
.pv-prose { max-width: 760px; margin-inline: auto; }
.pv-prose h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.5rem; }
.pv-prose h3 { margin-top: 30px; margin-bottom: 8px; }
.pv-prose p { margin-bottom: 14px; color: var(--pv-body); }
.pv-prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--pv-body); }
.pv-prose li { margin-bottom: 8px; }
.pv-prose .pv-updated { color: var(--pv-muted); font-size: .85rem; }
.pv-page-head { padding: 132px 0 40px; }
.pv-page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ----------------------------------------------------------------- forms -- */
.pv-form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.pv-form-panel { border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); background: var(--pv-card); padding: 30px; }
.pv-field-row { margin-bottom: 18px; }
.pv-field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pv-field-label { display: block; font-size: .82rem; font-weight: 600; color: var(--pv-ink); margin-bottom: 8px; }
.pv-field { width: 100%; min-height: 48px; border: 1px solid var(--pv-line); border-radius: 13px; background: var(--pv-page-2);
    color: var(--pv-ink); padding: 12px 14px; font: inherit; font-size: .95rem; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease; }
.pv-field:focus { border-color: var(--pv-blue); box-shadow: 0 0 0 3px var(--pv-blue-soft); }
.pv-field::placeholder { color: var(--pv-muted); }
textarea.pv-field { min-height: 130px; resize: vertical; }
.pv-field-hint { margin-top: 8px; font-size: .8rem; color: var(--pv-muted); }
.pv-form-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pv-line-soft); text-align: center; color: var(--pv-muted); font-size: .86rem; }
.pv-success { display: grid; place-items: center; text-align: center; gap: 12px; padding: 40px 10px; }
.pv-success-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--pv-blue-soft); color: var(--pv-blue-ink); }
.hidden { display: none !important; }

/* contact points */
.pv-contact-point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; border: 1px solid var(--pv-line-soft); background: var(--pv-card); }
.pv-contact-point + .pv-contact-point { margin-top: 12px; }
.pv-contact-point-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pv-blue-soft); color: var(--pv-blue-ink); }
.pv-contact-point h3 { font-size: .98rem; margin-bottom: 3px; }
.pv-contact-point p { color: var(--pv-body); font-size: .9rem; }

/* ------------------------------------------------------------ auth pages -- */
.pv-auth { min-height: 100vh; display: grid; place-items: center; padding: 96px 24px 60px; position: relative; }
.pv-auth::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50% 40% at 50% 0%, var(--pv-blue-soft), transparent 60%); }
.pv-auth-card { width: 100%; max-width: 420px; padding: 34px; border-radius: var(--pv-radius-lg); background: var(--pv-card); border: 1px solid var(--pv-line); box-shadow: 0 40px 100px -50px rgba(0,0,0,.8); }
.pv-auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--pv-ink); font-weight: 700; }
.pv-auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.pv-auth-card > p { color: var(--pv-body); font-size: .94rem; margin-bottom: 26px; }
.pv-auth-foot { margin-top: 22px; text-align: center; color: var(--pv-muted); font-size: .88rem; }
.pv-auth-foot a { color: var(--pv-blue-ink); font-weight: 600; }

/* ---------------------------------------------------------------- footer -- */
.pv-footer { border-top: 1px solid var(--pv-line-soft); background: var(--pv-page-2); padding: 34px 0; }
.pv-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--pv-muted); font-size: .88rem; }
.pv-footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--pv-body); font-weight: 600; }
.pv-footer-brand img { width: 22px; height: 22px; }
.pv-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.pv-footer-links a { color: var(--pv-muted); transition: color .18s ease; }
.pv-footer-links a:hover, .pv-footer-links a[aria-current="page"] { color: var(--pv-blue-ink); }

/* -------------------------------------------------------- theme switcher -- */
.pv-theme-switcher { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; justify-items: end; gap: 10px; }
.pv-theme-toggle { width: 48px; height: 48px; border: 1px solid var(--pv-line); border-radius: 999px; background: var(--pv-card); color: var(--pv-blue-ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(14px); transition: transform .18s ease, border-color .18s ease; }
.pv-theme-toggle:hover { transform: translateY(-1px); border-color: var(--pv-blue); }
.pv-theme-dropup { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 156px; padding: 7px; border: 1px solid var(--pv-line); border-radius: 16px; background: var(--pv-card); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: bottom right; transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.pv-theme-dropup.is-open { opacity: 1; visibility: visible; transform: none; }
.pv-theme-dropup button { width: 100%; min-height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--pv-body); display: grid; grid-template-columns: 18px 1fr 16px; align-items: center; gap: 9px; padding: 0 10px; font: inherit; font-size: .84rem; font-weight: 600; text-align: left; cursor: pointer; }
.pv-theme-dropup button:hover { background: var(--pv-blue-faint); color: var(--pv-blue-ink); }
.pv-theme-dropup button.is-active { color: var(--pv-blue-ink); background: var(--pv-blue-soft); }
.pv-theme-check { opacity: 0; }
.pv-theme-dropup button.is-active .pv-theme-check { opacity: 1; }

/* ------------------------------------------------------------- animation -- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
    .pv-links, .pv-actions { display: none; }
    .pv-icon-btn { display: inline-flex; }
    .pv-hero-grid, .pv-feature-hero-grid, .pv-form-grid { grid-template-columns: 1fr; gap: 40px; }
    .pv-hero .pv-product-shot, .pv-feature-hero .pv-panel { order: 2; }
    .pv-module-grid, .pv-fit-grid { grid-template-columns: 1fr 1fr; }
    .pv-steps { grid-template-columns: 1fr 1fr; }
    .pv-field-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .pv-shell { padding-inline: 18px; }
    .pv-hero, .pv-feature-hero { padding-top: 120px; }
    .pv-module-grid, .pv-fit-grid, .pv-steps { grid-template-columns: 1fr; }
    .pv-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
