/* arrekta.com: brand colours from brand/README.md; system fonts only (no external requests). */
:root {
  --bg: #f6f8fb; --surface: #ffffff; --ink: #0b1220; --muted: #4f5a6e; --line: #e2e7ef;
  --blue: #2b4bee; --teal: #0fb5a6; --accent: #2b4bee;
  --bar-bg: #eaf7f5; --bar-ink: #0b5e56; --notice-bg: #fff7e0; --notice-ink: #5e4500;
  --grad: linear-gradient(100deg, #2b4bee, #0fb5a6);
  --radius: 16px; --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111a2c; --ink: #f2f5fa; --muted: #a2adc2; --line: #20293d;
    --accent: #7d93ff; --bar-bg: #0e2a2a; --bar-ink: #7de0d4; --notice-bg: #2a2410; --notice-ink: #f1d27a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 750; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 720; margin-bottom: 28px; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.testnet-bar { background: var(--bar-bg); color: var(--bar-ink); text-align: center; font-size: 14px; padding: 8px 16px; }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 6px; vertical-align: 1px; }
.live.up::before { background: #12b886; opacity: 1; box-shadow: 0 0 0 3px rgba(18, 184, 134, .25); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 18px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand.small { font-size: 17px; }
.top nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-block; background: var(--grad); color: #fff; text-decoration: none; font-weight: 650;
  padding: 13px 22px; border-radius: 12px; box-shadow: 0 6px 20px rgba(43, 75, 238, .25); transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.small { padding: 8px 14px; font-size: 15px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.text-link { font-weight: 600; text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 48px 0 72px; }
.hero-text { min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-art { width: 100%; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols-3 p, .feature p, .route p { color: var(--muted); }
.grid-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--grad); margin-bottom: 14px; }

.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stack li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--muted); }
.stack .layer { font-weight: 700; color: var(--ink); }
.stack li:last-child { border-color: transparent; background: var(--grad); color: rgba(255, 255, 255, .9); }
.stack li:last-child .layer { color: #fff; }

.name { display: grid; grid-template-columns: 1fr 220px; gap: 48px; align-items: center; }
.name p { color: var(--muted); max-width: 40em; }
.name h2 { max-width: none; }

.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.route { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.route:hover { border-color: var(--accent); transform: translateY(-2px); }
.route p { flex: 1; }
.route span { color: var(--accent); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

.notice { border-top: none; }
.notice { background: var(--notice-bg); color: var(--notice-ink); border-radius: var(--radius); padding: 32px; margin: 24px 0 72px; }
.notice h2 { font-size: 22px; margin-bottom: 10px; max-width: none; }
.notice p { margin: 0; max-width: 60em; }

.foot { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 32px 20px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0; width: 100%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; }
  .hero-art { max-width: 320px; justify-self: center; order: -1; }
  .cols-3, .grid-features, .routes { grid-template-columns: 1fr; }
  .stack li { grid-template-columns: 1fr; gap: 4px; }
  .name { grid-template-columns: 1fr; }
  .name img { width: 120px; order: -1; }
  .section { padding: 52px 0; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid-features, .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .route { transition: none; }
}

.notfound { border: 0; text-align: center; }
.notfound h1 { margin: 18px 0 10px; font-size: 40px; }
.notfound p { color: var(--muted); }
