/* Aurellix Limited — aurellix.eu
   Monochrome brand: Montserrat (display) + Inter (text). Fonts self-hosted (no third-party requests). */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #0a0a0b;          /* hero / footer black, matches brand wallpaper */
  --ink-2: #131315;
  --on-ink: #f4f4f2;
  --on-ink-muted: #a3a3a8;
  --on-ink-line: rgba(255, 255, 255, 0.12);

  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #141416;
  --muted: #5d5f66;
  --line: #e4e4e0;
  --line-strong: #cfcfca;

  --amber: #b26b00;
  --amber-bg: #fff7e8;
  --amber-line: #f0c46b;

  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11; --surface: #17171a; --text: #ececea; --muted: #a0a1a8;
    --line: #26262b; --line-strong: #34343a;
    --amber: #f0b44c; --amber-bg: #221a0c; --amber-line: #6b4d14;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11; --surface: #17171a; --text: #ececea; --muted: #a0a1a8;
  --line: #26262b; --line-strong: #34343a;
  --amber: #f0b44c; --amber-bg: #221a0c; --amber-line: #6b4d14;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* Split rule — echoes the broken underline in the Aurellix wordmark */
.split-rule { display: flex; gap: 6px; width: 120px; height: 2px; margin: 0 0 16px; }
.split-rule::before { content: ""; flex: 0 0 18%; background: currentColor; }
.split-rule::after  { content: ""; flex: 1; background: currentColor; }

.eyebrow {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 10px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid var(--on-ink-line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { width: 132px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.nav a {
  color: var(--on-ink-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--on-ink); }

/* ---------- Price ticker (ticker.js, live via Kraken public WebSocket) ---------- */
.ticker { display: flex; align-items: stretch; height: 38px; border-top: 1px solid var(--on-ink-line); font-size: 13px; color: var(--on-ink-muted); }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 var(--gutter);
  font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink);
  border-right: 1px solid var(--on-ink-line);
}
.ticker-live { width: 6px; height: 6px; border-radius: 50%; background: #6b6b70; transition: background .3s; }
.ticker[data-state="live"] .ticker-live { background: #3ecf8e; box-shadow: 0 0 8px rgba(62,207,142,.7); }
.ticker-viewport {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-dur, 60s) linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }  /* moves left → right */
.tk { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; white-space: nowrap; border-right: 1px solid var(--on-ink-line); }
.tk-sym { font-family: var(--display); font-weight: 600; color: var(--on-ink); letter-spacing: .04em; }
.tk-px { font-variant-numeric: tabular-nums; color: var(--on-ink); }
.tk-px.up { animation: flash-up .9s ease-out; }
.tk-px.down { animation: flash-down .9s ease-out; }
@keyframes flash-up { from { color: #3ecf8e; } to { color: var(--on-ink); } }
@keyframes flash-down { from { color: #ff6b6b; } to { color: var(--on-ink); } }
.tk-ch { font-variant-numeric: tabular-nums; font-size: 12px; }
.tk-ch.pos { color: #3ecf8e; }
.tk-ch.neg { color: #ff6b6b; }
.ticker-src { flex: none; display: flex; align-items: center; padding: 0 var(--gutter) 0 16px; font-size: 11px; border-left: 1px solid var(--on-ink-line); }
.ticker-wait { padding: 0 22px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 84px);
}
.hero-art {
  /* animated vector network (img/network.svg, built by _generator/network.py) fanning in behind the status card */
  position: absolute; z-index: -1; right: 0; bottom: 0; pointer-events: none;
  width: min(70%, 1100px); height: auto; aspect-ratio: 1200 / 1000;
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 55%), linear-gradient(to bottom, transparent 0%, #000 28%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 8%, #000 55%), linear-gradient(to bottom, transparent 0%, #000 28%);
  mask-composite: intersect;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--on-ink-line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero .eyebrow { color: var(--on-ink-muted); }
.hero h1 {
  font-family: var(--display); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; margin: 0 0 18px;
}
.hero .split-rule { color: var(--on-ink); }
.hero-subtitle {
  font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink); margin: 0 0 16px;
}
.hero-description { color: var(--on-ink-muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 56ch; margin: 0; }
.hero-description strong { color: var(--on-ink); font-weight: 500; }

/* Status card */
.status-card {
  background: linear-gradient(180deg, rgba(28,28,31,.92), rgba(16,16,18,.92));
  border: 1px solid var(--on-ink-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.status-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 22px;
  border-bottom: 1px solid var(--on-ink-line);
  font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b44c; box-shadow: 0 0 0 0 rgba(240,180,76,.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,180,76,.5); } 70% { box-shadow: 0 0 0 9px rgba(240,180,76,0); } 100% { box-shadow: 0 0 0 0 rgba(240,180,76,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
.pill {
  margin-left: auto; font-size: 11px; letter-spacing: .14em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(240,180,76,.45); color: #f0b44c; background: rgba(240,180,76,.08);
}
.status-rows { margin: 0; padding: 6px 22px; }
.status-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--on-ink-line); }
.status-row:last-child { border-bottom: 0; }
.status-row dt { color: var(--on-ink-muted); font-size: 14px; }
.status-row dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; }
.status-foot {
  padding: 13px 22px; font-size: 13px; line-height: 1.55; color: var(--on-ink-muted);
  background: rgba(0,0,0,.25); border-top: 1px solid var(--on-ink-line);
}

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 5.5vw, 76px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 34px); }
.section .eyebrow { color: var(--muted); }
.section .split-rule { color: var(--text); }
.section h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 10px;
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* Notice */
.notice-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; margin: 0 0 22px; }
.subhead { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: 40px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.svc-list li::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); font-family: var(--display); font-size: 13px; color: var(--muted); padding-top: 2px; }
.svc-list { counter-reset: svc; }
.callouts { display: grid; gap: 16px; }
.callout { border-radius: 14px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.callout p { margin: 0; }
.callout-warn { background: var(--amber-bg); border-color: var(--amber-line); }
.callout-label { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.callout-warn .callout-label { color: var(--amber); }
.callout-label svg { flex: none; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.service { background: var(--surface); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; transition: background .25s ease; }
.service:hover { background: var(--bg); }
.service-num { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--line-strong); padding-bottom: 22px; }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.35; margin: 0 0 10px; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }
.services-note { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.services-note p { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(36px, 4.5vw, 56px) 0 24px; }
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: 28px; border-bottom: 1px solid var(--on-ink-line); }
.footer-brand img { width: 150px; }
.footer-legal { font-size: 13px; line-height: 1.75; margin: 0; max-width: 92ch; }
.footer-legal strong { color: var(--on-ink); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid, .notice-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-art { width: 130%; right: -35%; top: 30px; bottom: auto; opacity: .4; }
}
@media (max-width: 560px) {
  .brand img { width: 112px; }
  .nav a { font-size: 13px; }
  .ticker-src { display: none; }
  .ticker-label { padding-right: 12px; }
  .tl-long { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-num { padding-bottom: 14px; font-size: 36px; }
  .status-row { flex-direction: column; gap: 2px; }
  .status-row dd { text-align: left; }
}
