/* ReddropAI, built to the gavinreddrop.com cinematic system: near black ground,
   one light, Bebas headlines with a green full stop, bracketed labels, one
   hairline, frosted glass. Tokens mirror brand/design-system.md. */

@font-face {
  font-family: "Techovier";
  src: url("/assets/techovier.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ground: #07060b;
  --ink-1: #f0f0f0;
  --ink-2: #a8a8a8;
  --ink-label: #9c9c9c;
  --ink-3: #767676;
  --rule: rgba(255, 255, 255, 0.12);
  --vision: #68cc28;

  --display-xl: clamp(72px, 9.5vw, 168px);
  --display-l: clamp(48px, 6vw, 112px);
  --display-m: clamp(32px, 3.6vw, 56px);

  --bebas: "Bebas Neue", Impact, sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1320px;
  --section: 160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 16px/1.75 var(--inter);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--vision); color: var(--ground); }
a { color: var(--ink-1); text-decoration-color: rgba(104, 204, 40, 0.6); text-underline-offset: 4px; }
a:hover { color: var(--vision); }
img, svg { display: block; max-width: 100%; }

/* The galaxy still, pre blurred, at low exposure, with one bloom over it. */
.sky {
  position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 72% 38%, rgba(56, 143, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 11, 0.55), rgba(7, 6, 11, 0.5) 40%, rgba(7, 6, 11, 0.9) 85%, var(--ground)),
    url("/assets/galaxy.jpg") center 70% / cover no-repeat,
    var(--ground);
  opacity: 0.9;
}
.sky.quiet { opacity: 0.55; }

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(7, 6, 11, 0.85), rgba(7, 6, 11, 0.55));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.logo {
  font-family: "Techovier", var(--inter); text-transform: uppercase; letter-spacing: 0;
  font-size: 18px; color: var(--ink-1); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--vision); }
.logo:hover { color: var(--ink-1); }
nav.primary { display: flex; align-items: center; gap: 32px; }
nav.primary a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--ink-1); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--vision); color: var(--ground);
  font: 600 13px/1 var(--inter); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 2px; text-decoration: none;
  transition: filter 0.2s ease;
}
.btn:hover { color: var(--ground); filter: brightness(1.12); }
nav.primary a.btn { color: var(--ground); }
.btn.small { padding: 12px 16px; font-size: 12px; }
.btn.ghost { background: transparent; color: var(--ink-1); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--vision); color: var(--ink-1); filter: none; }

/* Type */
.label {
  font: 500 12px/1.7 var(--inter); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-label); margin: 0 0 24px; text-shadow: 0 1px 12px rgba(7, 6, 11, 0.85);
}
.label b { color: var(--vision); font-weight: 500; }
h1, h2, .display {
  font-family: var(--bebas); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 0.9; color: var(--ink-1); margin: 0;
}
h1 { font-size: var(--display-xl); }
h2 { font-size: var(--display-l); }
h3.display { font-size: var(--display-m); line-height: 0.95; }
h1 .dim, h2 .dim, .display .dim { color: var(--ink-2); }
.dot { color: var(--vision); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 0; }
p { max-width: 60ch; }

