*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d0d0d;
  --text: #c8c8c8;
  --text-dim: #666;
  --accent-pink: #ff79c6;
  --accent-purple: #bd93f9;
  --accent-green: #50fa7b;
  --border: #333;
  --glow: rgba(189, 147, 249, 0.08);
  --mono: "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── layout ── */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── hero ── */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-graffiti {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 8px));
  right: 8px;
  font-size: clamp(3rem, 10svh, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: rgba(255, 121, 198, 0.12);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-logo {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-pink);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(255, 121, 198, 0.4), 0 0 30px rgba(255, 121, 198, 0.15);
}

.hero-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  animation: scanlines 12s linear infinite;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.hero-mid {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e8e8e8;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-sub .prompt { color: var(--accent-green); }

.hero-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--accent-green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* Keeps the cursor on the line of the last word: a line may break before an inline-block. */
.nowrap { white-space: nowrap; }

@keyframes blink {
  50% { opacity: 0; }
}

/* ── panels ── */

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 0 80px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 0 20px var(--glow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel:hover {
  border-color: #555;
  box-shadow: 0 0 30px rgba(189, 147, 249, 0.14);
}

.panel-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e8e8e8;
}

.panel-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── waitlist ── */

.waitlist {
  padding: 0 0 120px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 20px var(--glow);
  transition: border-color 0.2s;
}

.waitlist-form:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(189, 147, 249, 0.14);
}

.waitlist-prompt {
  padding: 14px 0 14px 16px;
  color: var(--accent-green);
  font-family: var(--mono);
  font-size: 0.95rem;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 14px 8px;
  line-height: 1;
}

.waitlist-input::placeholder {
  color: #444;
}

.waitlist-btn {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #0d0d0d;
  border: none;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1;
}

.waitlist-btn:hover { opacity: 0.85; }
.waitlist-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.waitlist-msg {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  min-height: 1.6em;
}

.waitlist-msg.ok { color: var(--accent-green); }
.waitlist-msg.err { color: var(--accent-pink); }

.waitlist-note {
  text-align: center;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.waitlist-note a { color: var(--text-dim); text-decoration: underline; }
.waitlist-note a:hover { color: var(--text); }

/* ── footer ── */

footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

footer .parens {
  color: #2a2a2a;
  font-size: 1.2rem;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.3em;
}

footer a { color: var(--text-dim); text-decoration: underline; }
footer a:hover { color: var(--text); }

/* ── links and labels ── */

.panel-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-align: center;
}

/* ── available now ── */

.now {
  padding: 0 0 80px;
}

.now-card {
  border-color: #4a3a5e;
}

html:not([data-os="windows"]) [data-os-only="windows"],
html[data-os="windows"] [data-os-only="unix"] { display: none; }

.os-tabs {
  display: flex;
  margin-top: 18px;
}

.os-tab {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.os-tab + .os-tab { border-left: none; }
.os-tab:first-child { border-top-left-radius: 4px; }
.os-tab:last-child { border-top-right-radius: 4px; }
.os-tab:hover { color: var(--text); }
.os-tab[aria-selected="true"] { color: var(--accent-green); background: rgba(0, 0, 0, 0.35); }

.install.tabbed {
  margin-top: 0;
  border-top-left-radius: 0;
}

/* ── install command ── */

.install {
  display: flex;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.install-prompt {
  padding: 12px 0 12px 14px;
  color: var(--accent-green);
  user-select: none;
}

.install-cmd {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #e8e8e8;
  white-space: nowrap;
  overflow-x: auto;
}

.install-copy {
  align-self: stretch;
  background: transparent;
  color: var(--accent-purple);
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.install-copy:hover { color: var(--accent-pink); }

.install-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── product page ── */

.crumb {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--accent-pink); }

.block {
  padding: 0 0 80px;
  max-width: 640px;
  margin: 0 auto;
}

.block p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.block code, .panel-text code { color: var(--text); font-family: var(--mono); font-size: inherit; }

.panels-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.ways {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.ways li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.ways li:first-child { border-top: none; }
.ways .way { color: var(--accent-green); }
.ways code { color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .ways li { grid-template-columns: 1fr; gap: 4px; }
}

.legal { padding-top: 64px; }
.legal h1 { font-size: 1.6rem; color: #e8e8e8; margin-bottom: 24px; }
.legal h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-top: 32px; }
