/* Enterprise RAG: landing page styles
   Self-hosted variable fonts, no external requests. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);   /* wordmark, numbers, labels */
  --font-heading: var(--font-sans);                          /* Inter: crisp punctuation at large sizes */
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-subtle: #f7f8fb;
  --surface: #ffffff;
  --text: #0b1220;          /* 18.9:1 on white */
  --text-muted: #4b5563;    /* 7.6:1 on white */
  --text-faint: #6b7280;    /* 4.8:1 on white */
  --border: #e6e8ee;
  --border-strong: #d4d8e1;

  --accent: #4f46e5;        /* white text on it: 6.3:1 */
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ink: #3730a3;

  --public: #2e7d32;
  --internal: #1565c0;
  --confidential: #b45309;
  --restricted: #c62828;

  --ink: #0b1020;           /* dark sections */
  --ink-2: #131a2e;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 8px 24px -8px rgb(16 24 40 / 0.12);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 0.04), 0 24px 64px -16px rgb(30 27 75 / 0.25);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); color: var(--text); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--accent-soft); color: var(--accent-ink); padding: 0.1em 0.4em; border-radius: 6px; }
b { font-weight: 650; }
::selection { background: #c7d2fe; color: var(--text); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.section--cta :focus-visible { outline-color: #a5b4fc; }   /* 3:1+ on the dark section */

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 600 0.95rem/1 var(--font-sans); letter-spacing: -0.005em; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.18s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  --btn-bg: var(--accent); --btn-fg: #fff;
  box-shadow: 0 1px 2px rgb(30 27 75 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.18);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 6px 20px -6px rgb(79 70 229 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.18); }