/* Hero: copy left, the drawn team right */
.hero { min-height: calc(100svh - 66px); display: flex; align-items: center; padding: 96px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(64px, 7vw, 124px); margin-bottom: 32px; }
.hero .lead { margin-bottom: 48px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero .aside { font-size: 13px; line-height: 1.6; color: var(--ink-label); max-width: 24em; margin: 0; }

/* Agent team illustration: hairline slabs, parallel pulses, slow drift */
.team { width: 100%; height: auto; overflow: visible; }
.team .link { fill: none; stroke: var(--rule); stroke-width: 1; }
.team .pulse {
  fill: none; stroke: var(--vision); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 18 600; stroke-dashoffset: 18; opacity: 0;
  animation: pulse var(--cycle) linear infinite; animation-delay: var(--start);
}
@keyframes pulse {
  0% { stroke-dashoffset: 18; opacity: 0; }
  2% { opacity: 1; }
  20% { stroke-dashoffset: calc(-1 * var(--len)); opacity: 1; }
  22%, 100% { stroke-dashoffset: calc(-1 * var(--len)); opacity: 0; }
}
.team .slab { animation: drift var(--dur) ease-in-out infinite; animation-delay: var(--delay); transform-box: fill-box; transform-origin: center; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(calc(-1 * var(--lift))) rotate(var(--rot)); }
}
.team rect.body { fill: rgba(10, 8, 16, 0.85); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.team .you rect.body { stroke: rgba(104, 204, 40, 0.55); }
.team rect.glow { fill: none; stroke: var(--vision); stroke-width: 1.5; opacity: 0; animation: glow var(--cycle) linear infinite; animation-delay: var(--start); }
@keyframes glow { 0%, 19% { opacity: 0; } 21% { opacity: 0.9; } 34%, 100% { opacity: 0; } }
.team text { font-family: var(--inter); }
.team .role { fill: var(--ink-1); font-size: 14px; font-weight: 500; }
.team .tag { fill: var(--ink-label); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.team .tag-green { fill: var(--vision); }
.team-wrap { position: relative; }
.team-wrap::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(104, 204, 40, 0.10), transparent 75%);
}

/* Sections */
section.chapter { padding: var(--section) 0 0; }
.chapter-head { display: grid; grid-template-columns: 1.8fr 1fr; gap: 32px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 80px; }
.chapter-head .lead { padding-bottom: 8px; }

.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 60%),
    rgba(10, 8, 16, 0.4);
  backdrop-filter: blur(56px) saturate(1.5) brightness(0.7);
  -webkit-backdrop-filter: blur(56px) saturate(1.5) brightness(0.7);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 40px 32px 48px; display: flex; flex-direction: column; min-height: 320px; }
.card .label { margin-bottom: auto; padding-bottom: 48px; }
.card h3 { font: 600 20px/1.3 var(--inter); color: var(--ink-1); margin: 0 0 12px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; line-height: 1.7; }

.company { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.company .glass { padding: clamp(40px, 6vw, 96px); }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
dl.facts dt, dl.facts dd { padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
dl.facts dt { font: 500 12px/1.9 var(--inter); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); padding-right: 40px; }
dl.facts dd { color: var(--ink-1); }
dl.facts > :nth-last-child(-n + 2) { border-bottom: 0; }

/* Closing card: open statement on the ground, soft scrim fading at every edge */
.closing { padding: var(--section) 0; position: relative; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 55% 50% at 30% 50%, rgba(7, 6, 11, 0.7), transparent 75%);
}
.closing h2 { font-size: var(--display-xl); margin-bottom: 48px; }
.closing hr { border: 0; border-top: 1px solid var(--rule); margin: 0 0 48px; max-width: 640px; }
.closing p { margin: 0 0 40px; font-size: 18px; }

/* Inner pages */
.page-hero { padding: 120px 0 80px; }
.page-hero h1 { font-size: var(--display-l); margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.panel { padding: clamp(32px, 5vw, 72px); }
.panel .big-mail { font: 400 var(--display-m)/1 var(--bebas); letter-spacing: 0.01em; color: var(--ink-1); text-decoration: none; display: inline-block; margin: 0 0 40px; overflow-wrap: anywhere; }
.panel .big-mail:hover { color: var(--vision); }

.prose { padding: clamp(32px, 5vw, 80px); max-width: 880px; margin-bottom: var(--section); }
.prose h2 { font-size: var(--display-m); margin: 64px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink-1); font-weight: 600; }
.prose ul { padding-left: 20px; max-width: 60ch; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--vision); }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 80px 0 48px; font-size: 14px; background: rgba(7, 6, 11, 0.6); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
footer.site .label { margin-bottom: 16px; }
footer.site p { margin: 0; line-height: 1.8; }
footer.site ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--ink-1); }
footer.site .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; padding-top: 24px; border-top: 1px solid var(--rule); }
footer.site .logo { font-size: 22px; display: inline-block; margin-bottom: 20px; }

