/* EarlyAccess.sh landing page — terminal-native theme */

:root {
  --bg: #0a0e14;
  --bg-elevated: #0f141d;
  --bg-terminal: #0c1119;
  --border: #1d2530;
  --text: #e6edf3;
  --text-dim: #8b97a7;
  --accent: #3ad07a;        /* terminal green — success */
  --accent-soft: rgba(58, 208, 122, 0.12);
  --cyan: #56b6f7;          /* prompts */
  --amber: #e3b341;
  --red: #f0645d;
  --radius: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle dotted grid + radial glow behind everything */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(58, 208, 122, 0.08), transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 40px;
}

.wordmark {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.wordmark .mark { color: var(--accent); margin-right: 2px; }

.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.headline {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.subhead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 2.5vw, 1.1rem);
}

/* ---------- Terminal ---------- */
.terminal {
  margin: 12px auto 64px;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(58, 208, 122, 0.04),
    0 24px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -40px rgba(58, 208, 122, 0.3);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--accent); }

.terminal-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.terminal-body {
  margin: 0;
  padding: 22px 20px 26px;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  height: 320px;
  overflow-y: auto;
}

/* line coloring (classes applied by script.js) */
.t-prompt { color: var(--text); }
.t-prompt .sym { color: var(--cyan); }
.t-prompt .cmd { color: var(--text); font-weight: 500; }
.t-output { color: var(--text-dim); }
.t-output .key { color: var(--text-dim); }
.t-output .val { color: var(--accent); }
.t-output .str { color: var(--amber); }
.t-comment { color: var(--text-dim); font-style: italic; }
.t-success { color: var(--accent); font-weight: 500; }
.t-json { color: var(--text-dim); }
.t-json .key { color: var(--cyan); }
.t-json .val-str { color: var(--amber); }
.t-json .val-ok { color: var(--accent); }
.t-caret {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.value {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value:hover {
  border-color: rgba(58, 208, 122, 0.4);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.value h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.value p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- Waitlist ---------- */
.waitlist {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 28px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.waitlist-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  position: relative;
}

.waitlist-copy {
  max-width: 440px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  position: relative;
}

.signup {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.signup input {
  flex: 1;
  min-width: 0;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup input::placeholder { color: var(--text-dim); }

.signup input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signup button {
  background: var(--accent);
  color: #04130a;
  border: none;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease;
}

.signup button:hover { background: #4fe08c; }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: 0.6; cursor: default; }

.form-status {
  position: relative;
  min-height: 1.4em;
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 56px;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.footer p { margin: 0; }

.social { display: flex; gap: 18px; }
.social a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.social a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 56px 0 32px; }
  .values { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .t-caret { animation: none; }
  html { scroll-behavior: auto; }
}
