/* extendme.org — core visual system
   dark / technical / frontier-hardware aesthetic */

:root {
  --void:  #04050a;
  --deep:  #080b12;
  --panel: #0c111b;
  --panel2:#101725;
  --line:  #1a2331;
  --lineHot:#28374d;
  --txt:   #e8eff7;
  --dim:   #8494a8;
  --faint: #4d5b6e;

  --cy:  #46e3d2;   /* primary  */
  --el:  #5d8cff;   /* electric */
  --am:  #ffb057;   /* premium  */
  --vi:  #ab7bff;   /* terminus */
  --rd:  #ff6b6b;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--txt);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ambient layers ───────────────────────────────────────── */

#mesh {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: .55;
}

.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 500px at 12% -5%,  rgba(70,227,210,.13), transparent 65%),
    radial-gradient(800px 600px at 88% 8%,   rgba(93,140,255,.11), transparent 65%),
    radial-gradient(900px 700px at 50% 110%, rgba(171,123,255,.09), transparent 65%);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scan {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,.22) 3px 4px);
}

/* ── layout ───────────────────────────────────────────────── */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.75rem; }
main  { position: relative; z-index: 2; }
section { padding: 6.5rem 0; position: relative; }
.tight { padding: 4rem 0; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

/* ── typography ───────────────────────────────────────────── */

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cy); margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--cy); opacity: .6; flex: none;
}

h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: .97; letter-spacing: -.045em; font-weight: 600;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 600;
  margin: 0 0 1.25rem;
}
h3 {
  font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em;
  font-weight: 600; margin: 0 0 .6rem;
}
p { margin: 0 0 1.1rem; color: var(--dim); }
.lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.6; color: #a7b6c8; max-width: 60ch; }
.measure { max-width: 66ch; }
strong { color: var(--txt); font-weight: 600; }
em { color: #b9c7d8; }

.grad {
  background: linear-gradient(100deg, var(--cy), var(--el) 45%, var(--vi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

a { color: var(--cy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ── nav ──────────────────────────────────────────────────── */

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,5,10,.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: .95rem 1.75rem;
  display: flex; align-items: center; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font: 600 15px/1 var(--sans); letter-spacing: -.02em; color: var(--txt);
  text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand em { color: var(--faint); font-style: normal; font-weight: 400; }

.glyph { width: 20px; height: 20px; flex: none; }
.glyph circle, .glyph path { vector-effect: non-scaling-stroke; }

.nav-links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav-links a {
  font: 500 13.5px/1 var(--sans); color: var(--dim);
  letter-spacing: -.01em; text-decoration: none; transition: color .18s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--txt); text-decoration: none; }

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  font: 600 13.5px/1 var(--sans); letter-spacing: -.005em;
  border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; position: relative;
  transition: all .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(100deg, var(--cy), #3fb9ff);
  color: #02141a; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(70,227,210,.4), 0 8px 30px -8px rgba(70,227,210,.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(70,227,210,.6), 0 12px 40px -8px rgba(70,227,210,.7); }

.btn-ghost {
  background: rgba(255,255,255,.02); color: var(--txt);
  border-color: var(--lineHot);
}
.btn-ghost:hover { border-color: var(--cy); background: rgba(70,227,210,.06); }

.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ── framed panels ────────────────────────────────────────── */

.panel {
  position: relative;
  background: linear-gradient(165deg, var(--panel), var(--deep));
  border: 1px solid var(--line);
  padding: 1.9rem;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 11px; height: 11px;
  border: 1px solid var(--cy); opacity: .55; transition: opacity .25s;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel:hover::before, .panel:hover::after { opacity: 1; }

/* ── hero ─────────────────────────────────────────────────── */

.hero { padding: 8.5rem 0 6rem; position: relative; }
.hero h1 { max-width: 16ch; }

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem .95rem; margin-bottom: 2rem;
  background: rgba(255,255,255,.015);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cy); flex: none;
  box-shadow: 0 0 0 0 rgba(70,227,210,.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(70,227,210,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(70,227,210,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,227,210,0); }
}

/* readout strip */
.readout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); margin-top: 4.5rem;
  background: rgba(8,11,18,.6);
}
.readout div { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.readout div:last-child { border-right: 0; }
.readout dt {
  font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .6rem;
}
.readout dd {
  margin: 0; font: 600 1.45rem/1 var(--sans); letter-spacing: -.03em; color: var(--txt);
}
.readout dd span { font-size: .72rem; color: var(--dim); font-weight: 400; letter-spacing: 0; }

/* ── grids ────────────────────────────────────────────────── */

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px,1fr)); gap: 1.25rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 1.25rem; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 4rem; align-items: start; }

/* ── tier modules ─────────────────────────────────────────── */

.tier {
  position: relative; padding: 1.75rem;
  background: linear-gradient(170deg, var(--panel), var(--deep) 70%);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
  --tc: var(--cy);
}
.tier::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--tc), transparent 75%);
  opacity: .75; transition: opacity .25s;
}
.tier:hover {
  border-color: var(--lineHot); transform: translateY(-3px);
  box-shadow: 0 20px 50px -22px rgba(0,0,0,.9);
}
.tier:hover::before { opacity: 1; }
.tier.t-el { --tc: var(--el); }
.tier.t-am { --tc: var(--am); }
.tier.t-vi { --tc: var(--vi); }

