:root {
  color-scheme: dark;
  --bg: #080a10;
  --surface: rgba(17, 21, 31, 0.76);
  --surface-strong: rgba(21, 26, 38, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #f4f6fb;
  --muted: #89909f;
  --cyan: #51d5e8;
  --violet: #a691ff;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 15%, transparent, rgba(3, 4, 8, .52) 76%);
  z-index: -1;
}

.ambient {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}

.ambient-one { background: var(--cyan); top: -220px; right: -80px; }
.ambient-two { background: var(--violet); bottom: -280px; left: -120px; }

.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}

.brand-mark span { display: block; width: 6px; border-radius: 3px; background: var(--text); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .5; }
.brand-mark span:nth-child(2) { height: 15px; opacity: .75; }
.brand-mark span:nth-child(3) { height: 22px; }

.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy strong { font-size: 15px; letter-spacing: .16em; }
.brand-copy small { color: var(--muted); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }

.system-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.system-state time { padding-left: 9px; border-left: 1px solid var(--line); color: #cbd0da; min-width: 48px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #67e9a7; box-shadow: 0 0 0 4px rgba(103,233,167,.1), 0 0 16px rgba(103,233,167,.5); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  align-items: end;
  gap: 72px;
  padding: 72px 0 58px;
}

.kicker { margin: 0 0 24px; color: var(--muted); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.kicker span { color: var(--cyan); margin-right: 12px; }

h1 { margin: 0; font-size: clamp(48px, 7.2vw, 92px); line-height: .95; letter-spacing: -.065em; font-weight: 650; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(244,246,251,.48); }

.lede { max-width: 390px; margin: 0 0 5px; padding-left: 23px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.85; }

.service-section { padding-bottom: 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.section-heading p { margin: 0; color: var(--muted); font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.service-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: 1fr auto;
  gap: 24px 19px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

a.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -80% 20%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 66%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

a.service-card:hover, a.service-card:focus-visible { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-strong); outline: none; }
a.service-card:hover::after, a.service-card:focus-visible::after { opacity: 1; }
a.service-card.is-routing { cursor: progress; border-color: var(--accent-line); }
.service-card[data-accent="cyan"] { --accent: var(--cyan); --accent-line: rgba(81,213,232,.42); --accent-glow: rgba(81,213,232,.11); }
.service-card[data-accent="violet"] { --accent: var(--violet); --accent-line: rgba(166,145,255,.42); --accent-glow: rgba(166,145,255,.12); }

.card-index { position: absolute; top: 20px; right: 22px; color: rgba(255,255,255,.26); font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }

.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--accent-line); border-radius: 15px; color: var(--accent); background: var(--accent-glow); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-copy { display: flex; flex-direction: column; min-width: 0; }
.card-eyebrow { margin: 5px 0 10px; color: var(--accent); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.card-title { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.card-description { margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.card-action { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line-soft); color: #a7aebb; font-size: 11px; }
.card-action svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; transition: transform .28s ease; }
a.service-card:hover .card-action svg { transform: translateX(4px); }

.reserved { min-height: 132px; grid-template-columns: 34px 1fr; grid-template-rows: 1fr; align-items: center; opacity: .58; border-style: dashed; background: rgba(255,255,255,.012); }
.reserved-plus { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; }
.reserved-plus::before, .reserved-plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 1px; background: var(--muted); transform: translate(-50%, -50%); }
.reserved-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.reserved-copy { display: grid; gap: 7px; }
.reserved-copy small { color: var(--muted); font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.reserved-copy strong { color: #989eaa; font-size: 14px; font-weight: 500; }

footer { margin-top: auto; min-height: 76px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #686e7a; font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
footer p { margin: 0; }
footer span { margin: 0 8px; color: #343844; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 58px 0 48px; }
  .lede { margin: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 30px, 520px); }
  .topbar { min-height: 78px; }
  .system-state > span:nth-child(2), .brand-copy small { display: none; }
  .intro { padding: 48px 0 42px; }
  h1 { font-size: clamp(46px, 14.5vw, 68px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 186px; }
  .reserved { min-height: 96px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
