/* ============================================================
   Muldoon — site styles
   Dark "control-room" theme · blue + amber · raptor-claw motif
   ============================================================ */

:root {
  --ink:      #0e1217;
  --ink-2:    #131922;
  --ink-3:    #1a212b;
  --card:     #161d27;
  --line:     #29333f;
  --line-soft: rgba(255,255,255,.07);

  --text:     #e9eef4;
  --muted:    #9aa7b4;
  --faint:    #67727e;

  --blue:     #3a9ae0;
  --blue-2:   #5ab0ef;
  --blue-deep:#2271b1;
  --amber:    #e8a33d;
  --amber-2:  #f3bd66;
  --danger:   #ff5d5f;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue); }

code, .mono { font-family: var(--font-mono); font-size: .9em; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #04121d; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(14,18,23,.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark.sm { width: 40px; height: 40px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800; font-size: 23px; letter-spacing: .06em;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav .ghlink {
  color: var(--text); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.site-nav .ghlink:hover { border-color: var(--blue); color: var(--blue-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px,8vw,104px); }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute; top: -28%; right: -10%; width: 760px; height: 760px;
  background: radial-gradient(circle at center, rgba(58,154,224,.22), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  margin: 0 0 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232,163,61,.16);
}

h1 { margin: 0 0 22px; }
.wordmark {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 12vw, 132px); line-height: .86;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff 0%, #b9c6d2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(13px, 1.7vw, 16px); letter-spacing: .26em; text-transform: uppercase;
  color: var(--amber-2);
}
.lede { font-size: clamp(17px,1.5vw,19px); color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.lede strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 2px;
  padding: 15px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; line-height: 1.1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  border: 1px solid transparent;
}
.btn-sub { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .04em; opacity: .8; }
.btn-primary {
  background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #04121d;
  box-shadow: 0 10px 26px -10px rgba(58,154,224,.7);
}
.btn-primary:hover { transform: translateY(-2px); color: #04121d; box-shadow: 0 16px 34px -12px rgba(58,154,224,.85); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-2); transform: translateY(-2px); }

.hero-points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 13px; color: var(--faint);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; background: var(--blue); transform: rotate(45deg); }

/* Hero demo: address bar */
.hero-demo { position: relative; }
.browser {
  background: #f4f7fa; color: #11161c; border-radius: var(--r);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; background: #e4e9ee; border-bottom: 1px solid #d3dae1;
}
.tl { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.url {
  display: flex; align-items: center; gap: 9px;
  flex: 1; margin-left: 8px;
  background: #fff; border: 1px solid #ccd4dc; border-radius: 999px;
  padding: 9px 16px; font-family: var(--font-mono); font-size: 15px; color: #11161c;
}
.url .lock { width: 15px; height: 15px; color: #2e9c54; flex: none; }
.url-text { font-weight: 500; }
.caret { width: 2px; height: 17px; background: var(--blue-deep); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.browser-body { position: relative; padding: 30px 24px 34px; background: #f4f7fa; }
.served-label {
  display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #7c8794; margin-bottom: 9px;
}
.served-path {
  display: inline-block; font-family: var(--font-mono); font-size: 16px; color: #11161c;
  background: #e7edf2; border: 1px dashed #b9c4ce; border-radius: var(--r-sm);
  padding: 10px 14px;
}
.rake { position: absolute; right: 14px; bottom: 10px; width: 92px; opacity: .9; }
.rake svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(232,163,61,.4)); }

.demo-note {
  margin: 16px 4px 0; text-align: right;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- Bands / sections ---------- */
.band { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line-soft); }
.band-alt { background: var(--ink-2); }
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.band h2, .cta-band h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px); margin: 0 0 18px; max-width: 16ch;
}
.section-lede { color: var(--muted); max-width: 62ch; font-size: 18px; margin: 0 0 38px; }
.fineprint { color: var(--faint); font-size: 14.5px; margin-top: 18px; }
.fineprint code, .section-lede code { color: var(--blue-2); }

/* Mapping table */
.maptable { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.maptable-head, .maptable-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 16px 22px; align-items: center;
}
.maptable-head {
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.maptable-row { border-bottom: 1px solid var(--line-soft); }
.maptable-row:last-child { border-bottom: none; }
.maptable code { font-size: 14.5px; word-break: break-all; }
.maptable .from { color: var(--blue-2); font-weight: 500; }
.maptable .to { color: var(--muted); position: relative; }
.maptable .to::before { content: "→ "; color: var(--amber); margin-right: 4px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 22px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(58,154,224,.5); box-shadow: 0 24px 44px -28px rgba(58,154,224,.6); }
.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: .02em;
  margin: 0 0 16px; color: var(--text);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 60% 100%); /* claw tick */
}
.ticks code { color: var(--blue-2); }

/* Screenshot */
.shot {
  margin: 8px auto 0; max-width: 900px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #e4e9ee; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: #e4e9ee; border-bottom: 1px solid #d3dae1; }
.shot-url { margin-left: 8px; font-family: var(--font-mono); font-size: 13px; color: #5a6573; background: #fff; border: 1px solid #ccd4dc; border-radius: 999px; padding: 5px 14px; }
.shot-img { position: relative; max-height: 560px; overflow: hidden; background: #f0f0f1; }
.shot-img img { display: block; width: 100%; height: auto; }
.shot-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(transparent, rgba(240,240,241,.97)); pointer-events: none; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.steps li {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px;
}
.step-n {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: #04121d; background: linear-gradient(180deg, var(--amber-2), var(--amber));
}
.steps h3 { font-size: 19px; margin: 2px 0 5px; font-family: var(--font-body); font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps code { color: var(--blue-2); }

.callout {
  margin-top: 26px; max-width: 760px;
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, rgba(232,163,61,.10), transparent 80%);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px; color: var(--muted); font-size: 15.5px;
}
.callout strong { color: var(--amber-2); }
.callout code { color: var(--text); }

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--ink-3); margin-bottom: 12px; overflow: hidden;
}
details[open] { border-color: rgba(58,154,224,.4); }
summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; font-size: 17px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--blue-2);
  transition: transform .2s var(--ease); line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
details code { color: var(--blue-2); }

/* CTA band */
.cta-band {
  position: relative; text-align: center; padding: clamp(72px,10vw,128px) 0;
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(58,154,224,.16), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 { margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .05em; margin: 0; }
.foot-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 3px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--blue-2); }
.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; font-size: 13.5px; color: var(--faint);
}
.clever { font-style: italic; font-family: var(--font-mono); color: var(--amber); opacity: .55; letter-spacing: .04em; }
.clever:hover { opacity: 1; transition: opacity .4s var(--ease); }

/* ---------- Entrance animation ---------- */
.hero-copy > *, .hero-demo { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero-copy .eyebrow { animation-delay: .05s; }
.hero-copy h1 { animation-delay: .14s; }
.hero-copy .lede { animation-delay: .24s; }
.hero-copy .cta-row { animation-delay: .34s; }
.hero-copy .hero-points { animation-delay: .44s; }
.hero-demo { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-demo { max-width: 520px; }
  .browser { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.ghlink) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .hero-inner, .site-head { padding-left: 20px; padding-right: 20px; }
  .maptable-head, .maptable-row { grid-template-columns: 1fr; gap: 8px; }
  .maptable .to::before { content: "↳ "; }
  .btn { width: 100%; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .hero-demo { opacity: 1; transform: none; }
}