.tier-id {
  font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--tc); margin-bottom: .9rem;
}
.tier h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: .35rem; }
.tier .price {
  font: 600 2rem/1 var(--sans); letter-spacing: -.04em; color: var(--txt);
  margin: 1rem 0 .2rem;
}
.tier .price small { font-size: .8rem; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.tier .per { font: 400 12px/1 var(--mono); color: var(--faint); margin-bottom: 1.3rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.tier li {
  font-size: 13.5px; color: var(--dim); padding: .42rem 0 .42rem 1.3rem;
  position: relative; line-height: 1.5;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 5px; height: 5px; background: var(--tc); opacity: .8;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.tier .foot { margin-top: auto; padding-top: .5rem; }

.badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font: 500 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--tc); border: 1px solid currentColor; opacity: .8;
  padding: .32rem .5rem; border-radius: 2px;
}

/* ── capture ladder ───────────────────────────────────────── */

.ladder { border: 1px solid var(--line); background: rgba(8,11,18,.55); }
.rung {
  display: grid; grid-template-columns: 76px 1fr auto;
  gap: 1.4rem; align-items: center;
  padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line);
  transition: background .22s;
}
.rung:last-child { border-bottom: 0; }
.rung:hover { background: rgba(70,227,210,.035); }
.rung .lv {
  font: 600 13px/1 var(--mono); letter-spacing: .1em; color: var(--cy);
  display: flex; align-items: center; gap: .55rem;
}
.rung .lv i {
  width: 3px; height: 22px; background: currentColor; opacity: .5;
  display: block; flex: none;
}
.rung h4 { margin: 0 0 .2rem; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.rung p  { margin: 0; font-size: 13px; color: var(--faint); line-height: 1.45; }
.rung .tag {
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); padding: .34rem .55rem;
  white-space: nowrap;
}
.rung .tag.on  { color: var(--cy); border-color: rgba(70,227,210,.35); }
.rung .tag.off { color: var(--rd); border-color: rgba(255,107,107,.3); }
.rung.dim { opacity: .55; }

/* ── tables ───────────────────────────────────────────────── */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th {
  text-align: left; padding: .95rem 1.1rem;
  font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.014);
}
td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(70,227,210,.03); color: #a6b5c7; }
td strong { color: var(--txt); }

/* ── notices ──────────────────────────────────────────────── */

.note {
  border-left: 2px solid var(--cy);
  background: linear-gradient(90deg, rgba(70,227,210,.06), transparent 70%);
  padding: 1.15rem 1.4rem; margin: 1.75rem 0;
}
.note.warn { border-left-color: var(--am); background: linear-gradient(90deg, rgba(255,176,87,.07), transparent 70%); }
.note.stop { border-left-color: var(--rd); background: linear-gradient(90deg, rgba(255,107,107,.07), transparent 70%); }
.note p:last-child { margin-bottom: 0; }
.note .hd {
  font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cy); margin-bottom: .6rem;
}
.note.warn .hd { color: var(--am); }
.note.stop .hd { color: var(--rd); }

/* ── steps ────────────────────────────────────────────────── */

.steps { counter-reset: s; display: grid; gap: 1rem; }
.step {
  position: relative; padding: 1.4rem 1.5rem 1.4rem 4.2rem;
  border: 1px solid var(--line); background: rgba(12,17,27,.55);
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.35rem;
  font: 600 13px/1 var(--mono); color: var(--cy); opacity: .8;
}
.step h4 { margin: 0 0 .35rem; font-size: 15px; font-weight: 600; }
.step p { margin: 0; font-size: 13.5px; }

/* ── forms ────────────────────────────────────────────────── */

.field { margin-bottom: 1.35rem; }
label {
  display: block; margin-bottom: .5rem;
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: .82rem .95rem;
  background: rgba(4,5,10,.7); color: var(--txt);
  border: 1px solid var(--line); border-radius: 2px;
  font: 400 14.5px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cy);
  box-shadow: 0 0 0 3px rgba(70,227,210,.11);
}
select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 90px; }

.check {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.1rem; border: 1px solid var(--line);
  background: rgba(4,5,10,.5); margin-bottom: .7rem;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--lineHot); background: rgba(70,227,210,.03); }
.check input { margin-top: .2rem; accent-color: var(--cy); width: 15px; height: 15px; flex: none; cursor: pointer; }
.check span { font-size: 13.5px; color: var(--dim); line-height: 1.5; letter-spacing: 0;
  text-transform: none; font-family: var(--sans); font-weight: 400; }
.check span b { color: var(--txt); font-weight: 600; }

/* ── footer ───────────────────────────────────────────────── */

footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 4rem; margin-top: 3rem;
  background: rgba(4,5,10,.7);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
footer h5 {
  font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 1rem;
}
footer nav { display: grid; gap: .6rem; }
footer nav a { font-size: 13.5px; color: var(--dim); }
footer nav a:hover { color: var(--txt); }
footer .fine { font-size: 12px; color: var(--faint); line-height: 1.6; max-width: 46ch; }
.foot-bar {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font: 400 11.5px/1.5 var(--mono); color: var(--faint); letter-spacing: .04em;
}

/* ── reveal ───────────────────────────────────────────────── */

[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-rv].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-rv] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  #mesh { display: none; }
}

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .readout div { border-right: 0; border-bottom: 1px solid var(--line); }
  section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
}
@media (max-width: 640px) {
  .nav-links { gap: 1rem; overflow-x: auto; }
  .nav-links a { font-size: 12.5px; white-space: nowrap; }
  .rung { grid-template-columns: 58px 1fr; }
  .rung .tag { grid-column: 2; justify-self: start; }
  .wrap { padding: 0 1.15rem; }
  .nav-in { padding: .85rem 1.15rem; }
}
