/* =================================================================
   Stacked — coming soon
   Palette pulled from the Electron app (windows/startUp/startUp.html)
   ================================================================= */

:root {
  --bg-0: #0e0e10;
  --bg-1: #18181b;
  --bg-2: #1e1e21;
  --bg-3: #111113;

  --accent: #27ae60;
  --accent-hi: #2fc56e;
  --accent-soft: rgba(39, 174, 96, 0.12);
  --accent-border: rgba(39, 174, 96, 0.35);

  --text-100: #ffffff;
  --text-80: rgba(255, 255, 255, 0.78);
  --text-60: rgba(255, 255, 255, 0.55);
  --text-40: rgba(255, 255, 255, 0.32);
  --text-20: rgba(255, 255, 255, 0.18);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html, body {
  background: var(--bg-1);
  color: var(--text-80);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text-100); }

/* ── Background layers ──────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 174, 96, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 174, 96, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 110% 80% at 50% 30%, #000 35%, transparent 90%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.bg-glow-1 {
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.18) 0%, transparent 65%);
}
.bg-glow-2 {
  bottom: -240px;
  right: -180px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(47, 197, 110, 0.10) 0%, transparent 65%);
}

/* ── Page shell ─────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 48px 48px;
}

/* ── Top bar ────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.brand-wordmark {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--text-100);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-60);
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(39, 174, 96, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 540px;
  margin-bottom: 120px;
}

.hero-text { animation: fadeUp 0.7s ease both; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text-100);
  margin-bottom: 26px;
}
.headline .accent {
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-60);
  max-width: 480px;
  margin-bottom: 36px;
}

/* ── Contact form ───────────────────────────────────── */
.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 12px;
}
.contact-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.contact-row {
  display: flex;
  gap: 10px;
}
.contact-row .contact-input { flex: 1; min-width: 0; }
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-100);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.contact-input { height: 48px; }
.contact-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.contact-input::placeholder,
.contact-textarea::placeholder { color: var(--text-20); }
.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 22px rgba(39, 174, 96, 0.28);
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s, opacity 0.15s;
}
.contact-btn:hover {
  background: var(--accent-hi);
  box-shadow: 0 8px 26px rgba(39, 174, 96, 0.42);
}
.contact-btn:active { transform: scale(0.985); }
.contact-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-btn svg { width: 16px; height: 16px; }

.contact-note {
  font-size: 13px;
  color: var(--text-40);
  transition: color 0.2s;
}
.contact-note.success { color: var(--accent); }
.contact-note.error   { color: #e74c3c; }

/* ── Hero visual (animated tower) ───────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.7s 0.15s ease both;
}
.model-canvas {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  display: block;
  background: transparent;
  opacity: 0;
  animation: fadeIn 0.8s 0.1s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.visual-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-40);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s 1.8s ease forwards;
}
.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.8);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Capabilities row ───────────────────────────────── */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}
.cap {
  padding: 24px 28px;
  position: relative;
}
.cap-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.cap-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.cap-desc {
  font-size: 14px;
  color: var(--text-60);
  line-height: 1.6;
}
.cap + .cap { border-left: 1px solid var(--border); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-quote p {
  font-size: 13px;
  font-style: italic;
  color: var(--text-40);
  line-height: 1.6;
  max-width: 360px;
}
.footer-quote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-20);
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.footer-meta {
  font-size: 12px;
  color: var(--text-40);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot-sep { color: var(--text-20); }
.footer-meta a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .page { padding: 24px 28px 36px; }
  .top-bar { margin-bottom: 56px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    margin-bottom: 72px;
  }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .capabilities {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cap + .cap {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .contact-row { flex-direction: column; gap: 12px; }
  .contact-btn { width: 100%; justify-content: center; align-self: stretch; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
