/* Xbeetle — coming soon. Graphite, orange, a hexagon motif, mono numerals. Written by hand. */

:root {
  --bg: #14161a;
  --panel: #1b1e24;
  --line: rgba(255, 255, 255, .09);
  --text: #eef0f3;
  --muted: #98a0ab;
  --orange: #f07a24;
  --on-orange: #1a0d02;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 36px); }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 790; letter-spacing: .08em; text-transform: uppercase;
  font-size: .86rem;
}
.brand:hover { text-decoration: none; }
.brand b {
  width: 26px; height: 26px;
  background: var(--orange);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  display: grid; place-items: center;
  color: var(--on-orange);
  font-size: .7rem; font-weight: 900;
}
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); font-size: .84rem; }
.top nav a:hover, .top nav a.active { color: var(--orange); }

/* hero */
.hero { position: relative; padding: clamp(38px, 7vw, 68px) 0 clamp(22px, 3.4vw, 32px); }
.hex {
  position: absolute; top: clamp(20px, 6vw, 48px); right: -10px;
  width: clamp(90px, 18vw, 150px); aspect-ratio: 1;
  background: linear-gradient(155deg, rgba(240, 122, 36, .9), rgba(240, 122, 36, .18));
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  opacity: .55;
  pointer-events: none;
}
.num {
  display: block; margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange);
}
h1 {
  margin: 0 0 18px;
  max-width: 20ch;
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  line-height: 1.06; letter-spacing: -.04em; font-weight: 790;
}
h1 span { color: var(--orange); }
.lede { margin: 0; max-width: 54ch; color: var(--muted); }

/* spec list */
.spec { margin: clamp(26px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.spec > div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.spec b {
  flex: none; width: 2.2rem;
  font-family: var(--mono);
  font-size: .74rem; color: var(--orange); font-weight: 700;
}
.spec dt { flex: none; width: 9rem; color: var(--muted); font-size: .84rem; }
.spec dd { margin: 0; font-weight: 620; font-size: .94rem; word-break: break-word; }

/* panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.6vw, 32px);
}
.panel > h2 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
}
.panel .hint { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }

.field { margin-bottom: 15px; }
.field label {
  display: block; margin-bottom: 5px;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: .95rem;
  color: var(--text);
  background: #101318;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 106px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 122, 36, .16);
}
.field .invalid { border-color: #e2705f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  font: inherit; font-family: var(--mono);
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-orange); background: var(--orange);
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn:hover { background: #ff9142; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; min-height: 1.2em; font-size: .86rem; font-family: var(--mono); }
.status.ok { color: var(--orange); }
.status.err { color: #f0937f; }

/* footer */
.base {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .8rem;
  font-family: var(--mono);
}
.base nav { display: flex; gap: 18px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--orange); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 36px) 44px; }
.doc .sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(24px, 4.2vw, 42px);
}
.doc h1 { margin: 16px 0 10px; font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.stamp {
  display: block; margin: 0 0 26px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted);
}
.doc h2 {
  margin: 28px 0 8px;
  font-size: 1rem; font-weight: 740; letter-spacing: -.01em;
  text-transform: none; color: var(--text);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #b7bfc9; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.ghost:hover { background: rgba(255, 255, 255, .05); }

@media (max-width: 620px) {
  .hex { display: none; }
  .spec dt { width: 7rem; }
}
@media (max-width: 540px) {
  .spec > div { flex-wrap: wrap; gap: 4px; }
  .spec dt { width: 100%; }
  .base { flex-direction: column; }
}
