@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #08090d;
  --bg-surface: #0f1117;
  --bg-elevated: #161922;
  --accent-green: #00ff88;
  --accent-green-dim: rgba(0, 255, 136, 0.15);
  --accent-cyan: #00d4ff;
  --accent-amber: #ffaa00;
  --text-primary: #e8eaf0;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e72;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 255, 136, 0.2);
  --glow-green: 0 0 40px rgba(0, 255, 136, 0.1);
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
}

.metric {
  background: var(--bg-surface);
  padding: 1.5rem;
  text-align: center;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== LAYERS SECTION ===== */
.layers {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.layer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.layer-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  transition: background 0.3s ease;
}

.layer-card:hover {
  background: var(--bg-elevated);
}

.layer-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.layer-icon.hardware {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
}

.layer-icon.privacy {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
}

.layer-icon.agents {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.2);
  color: var(--accent-amber);
}

.layer-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.layer-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.layer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.layer-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent-green-dim);
  border-radius: 6px;
}

/* ===== CONVERGENCE ===== */
.convergence {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.convergence::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.convergence-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.convergence h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.convergence p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.convergence-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.conv-node {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.conv-node.green { color: var(--accent-green); border-color: rgba(0,255,136,0.2); }
.conv-node.cyan { color: var(--accent-cyan); border-color: rgba(0,212,255,0.2); }
.conv-node.amber { color: var(--accent-amber); border-color: rgba(255,170,0,0.2); }

.conv-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.closing h2 .highlight {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* ===== METRICS BAR ===== */
.metrics-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
}

.metrics-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.metrics-divider {
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
  margin: 0 2rem;
}

.metrics-bar-item {
  text-align: center;
  padding: 0 1rem;
}

.mb-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.mb-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.mb-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== WAITLIST (HERO CTA) ===== */
.waitlist {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.waitlist::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.waitlist-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.waitlist-title .highlight {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.waitlist-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.waitlist-form-wrap {
  margin-bottom: 1.5rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

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

.waitlist-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.07);
}

.waitlist-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-green);
  color: #08090d;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.waitlist-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.waitlist-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--accent-green);
  max-width: 520px;
  margin: 0 auto;
}

.success-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.waitlist-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-dot.green { background: var(--accent-green); }
.trust-dot.amber { background: var(--accent-amber); }

/* ===== WAITLIST CTA (LOWER) ===== */
.waitlist-cta {
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.waitlist-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cta-label strong {
  color: var(--text-primary);
}

/* ===== SECURITY ===== */
.security {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.security-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.security-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.security-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.security-item {
  background: var(--bg-surface);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background 0.2s;
}

.security-item:hover {
  background: var(--bg-elevated);
}

.sec-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.sec-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.sec-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-metrics { grid-template-columns: 1fr; max-width: 100%; }
  .layer-card { grid-template-columns: 1fr; gap: 1rem; }
  .layers, .convergence, .closing { padding: 4rem 1.5rem; }
  .convergence-visual { flex-direction: column; gap: 0.8rem; }
  .conv-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .metrics-bar-inner { grid-template-columns: 1fr; gap: 2rem; }
  .metrics-divider { display: none; }
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { justify-content: center; }
  .security-list { grid-template-columns: 1fr; }
  .security { padding: 4rem 1.5rem; }
  .waitlist, .waitlist-cta { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2rem; }
  .hero-tag { font-size: 0.7rem; }
  .metric-value { font-size: 1.3rem; }
  .layer-card { padding: 1.5rem; }
  .security-item { padding: 1.5rem; }
}