/* R3VCORE: quiet intelligence. Editorial serif, near-black, cyan as the signal. */
:root {
  --bg: #050810;
  --bg-2: #0a0e1a;
  --panel: #0f1421;
  --line: rgba(233, 236, 243, 0.09);
  --ink: #ecebe6;
  --ivory: #f4f1ea;
  --muted: #a3a9b8;
  --cyan: #00a7d8;
  --cyan-glow: rgba(0, 167, 216, 0.35);
  --max: 1180px;
  --radius: 16px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* film grain over everything */
body::after { content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #5fd0f0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 8, 16, 0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 148px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
nav a:hover, nav a[aria-current="page"] { color: var(--ivory); }
nav a:last-child { color: var(--ivory); border: 1px solid rgba(0, 167, 216, 0.55); padding: 7px 16px; border-radius: 999px; }
nav a:last-child:hover { background: rgba(0, 167, 216, 0.12); }

/* type */
h1, h2, h3 { margin: 0 0 0.45em; color: var(--ivory); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h1 em, h2 em { font-style: italic; color: var(--cyan); }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 40em; line-height: 1.6; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; flex: 0 0 28px; height: 1px; background: var(--cyan); }
.muted { color: var(--muted); }
strong { color: var(--ivory); font-weight: 600; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ivory); color: #050810; font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 999px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn::after { content: "→"; transition: transform .2s ease; }
.btn:hover { color: #050810; box-shadow: 0 0 0 6px rgba(244, 241, 234, 0.08); }
.btn:hover::after { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ivory); border: 1px solid var(--line); }
.btn.ghost::after { content: none; }
.btn.ghost:hover { border-color: rgba(0, 167, 216, 0.6); box-shadow: none; }

/* sections */
section { padding: 120px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }

/* hero: cinematic light. A video loop can sit in .hero-media later. */
.hero { padding: 150px 0 130px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(0, 167, 216, 0.22), transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(212, 169, 70, 0.10), transparent 70%),
    linear-gradient(180deg, #070b16 0%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero h1 { max-width: 13em; }
.hero .lede { margin-top: 8px; }

/* product frame */
.frame { position: relative; margin: 0; border-radius: 18px; padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid var(--line); box-shadow: 0 40px 120px -30px var(--cyan-glow), 0 30px 60px -20px rgba(0,0,0,0.8); }
.frame img { border-radius: 10px; width: 100%; }
.frame figcaption { font-size: 13px; color: var(--muted); padding: 12px 6px 2px; }
.showcase { margin-top: 64px; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }

/* cards */
.grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 34px 30px; transition: background .25s ease; }
.alt .card { background: var(--bg-2); }
.card:hover { background: var(--panel); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.num { font-family: var(--serif); font-size: 3rem; color: var(--cyan); line-height: 1; margin-bottom: 16px; font-style: italic; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { counter-increment: step; background: var(--bg); padding: 28px 28px 28px 96px; position: relative; color: var(--muted); }
.alt .steps li { background: var(--bg-2); }
.steps li::before { content: "0" counter(step); position: absolute; left: 28px; top: 22px; font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--cyan); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 32px 0 0; }
.facts dt { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.facts dd { margin: 0; color: var(--ivory); }
.faq { margin: 40px 0 0; border-top: 1px solid var(--line); }
.faq dt { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); padding-top: 28px; }
.faq dd { margin: 8px 0 0; padding-bottom: 28px; color: var(--muted); border-bottom: 1px solid var(--line); max-width: 46em; }
blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; color: var(--ivory); max-width: 22em; }
blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 20px; letter-spacing: 0.04em; }
ul.clean { padding-left: 0; list-style: none; margin: 24px 0 0; }
ul.clean li { margin: 0; padding: 16px 0 16px 28px; border-top: 1px solid var(--line); color: var(--muted); position: relative; }
ul.clean li::before { content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 1px; background: var(--cyan); }
.closer { text-align: center; padding: 140px 0; }
.closer h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.closer .actions { justify-content: center; }

/* footer */
.site-footer { padding: 64px 0 72px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ivory); }
.profiles { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fine { font-size: 12px; opacity: 0.8; }

/* reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .08s; } .hero .lede { animation-delay: .18s; } .hero .actions { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 96px 0 84px; }
  .wrap { padding: 0 18px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 14px; }
  .steps li { padding-left: 76px; }
  nav { gap: 4px 16px; }
  nav a:last-child { padding: 5px 12px; }
}

.brand { text-decoration: none; display: inline-flex; }

/* v3: signal hero, pillars, statement */
.hero-signal { min-height: min(92vh, 900px); display: flex; align-items: center; padding: 140px 0 120px; }
.hero-signal::after { opacity: 0.18; }
canvas.signal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-signal h1 { max-width: 11.5em; font-size: clamp(3.1rem, 8vw, 7rem); }
.hero-signal .wrap { width: 100%; }
.product { padding-top: 110px; }
.product .split { align-items: end; }
.pillars { grid-template-columns: repeat(4, 1fr); }
.pillars .card p .muted { display: block; margin-top: 14px; font-size: 13px; letter-spacing: 0.06em; color: var(--cyan); opacity: 0.85; }
.statement { padding: 160px 0; text-align: left; background: radial-gradient(50% 80% at 85% 50%, rgba(0,167,216,0.10), transparent 70%), var(--bg); }
.statement blockquote { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 19em; }
.prose { max-width: 40em; }
.prose p { font-size: 1.15rem; color: var(--ink); line-height: 1.75; margin-bottom: 1.3em; }
.prose h2 { margin-top: 1.6em; }
.prose .big { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--ivory); }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.kit a.asset { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 28px; text-decoration: none; color: var(--ivory); background: var(--panel); }
.kit a.asset:hover { border-color: rgba(0,167,216,0.6); }
.kit a.asset img { height: 28px; width: auto; margin-bottom: 18px; }
.copybox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; color: var(--ink); margin: 14px 0 28px; }
.copybox .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; display: block; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } .hero-signal { min-height: 0; } .statement { padding: 100px 0; } }
@media (max-width: 640px) { canvas.signal { opacity: 0.45; } }

/* "so what": every claim carries its implication for the reader */
.so { color: var(--ivory); font-size: 0.95rem; line-height: 1.5; margin-top: 12px; padding-left: 18px; position: relative; }
.so::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.pillars .card p .muted, .pillars .card .muted { display: block; margin-top: 14px; font-size: 13px; letter-spacing: 0.06em; color: var(--cyan); opacity: 0.85; }

/* disclaimers: small but clear and conspicuous, placed beside the claim */
.dag { color: var(--cyan); font-size: 0.6em; margin-left: 1px; }
.stat .dag { font-size: 0.35em; vertical-align: super; }
.disclaimer { font-size: 12.5px; line-height: 1.5; color: #c3c9d6; margin: 18px 0 0; max-width: 60em; }
.disclaimer span { color: var(--cyan); margin-right: 4px; }
.hero-note { margin-top: 14px; }
.closer .disclaimer { margin-left: auto; margin-right: auto; text-align: center; }
