@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #ffffff; --surface: #f5f6f8; --surface-2: #eceef2; --line: #e6e7eb; --line-2: #d9dbe1;
  --text: #0e0e10; --text-2: #5d6068; --dim: #8a8d96;
  --brand: #2b59f0; --brand-hover: #2350df; --brand-soft: #eef2fe; --brand-text: #2349d9;
  --green: #12a150; --green-bg: #e6f6ed; --red: #e5484d; --red-bg: #fdecec;
  --term-bg: #0c0e13; --term-line: #1e232d; --term-text: #e3e7ee; --term-dim: #7b8494;
  --grid-line: rgba(17, 17, 20, .05); --grid-glow: 43, 89, 240; --grid-alpha: .4;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060607; --surface: #111113; --surface-2: #18181b; --line: #1d1e22; --line-2: #2a2b30;
    --text: #f2f3f5; --text-2: #a3a6ae; --dim: #6f727b;
    --brand: #4d6fff; --brand-hover: #5a7aff; --brand-soft: rgba(77, 111, 255, .13); --brand-text: #95aaff;
    --green: #3ecf8e; --green-bg: rgba(62, 207, 142, .12); --red: #ff6b70; --red-bg: rgba(255, 107, 112, .12);
    --grid-line: rgba(255, 255, 255, .045); --grid-glow: 120, 146, 255; --grid-alpha: .6;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
#grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nav, main, .foot { position: relative; z-index: 1; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .tld { color: var(--dim); font-weight: 500; }
.mark { width: 28px; height: 28px; display: block; }
.mk-bg { fill: var(--brand); } .mk-tag { fill: #fff; } .mk-dot { fill: var(--brand); }
.nav-r { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Buttons: solid, flat, darker on hover. Never white. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 600 15px var(--sans); white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s var(--ease); }
.btn:hover { border-color: var(--dim); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 13px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; margin-left: 6px; }
.btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Hero */
.hero { padding: 104px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
h1 { font-size: clamp(44px, 8.2vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: .98; margin-top: 28px; }
.dim { color: var(--dim); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; margin-top: 26px; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { font-size: 14px; color: var(--dim); margin-top: 14px; }

/* Demo */
.demo { margin-top: 80px; display: grid; gap: 16px; max-width: 880px; }
.swapbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sb-side { display: grid; gap: 6px; min-width: 0; }
.sb-k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sb-v { display: flex; align-items: center; gap: 8px; font-size: clamp(13px, 1.5vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-v.old { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.sb-v.new { color: var(--text); font-weight: 500; }
.port { color: var(--brand-text); font-weight: 500; display: inline-block; }
.sb-v.old .port { color: var(--dim); }
.port.out { animation: portOut .22s var(--ease) both; } .port.in { animation: portIn .32s var(--ease) both; }
@keyframes portOut { to { transform: translateY(-60%); opacity: 0; } }
@keyframes portIn { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-arrow { width: 22px; height: 22px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock, .cert-ic { width: 15px; height: 15px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.term { border-radius: 20px; overflow: hidden; background: var(--term-bg); border: 1px solid var(--term-line); color: var(--term-text); box-shadow: 0 30px 60px -34px rgba(10, 14, 24, .45); }
.term-bar { display: flex; justify-content: space-between; height: 44px; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--term-line); font: 500 12.5px var(--mono); color: var(--term-dim); }
.term-host { color: #7dd8a8; }
.term-body { padding: 20px 22px 24px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; min-height: 170px; }
.term-body .p { color: var(--term-dim); } .term-body .d { color: var(--term-dim); } .term-body .g { color: #7dd8a8; } .term-body .b { color: #8fa6ff; }
.caret { display: inline-block; width: 8px; height: 17px; background: var(--term-text); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Features */
.feats { padding-top: 140px; }
.s-head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.06; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 14px 14px 26px; border-radius: 22px; background: var(--surface); transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-3px); }
.viz { min-height: 172px; padding: 16px; border-radius: 15px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.viz.center { align-items: stretch; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); min-width: 0; }
.row code { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.tag.ok { background: var(--green-bg); color: var(--green); }
.cert, .alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.cert div, .alert div { display: grid; gap: 2px; min-width: 0; }
.cert b, .alert b { font-size: 14px; font-weight: 600; }
.cert span, .alert span { font-size: 13px; color: var(--text-2); }
.cert-ic { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--green-bg); }
.alert-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--red-bg); flex: none; position: relative; }
.alert-ic::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--red); }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 20px 10px 0; }
.card p { font-size: 15px; color: var(--text-2); margin: 6px 10px 0; line-height: 1.55; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); }
.facts li { padding: 26px 20px 0 0; display: grid; gap: 4px; }
.facts b { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.04em; }
.facts span { color: var(--text-2); font-size: 15px; }

/* Abuse */
.abuse { padding-top: 140px; }
.abuse-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.abuse-card h2 { font-size: clamp(28px, 3.4vw, 38px); }
.abuse-card p { color: var(--text-2); margin-top: 14px; max-width: 36em; }
.abuse-card ul { margin-top: 16px; padding-left: 20px; color: var(--text-2); }
.abuse-card li { margin-top: 6px; }
.abuse-card code { font-size: 14px; color: var(--text); }
.abuse-side { align-self: center; display: grid; gap: 14px; }
.mail { font-family: var(--mono); font-size: 17px; }
.small { font-size: 14px; color: var(--text-2); }
.small a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 56px 0 44px; margin-top: 80px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
.foot-r { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a:hover { color: var(--text); }

/* Entrance */
.hero > *, .demo > * { animation: rise .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 60ms; } .hero > :nth-child(3) { animation-delay: 120ms; } .hero > :nth-child(4) { animation-delay: 180ms; } .hero > :nth-child(5) { animation-delay: 220ms; }
.demo > :nth-child(1) { animation-delay: 260ms; } .demo > :nth-child(2) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abuse-card { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-link { display: none; }
  .hero { padding-top: 64px; }
  .cta .btn { width: 100%; }
  .swapbar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .sb-arrow { transform: rotate(90deg); }
  .term-body { font-size: 12.5px; padding: 16px; }
  .feats, .abuse { padding-top: 96px; }
  .facts li { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.sb-v.old .port { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