.btn--ghost { --btn-bg: rgb(255 255 255 / 0.7); --btn-bd: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: #b9bfcc; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; border-radius: 9px; }
.btn--lg { min-height: 50px; padding: 14px 22px; font-size: 1rem; border-radius: 12px; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px -12px rgb(16 24 40 / 0.18); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) {
  padding: 8px 12px; border-radius: 8px; font-size: 0.93rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); background: rgb(15 23 42 / 0.05); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 10px; cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgb(15 23 42 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 23 42 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: -180px; width: min(1100px, 140%); height: 620px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 50%, rgb(99 102 241 / 0.20), transparent),
    radial-gradient(closest-side at 65% 45%, rgb(14 165 233 / 0.14), transparent),
    radial-gradient(closest-side at 50% 70%, rgb(168 85 247 / 0.10), transparent);
  filter: blur(8px);
  pointer-events: none;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  font-size: 0.85rem; font-weight: 550; color: var(--accent-ink);
  background: rgb(255 255 255 / 0.75); border: 1px solid #dfe3ff; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(79 70 229 / 0.15); }

.hero__title {
  margin-top: 22px; max-width: 18ch;
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 720;
}
.text-gradient {
  background: linear-gradient(100deg, #4338ca 0%, #6d28d9 45%, #0369a1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; max-width: 62ch; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); color: var(--text-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 0.88rem; color: var(--text-faint); }

/* product preview */
.preview { margin: clamp(48px, 7vw, 80px) 0 0; width: 100%; max-width: 1040px; }
.window {
  position: relative; border-radius: var(--radius-lg); background: #fff; text-align: left;
  border: 1px solid rgb(15 23 42 / 0.08);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgb(255 255 255 / 0.55);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px;
  background: linear-gradient(#fbfbfd, #f4f5f9); border-bottom: 1px solid var(--border);
}
.window__traffic { display: flex; align-items: center; gap: 7px; }
.window__traffic > span { width: 11px; height: 11px; border-radius: 50%; background: #e2e5ec; }
.window__traffic > span:nth-child(1) { background: #ff5f57; }
.window__traffic > span:nth-child(2) { background: #febc2e; }
.window__traffic > span:nth-child(3) { background: #28c840; }
.assistant-tabs {
  display: flex; align-items: center; gap: 2px; margin-left: 12px; padding: 3px;
  background: #ebeef5; border-radius: 8px;
}
.assistant-tabs button {
  min-height: 30px; padding: 5px 12px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-muted); font: 650 0.78rem/1 var(--font-sans); cursor: pointer;
}
.assistant-tabs button[aria-selected="true"] {
  background: #fff; color: var(--text); box-shadow: var(--shadow-sm);
}
.window__url {
  margin-left: 12px; flex: 1; max-width: 360px; min-width: 0; padding: 4px 12px;
  font-size: 0.78rem; color: var(--text-faint); background: #fff; border: 1px solid var(--border); border-radius: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window__body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 360px; }
.chat__who { font-size: 0.8rem; color: var(--text-faint); }
.chat__who b { color: var(--text-muted); }
.bubble { max-width: 92%; padding: 12px 15px; border-radius: 14px; font-size: 0.93rem; line-height: 1.55; overflow-wrap: anywhere; }
.bubble--user { align-self: flex-end; background: var(--accent-soft); border: 1px solid #dde1ff; color: #1e1b4b; border-bottom-right-radius: 5px; }
.bubble--bot { align-self: flex-start; background: var(--bg-subtle); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.cite {
  display: inline-block; margin: 0 0 0 2px; padding: 0 5px; font-size: 0.78em; font-weight: 650; line-height: 1.5;
  color: var(--accent-ink); background: #e0e4ff; border-radius: 5px; vertical-align: 1px;
}
.composer { margin-top: auto; display: flex; gap: 8px; }
.composer__input {
  flex: 1; min-width: 0; padding: 11px 14px; font-size: 0.86rem; color: var(--text-faint);
  border: 1px solid var(--border-strong); border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.composer__btn { padding: 11px 18px; font-size: 0.86rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 10px; }

.sources { padding: 22px; background: var(--bg-subtle); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.sources__title { font-weight: 650; font-size: 0.95rem; }
.source { padding: 11px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.source__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text); overflow-wrap: anywhere; }
.source p { margin-top: 6px; font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.55; color: var(--text-muted); }
.source--muted { background: transparent; border-style: dashed; }
.source--muted .source__head { color: var(--text-faint); }
.preview__caption { margin-top: 14px; font-size: 0.82rem; color: var(--text-faint); text-align: center; }

.assistant-preview { margin: clamp(48px, 7vw, 80px) 0 0; width: 100%; max-width: 1040px; }
.assistant-preview .window {
  height: auto;
}
.assistant-preview iframe {
  display: block;
  width: 100%;
  height: calc(100% - 42px);
  border: 0;
  background: #fff;
  overflow: hidden;
}
.workspace-dashboard {
  min-height: 860px; padding: clamp(32px, 7vw, 72px);
  background:
    radial-gradient(circle at 90% 10%, rgb(79 70 229 / 0.10), transparent 28%),
    var(--bg-subtle);
  text-align: left;
}
.workspace-dashboard__intro { max-width: 620px; }
.workspace-dashboard__intro h2 {
  margin: 8px 0 12px; font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.1;
}
.workspace-dashboard__intro > p:last-child { color: var(--text-muted); }
.workspace-dashboard__metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px;
}
.workspace-metric {
  display: flex; flex-direction: column; min-height: 150px; justify-content: center;
  padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.workspace-metric strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; color: var(--accent-ink); }
.workspace-metric span { margin-top: 10px; color: var(--text-muted); font-size: 0.88rem; }
.workspace-dashboard__actions { display: flex; gap: 10px; margin-top: 24px; }
.workspace-dashboard__note { color: var(--text-faint); font-size: 0.86rem; }
@media (max-width: 980px) {
  .assistant-preview .window { height: auto; }
  .assistant-preview iframe { height: 720px; }
  .assistant-preview .window__body { grid-template-columns: 1fr; }
  .assistant-preview .sources { border-left: 0; border-top: 1px solid var(--border); }
  .workspace-dashboard { min-height: 720px; }
  .workspace-dashboard__metrics { grid-template-columns: 1fr; }
  .workspace-metric { min-height: 110px; }
}
.assistant-preview.is-unconfigured .window { min-height: 220px; }
.assistant-preview.is-unconfigured iframe { display: none; }
.assistant-preview.is-unconfigured .window::after {
  content: "The AWS assistant URL is not configured yet.";
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}


/* badges */
.badge {
  display: inline-flex; align-items: center; padding: 2px 7px; font-size: 0.7rem; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.01em; color: #fff; border-radius: 5px; white-space: nowrap;
}
.badge--public { background: var(--public); }
.badge--internal { background: var(--internal); }
.badge--confidential { background: var(--confidential); }
.badge--restricted { background: var(--restricted); }
.tag-cited { padding: 2px 7px; font-size: 0.7rem; font-weight: 700; line-height: 1.4; color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; }

/* ------------------------------------------------------------------ trust bar */
.trust { padding: clamp(40px, 6vw, 64px) 0; border-block: 1px solid var(--border); background: linear-gradient(#fff, var(--bg-subtle)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 2px solid #dfe3ff; }
.stat__value { font-family: var(--font-display); font-weight: 780; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: 0.92rem; color: var(--text-muted); max-width: 26ch; }
.providers { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.providers__label { font-size: 0.85rem; font-weight: 550; color: var(--text-faint); }
.providers__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.providers__list li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: #5b6271; }

/* ------------------------------------------------------------------ sections */
.section { padding: var(--section-y) 0; }
.section--subtle { background: var(--bg-subtle); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.kicker { font-size: 0.85rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section__title { margin-top: 12px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.section__lead { margin-top: 16px; font-size: 1.08rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.6vw, 30px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card--xl { grid-column: span 3; grid-row: span 2; background: radial-gradient(120% 80% at 100% 0%, #f1f2ff 0%, #fff 55%); }
.card--md { grid-column: span 3; }
.card--sm { grid-column: span 2; }
.card--wide { grid-column: span 6; flex-direction: row; align-items: flex-start; gap: 18px; }
.card__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; margin-bottom: 4px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid #dfe3ff; border-radius: 11px;
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.12rem; letter-spacing: -0.015em; font-weight: 700; }
.card__text { color: var(--text-muted); font-size: 0.97rem; }
.card--wide .card__text { margin-top: 8px; max-width: 80ch; }

.levels { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.levels__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; font-size: 0.9rem; color: var(--text-muted);
  background: rgb(255 255 255 / 0.8); border: 1px solid var(--border); border-radius: 10px;
}

/* ------------------------------------------------------------------ how it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.steps { position: relative; display: grid; gap: 8px; }
.step { position: relative; display: flex; gap: 18px; padding: 18px 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 62px; bottom: -10px; width: 2px;
  background: linear-gradient(#dfe3ff, transparent);
}
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 750; color: var(--accent);
  background: #fff; border: 1px solid #dfe3ff; border-radius: 12px; box-shadow: var(--shadow-sm);
}
.step__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.step__text { margin-top: 6px; color: var(--text-muted); }

.demo {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: clamp(18px, 2.5vw, 26px); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.demo__head { display: flex; flex-direction: column; gap: 12px; }
.demo__label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.segmented {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px;
  background: #f1f3f7; border: 1px solid var(--border); border-radius: 12px;
}
.segmented button {
  min-height: 40px; padding: 8px 6px; font: 600 0.9rem/1 var(--font-sans); color: var(--text-muted);
  background: transparent; border: 0; border-radius: 9px; cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 0.1), 0 0 0 1px var(--border); }
.demo__panel { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.demo__panel .bubble { transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.demo__panel .bubble--bot.is-granted { background: #ecfdf3; border-color: #bbf0d0; }
.demo__access { margin-top: 6px; padding: 14px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 14px; }
.demo__access-title { font-size: 0.8rem; font-weight: 650; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.folders { display: grid; gap: 6px; margin-top: 10px; }
.folders li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.folder__name { font-family: var(--font-mono); font-size: 0.86rem; }
.folders li.is-locked { background: #f3f4f6; border-style: dashed; }
.folders li.is-locked .folder__name { color: var(--text-muted); text-decoration: line-through; text-decoration-color: #9ca3af; }
.folders li.is-locked .folder__name::after { content: "no access"; display: inline-block; width: 100%; margin-left: 0; text-decoration: none; font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-muted); }
.folders li.is-locked .badge { filter: grayscale(1); }

/* ------------------------------------------------------------------ security */
.security { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.security .section__head { margin-bottom: 0; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist li {
  position: relative; padding: 16px 16px 16px 48px; font-size: 0.95rem; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.checklist li b { display: block; color: var(--text); margin-bottom: 2px; }
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 6px;
  background: #e7f7ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23047857' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ------------------------------------------------------------------ use-case cards */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quote__text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.quote figcaption b { display: block; }
.quote__role { display: block; color: var(--text-faint); font-size: 0.86rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; font-size: 0.8rem; font-weight: 700; color: #fff; }
.avatar--a { background: linear-gradient(135deg, #6366f1, #4338ca); }
.avatar--b { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.avatar--c { background: linear-gradient(135deg, #a855f7, #6d28d9); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.accordion { display: grid; gap: 10px; }
.accordion details {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.accordion details[open] { border-color: #cfd5ff; box-shadow: var(--shadow); }
.accordion summary {
  position: relative; display: block; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none;
  font-weight: 620; font-size: 1.02rem; line-height: 1.45; border-radius: 14px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 7px; background: var(--bg-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion summary:hover { color: var(--accent-ink); }
.accordion__body { padding: 0 20px 20px; color: var(--text-muted); }

/* ------------------------------------------------------------------ get started */
.section--cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #e6e8f0; }
.section--cta::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgb(99 102 241 / 0.35), transparent);
  pointer-events: none;
}
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.kicker--light { color: #a5b4fc; }
.section__title--light { color: #fff; }
.section__lead--light { color: #b8bdcc; }
.start__points { margin-top: 24px; display: grid; gap: 10px; }
.start__points li { position: relative; padding-left: 28px; color: #d6d9e3; }
.start__points li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: rgb(99 102 241 / 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23c7d2fe' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.terminal {
  min-width: 0; background: var(--ink-2); border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06); overflow: hidden;
}
.terminal__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.terminal__dots { display: flex; gap: 6px; }
.terminal__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.terminal__title { font-size: 0.8rem; color: #9aa1b2; }
.terminal__copy {
  margin-left: auto; min-height: 32px; padding: 6px 12px; font: 600 0.8rem/1 var(--font-sans); color: #e6e8f0;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 8px; cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.terminal__copy:hover { background: rgb(255 255 255 / 0.14); }
.terminal__copy.is-done { color: #86efac; border-color: rgb(134 239 172 / 0.4); }
.terminal__code:focus-visible { outline-offset: -3px; }   /* .terminal clips outside outlines */
.terminal__code { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.75; color: #e6e8f0; }
.terminal__code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.terminal__code .c { color: #8b93a7; }

/* ------------------------------------------------------------------ footer */
.footer { padding: clamp(48px, 7vw, 72px) 0 32px; background: #fff; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__tagline { margin-top: 14px; max-width: 34ch; font-size: 0.93rem; color: var(--text-muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.footer__col a { font-size: 0.93rem; color: var(--text-muted); width: fit-content; transition: color 0.15s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 56px); padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.86rem; color: var(--text-faint);
}

/* ------------------------------------------------------------------ legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.legal__updated { margin-top: 10px; color: var(--text-faint); font-size: 0.92rem; }
.legal h2 { margin-top: 40px; font-size: 1.3rem; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--text-muted); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.legal__back { margin-top: 40px; }

/* ------------------------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .nav__toggle { display: none !important; }        /* the menu needs JS: show the CTA instead */
.no-js .nav__actions .btn { display: inline-flex !important; }

@media print {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav, .hero__glow, .terminal__copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .quote:hover { transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .card--xl { grid-column: span 6; grid-row: auto; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .how, .security, .faq, .start { grid-template-columns: minmax(0, 1fr); }
  .demo, .faq .section__head { position: static; }
  .section__head--left { max-width: 640px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .quotes { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links {
    /* absolute to the sticky header; solid background (a backdrop-filter nested inside the
       header's own backdrop-filter can't blur the page behind it) */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 12px var(--gutter) 20px; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgb(16 24 40 / 0.25);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav__cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav__actions .btn { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-flex; }

  .window__body { grid-template-columns: minmax(0, 1fr); }
  .sources { border-left: 0; border-top: 1px solid var(--border); }
  .chat { min-height: 0; }
}

@media (max-width: 720px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--xl, .card--md, .card--sm, .card--wide { grid-column: auto; }
  .card--wide { flex-direction: column; }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .checklist { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .segmented { grid-template-columns: repeat(4, auto); }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .chat, .sources { padding: 16px; }
  .composer__btn { padding-inline: 14px; }
  .window__url { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented button { padding-inline: 2px; font-size: 0.8rem; letter-spacing: -0.01em; }
  .terminal__code { padding: 16px; font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
}