/* Reveal on scroll: rise 24px and fade, 900ms, 80ms stagger */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Load settle on the cover */
.settle { animation: settle 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes settle { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadein 1.4s ease-out 0.3s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --section: 96px; }
  .hero { min-height: 0; padding: 64px 0 32px; }
  .hero .wrap, .chapter-head, .company, .split { grid-template-columns: 1fr; }
  .chapter-head { margin-bottom: 48px; }
  .team-wrap { max-width: 560px; }
  .page-hero { padding: 72px 0 48px; }
}
@media (max-width: 640px) {
  nav.primary { gap: 20px; }
  nav.primary .hide-sm { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .label { padding-bottom: 32px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 32px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { padding-bottom: 0; border-bottom: 0; }
}

/* One of the two team arrangements shows at a time. */
.team.narrow { display: none; }
@media (max-width: 640px) {
  .team.wide { display: none; }
  .team.narrow { display: block; }
  .team .role { font-size: 13px; }
  .team .tag { font-size: 9px; letter-spacing: 0.12em; }
}

/* An illustration of the app window, drawn in HTML so it stays sharp. */
.app { overflow: hidden; max-width: 1180px; margin: 0 auto; font-size: 14px; }
.app-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.app-bar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-bar span { margin-left: 16px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); }
.app-body { display: grid; grid-template-columns: 220px 1fr; min-height: 520px; }
.app-side { border-right: 1px solid var(--rule); padding: 24px 16px; background: rgba(7, 6, 11, 0.35); }
.side-h { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 8px; }
.app-side ul { list-style: none; margin: 0 0 32px; padding: 0; }
.app-side li { padding: 7px 8px; border-radius: 6px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.app-side li.on { background: rgba(255, 255, 255, 0.06); color: var(--ink-1); }
.app-side .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.app-side .d.g { background: var(--vision); box-shadow: 0 0 0 4px rgba(104, 204, 40, 0.15); }
.app-main { padding: 40px clamp(24px, 4vw, 56px); }
.app-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); margin: 0 0 8px; }
.app-title { font: 400 clamp(28px, 3vw, 40px)/1 var(--bebas); letter-spacing: 0.01em; color: var(--ink-1); margin: 0 0 28px; text-transform: uppercase; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.app-card { border: 1px solid var(--rule); border-radius: 10px; padding: 16px; background: rgba(10, 8, 16, 0.55); display: flex; flex-direction: column; gap: 4px; }
.app-card span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-label); }
.app-card strong { color: var(--ink-1); font-weight: 600; font-size: 15px; }
.app-card em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.app-chat { border-top: 1px solid var(--rule); padding-top: 24px; max-width: 640px; }
.app-chat .who { font-size: 12px; font-weight: 600; color: var(--vision); margin: 0 0 6px; }
.app-chat .msg { color: var(--ink-1); margin: 0 0 16px; line-height: 1.6; }
.ask { border: 1px solid rgba(104, 204, 40, 0.45); border-radius: 10px; padding: 16px; background: rgba(104, 204, 40, 0.05); }
.ask-h { font-size: 12px; font-weight: 600; color: var(--vision); margin: 0 0 4px; }
.ask-b { color: var(--ink-1); margin: 0 0 14px; }
.ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-btns span { font-size: 13px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--rule); color: var(--ink-1); }
.ask-btns .yes { background: var(--vision); border-color: var(--vision); color: var(--ground); font-weight: 600; }
@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 640px) {
  .app-cards { grid-template-columns: 1fr; }
  .app-cards .app-card:nth-child(n + 3) { display: none; }
  .app-main { padding: 24px 20px; }
}
