:root {
  --bg: #07090e;
  --surface: #0d1118;
  --surface-elev: #121822;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f4f6f8;
  --text-sec: #94a3b8;
  --text-muted: #64748b;
  --accent: #22c55e;
  --accent-bright: #4ade80;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --err: #fb7185;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Subtle tactical architectural grid + top emerald atmosphere */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 15%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 15%, #000 20%, transparent 90%);
}

.radial-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 460px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.10) 0%, rgba(15, 23, 42, 0.0) 70%);
}

/* Navigation */
.nav {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  display: block;
  border-radius: 7px;
}

.brand-word {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-dim {
  color: var(--text-sec);
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--accent-bright);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Main Content */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 22px;
}

.eyebrow-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.eyebrow-text {
  font-size: 12.5px;
  color: var(--text-sec);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.1vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 560px;
}

.subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

/* Waitlist Card */
.card {
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.92) 0%, rgba(13, 17, 24, 0.96) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.usecase-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.usecase-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.65);
  color: var(--text-sec);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.active {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-bright);
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-row input::placeholder {
  color: var(--text-muted);
}

.input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.cta-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: #f8fafc;
  color: #07090e;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, transform 0.1s;
}

.cta-btn:hover:not(:disabled) {
  background: #ffffff;
}

.cta-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  font-size: 12.5px;
}

.form-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Confirmation State */
.success-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.success-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: var(--accent-bright);
}

.success-pos {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--accent-bright);
}

.success-box h2 {
  margin: 0;
  font-size: 19px;
  color: #ffffff;
}

.success-msg {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-sec);
}

.success-meta {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.success-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.meta-k {
  color: var(--text-muted);
  flex-shrink: 0;
}

.meta-v {
  color: var(--text);
  font-family: var(--mono);
  text-align: right;
  word-break: break-all;
}

.link-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--text);
}

/* Terminal Card */
.terminal {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #0a0d14;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.52);
}

.term-bar {
  height: 38px;
  padding: 0 14px;
  background: var(--surface-elev);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}

.term-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.term-code {
  margin: 0;
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-x: auto;
}

.t-dim { color: #64748b; }
.t-cmd { color: #f8fafc; font-weight: 600; }
.t-str { color: #93c5fd; }
.t-ok { color: #4ade80; font-weight: 600; }
.t-key { color: #e2e8f0; }
.t-num { color: #fcd34d; }

.term-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(18, 24, 34, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-sec);
}

.dot-g {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
  vertical-align: middle;
}

/* 3-Pillar Technical Strip */
.pillars {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar {
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(13, 17, 24, 0.78);
  border: 1px solid var(--border);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
}

.pillar p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-sec);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .shell {
    padding: 36px 18px 40px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .pillars {
    margin-top: 40px;
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }
  .status-pill {
    font-size: 10.5px;
    padding: 4px 9px;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 16px;
  }
  .input-row {
    flex-direction: column;
    gap: 10px;
  }
  .input-row input {
    flex: none;
    width: 100%;
    height: 46px;
  }
  .cta-btn {
    width: 100%;
    height: 46px;
  }
  .term-code {
    font-size: 11px;
    padding: 14px;
  }
  .term-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
