/* Rundeck — the site reads like the app: near-black, two accents, marks
   drawn rather than chrome. Amber is brightness, sky is volume. */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Hanken+Grotesk:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --ink: #0a0a0c;
  --ink-2: #111115;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f3ef;
  --text-2: rgba(244, 243, 239, 0.7);
  --text-3: rgba(244, 243, 239, 0.5);
  --amber: #ffc96b;
  --sky: #7fd4ff;
  --mint: #6fe3c4;
  --orange: #ff9f45;
  --display: "Bricolage Grotesque", ui-serif, serif;
  --body: "Hanken Grotesk", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 28px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(255, 201, 107, 0.08), transparent 60%),
    radial-gradient(1000px 600px at 95% -5%, rgba(127, 212, 255, 0.08), transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain, so the black has a surface to it. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  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");
}
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 10, 12, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.2s cubic-bezier(.2,.9,.3,1.2), background 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: var(--ink); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12); }
.button.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.button small { font-weight: 500; color: var(--text-3); }

/* ---------- Hero: framed by the arcs, over a live dot field ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; place-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .arcs { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: min(30vw, 320px); pointer-events: none; }
.hero-copy { position: relative; text-align: center; padding: 120px 0 80px; max-width: 880px; }
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(52px, 9vw, 124px); line-height: 0.92; letter-spacing: -0.045em;
  margin: 26px 0 22px;
}
h1 .amber { color: var(--amber); }
h1 .sky { color: var(--sky); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--text-2); max-width: 640px; margin: 0 auto 36px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.d1 { animation-delay: 0.08s; } .reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; } .reveal.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Section scaffolding ---------- */
section { padding: 110px 0; position: relative; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 22px; max-width: 900px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.section-lede { color: var(--text-2); max-width: 620px; font-size: 20px; margin: 0; }

/* ---------- The scale: pages as a tick tape ---------- */
.tape { margin: 56px 0 40px; display: flex; align-items: flex-end; gap: 7px; overflow: hidden; height: 44px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tape span { flex: 0 0 3px; height: 18px; border-radius: 2px; background: rgba(255,255,255,0.18); }
.tape span.lit { height: 40px; background: var(--text); }

.pages { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.card p { color: var(--text-2); margin: 0; font-size: 17px; }
.card .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; display: block; }
.card .glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: 0.25; z-index: -1; right: -80px; bottom: -120px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }

/* Small drawn illustrations inside cards */
.illus { height: 150px; margin: 6px 0 22px; display: flex; align-items: center; justify-content: center; }
.dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dots i.l1 { background: rgba(255,255,255,0.5); transform: scale(1.5); }
.dots i.l2 { background: #fff; transform: scale(2.2); box-shadow: 0 0 14px rgba(255,255,255,0.6); }
.fingers { display: flex; gap: 18px; }
.fingers b { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; font: 600 13px var(--mono); color: var(--text-2); animation: swipe 2.6s ease-in-out infinite; }
.fingers b:nth-child(2) { animation-delay: 0.05s; } .fingers b:nth-child(3) { animation-delay: 0.1s; }
@keyframes swipe { 0%, 15% { transform: translateX(40px); opacity: 0; } 30% { opacity: 1; } 65% { transform: translateX(-40px); opacity: 1; } 80%, 100% { transform: translateX(-60px); opacity: 0; } }
.apps { display: flex; gap: 14px; align-items: flex-end; }
.apps i { width: 46px; height: 46px; border-radius: 12px; display: block; position: relative; }
.apps i::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text-3); }
.apps i.front::after { background: var(--mint); }
.apps i.off::after { display: none; }
.apps i.off { opacity: 0.5; }

/* The approval card, as the phone shows it */
.approval {
  border-radius: 20px; padding: 18px; width: 100%; max-width: 380px;
  background: rgba(20,20,24,0.8); border: 1px solid rgba(255,159,69,0.45);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.approval .who { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.approval .who::before { content: "✋"; }
.approval .meta { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; margin: 8px 0 10px; }
.approval .meta em { color: var(--orange); font-style: normal; }
.approval code { display: block; font: 13px var(--mono); background: rgba(255,255,255,0.06); padding: 10px 12px; border-radius: 10px; }
.approval .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.approval .actions span { text-align: center; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.approval .deny { background: rgba(255,80,80,0.12); color: #ff8a8a; }
.approval .allow { background: var(--orange); color: var(--ink); }

/* Loupe illustration */
.loupe { width: 130px; height: 130px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 50%, #1a1a20 0 60%, #0f0f13 61%); box-shadow: inset 0 0 0 9px rgba(255,255,255,0.08), inset 0 0 0 10px rgba(255,255,255,0.25), 0 20px 40px rgba(0,0,0,0.5); display: grid; place-items: center; font: 800 28px var(--display); letter-spacing: -0.02em; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; counter-reset: step; }
.step { padding: 30px; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 600 14px var(--mono); color: var(--sky); display: block; margin-bottom: 18px; }
.step p { color: var(--text-2); margin: 0; }
.code { display: flex; gap: 10px; margin-top: 18px; }
.code b { width: 48px; height: 60px; border-radius: 12px; display: grid; place-items: center; font: 600 30px var(--mono); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }

/* ---------- Promise band ---------- */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.promise .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.promise li { display: flex; gap: 14px; align-items: baseline; color: var(--text-2); }
.promise li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--mint); transform: translateY(-2px); }

/* ---------- Prose pages ---------- */
.page-head { padding: 110px 0 30px; }
.prose { max-width: 740px; padding-bottom: 120px; }
.prose h2 { font-size: 34px; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose code { font: 15px var(--mono); background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 6px; color: var(--text); }
.note { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--text-2); }
.download { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 30px 0 10px; }
.req { font: 13px var(--mono); color: var(--text-3); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--text-3); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .span-7, .span-5, .span-4, .span-6, .span-8 { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .promise .wrap { grid-template-columns: 1fr; }
  .nav ul { gap: 18px; font-size: 14px; }
  .nav ul li.hide-sm { display: none; }
  section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
