/* ============================================================
   OPERANT LABS · styles
   Theme: Relevance AI (relevanceai.com) replica
   White canvas · Sora + Inter · indigo #6056FF · framed column
   with continuous vertical rules · soft enterprise cards
   ============================================================ */

:root {
  /* Relevance AI palette */
  --bg: #ffffff;
  --bg-2: #f9f9f9;
  --bg-3: #f8f8f8;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --ink-3: #868a97;
  --line: #e6e7ea;
  --line-2: #d6d8dd;

  --navy: #0d162f;
  --accent: #6056ff;
  --accent-hover: #4f46e5;
  --accent-2: #8b84ff;
  --accent-soft: #f0efff;
  --green: #22c55e;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow: 0 10px 30px -14px rgba(10, 10, 10, 0.14);
  --shadow-lg: 0 30px 70px -30px rgba(13, 22, 47, 0.30);

  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-d: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
::selection { background: var(--accent-soft); }

/* Framed content column with continuous vertical rules (Relevance signature).
   Borders on every .wrap stack edge-to-edge into unbroken vertical lines. */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 40px;
  border-inline: 1px solid var(--line);
}
.section.dark .wrap,
.foot .wrap { border-inline-color: rgba(255, 255, 255, 0.10); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f); font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-light:hover { background: rgba(255,255,255,0.18); }
.btn-white { background: var(--accent); color: #fff; }
.btn-white:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: var(--maxw); margin-inline: auto; padding: 0 40px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-inline: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-d); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.logo .dim { color: var(--ink-3); font-weight: 500; }
.logo svg { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 6vw, 90px); position: relative; overflow: hidden; }
/* faint decorative squares, like Relevance's scattered tiles */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--bg-3) 0 0), linear-gradient(var(--bg-3) 0 0),
    linear-gradient(var(--bg-3) 0 0), linear-gradient(var(--bg-3) 0 0),
    linear-gradient(var(--bg-3) 0 0);
  background-repeat: no-repeat;
  background-size: 26px 26px, 20px 20px, 34px 34px, 22px 22px, 16px 16px;
  background-position: 6% 22%, 9% 30%, 88% 12%, 84% 60%, 92% 46%;
}
.hero-in { position: relative; z-index: 1; max-width: 880px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.hero h1 .grad { color: var(--accent); background: none; -webkit-text-fill-color: var(--accent); }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--ink-3); max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero product mock */
.mock { margin-top: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar span { margin-left: 10px; font-size: 0.8rem; color: var(--ink-3); font-family: var(--f-d); }
.mock-body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.mock-step { padding: 22px 18px; border-right: 1px solid var(--line); position: relative; }
.mock-step:last-child { border-right: 0; }
.mock-step .s-state { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mock-step strong { display: block; font-family: var(--f-d); font-size: 1rem; margin-bottom: 6px; }
.mock-step em { font-style: normal; font-size: 0.84rem; color: var(--ink-3); }
.mock-step.done .s-state { color: var(--green); }
.mock-step.active { background: var(--accent-soft); }

/* Sections */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.eyebrow { font-family: var(--f); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.section.dark .eyebrow { color: var(--accent-2); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; max-width: 22ch; line-height: 1.05; }
.lead { font-size: 1.15rem; color: var(--ink-3); max-width: 62ch; margin-top: 18px; }
.section.dark .lead { color: rgba(255,255,255,0.66); }
.head { margin-bottom: 52px; }

/* Logo / proof strip */
.proof { background: var(--bg-2); border-block: 1px solid var(--line); }
.proof .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 48px; padding-block: 30px; }
.proof p { margin: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.proof .item { font-family: var(--f-d); font-weight: 700; font-size: 1.1rem; color: var(--ink-2); }
.proof .item small { display: block; font-family: var(--f); font-weight: 500; font-size: 0.74rem; color: var(--ink-3); }

/* Capability ladder — Relevance column layout with vertical rules */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.rung { padding: 28px 24px; background: #fff; position: relative; border-left: 1px solid var(--line); }
.rung:first-child { border-left: 0; }
.rung .lv { font-family: var(--f-d); font-weight: 700; font-size: 0.88rem; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: 14px; }
.rung h3 { font-size: 1.3rem; margin-bottom: 10px; }
.rung p { margin: 0; color: var(--ink-3); font-size: 0.92rem; }
.rung.live { background: linear-gradient(180deg, var(--accent-soft), #fff); }
.rung.live .lv, .rung.live h3 { color: var(--accent); }
.rung .tagm { display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 600; color: #fff; background: var(--accent); padding: 4px 11px; border-radius: 6px; }

/* Feature blocks */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feat:nth-child(even) .feat-media { order: -1; }
.feat-body .eyebrow { margin-bottom: 12px; }
.feat-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.feat-body p { color: var(--ink-3); margin: 0 0 18px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.feat-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 0.96rem; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.feat-list li::after { content: "✓"; position: absolute; left: 4px; top: 1px; color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.feat-media { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); padding: 28px; min-height: 230px; display: grid; place-items: center; }

/* mini diagrams */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-family: var(--f-d); font-size: 0.8rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.statecard { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; width:100%; box-shadow: var(--shadow-sm); font-family: var(--f-d); }
.statecard .row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); font-size:0.85rem; }
.statecard .row:last-child { border-bottom:0; }
.statecard .ok { color: var(--green); font-weight:700; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { padding: 8px 4px; }
.metric strong { display: block; font-family: var(--f-d); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -0.03em; color: var(--accent-2); }
.metric span { color: rgba(255,255,255,0.66); font-size: 0.92rem; }
.metric .cite { display:block; font-size: 0.72rem; color: rgba(255,255,255,0.42); margin-top: 4px; }

/* Comparison table */
.cmp { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.cmp thead th { font-family: var(--f-d); font-weight: 700; background: var(--bg-2); font-size: 0.95rem; color: var(--ink); }
.cmp thead th.hl { background: var(--accent); color: #fff; }
.cmp td.hl { background: var(--accent-soft); font-weight: 600; color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .rowlabel { font-weight: 600; color: var(--ink-2); }

/* Trust / governance */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 30px 26px; background: rgba(255,255,255,0.04); }
.tcard h4 { font-size: 1.18rem; margin: 14px 0 10px; }
.tcard p { margin: 0; color: rgba(255,255,255,0.64); font-size: 0.92rem; }
.tcard .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(139,132,255,0.18); color: var(--accent-2); display: grid; place-items: center; font-family: var(--f-d); font-weight: 700; }

/* Pipeline */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pstep { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 16px; background: #fff; text-align: center; position: relative; }
.pstep .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--f-d); font-weight: 700; display: grid; place-items: center; margin: 0 auto 12px; font-size: 0.9rem; }
.pstep strong { display: block; font-family: var(--f-d); margin-bottom: 6px; color: var(--ink); }
.pstep em { font-style: normal; font-size: 0.82rem; color: var(--ink-3); }

/* CTA */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; max-width: 24ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 1.12rem; max-width: 54ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.foot { background: var(--navy); color: rgba(255,255,255,0.6); padding: 60px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot p { margin: 0; max-width: 36ch; font-size: 0.92rem; }
.foot h5 { font-family: var(--f); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.46); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: rgba(255,255,255,0.66); font-size: 0.92rem; }
.foot ul a:hover { color: #fff; }
.foot-bottom { padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.42); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 920px) {
  .wrap, .hdr-in { padding-inline: 24px; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .rung { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .rung:first-child, .rung:nth-child(2) { border-top: 0; }
  .rung:nth-child(odd) { border-left: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat:nth-child(even) .feat-media { order: 0; }
  .mock-body { grid-template-columns: 1fr 1fr; }
  .mock-step { border-bottom: 1px solid var(--line); }
  .pipe { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cmp { font-size: 0.84rem; display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .ladder { grid-template-columns: 1fr; }
  .rung { border-left: 0; }
  .rung:nth-child(n) { border-top: 1px solid var(--line); }
  .rung:first-child { border-top: 0; }
  .metrics, .trust, .pipe { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
