/* Road to Runtime — landing (AppColors palette) */

:root {
  --bg-deep: #0d1117;
  --surface-card: #161b22;
  --surface-elevated: #21262d;
  --grid-line: #30363d;
  --cyan: #56d4dd;
  --purple: #c792ea;
  --gold: #ffcb6b;
  --green: #6aab73;
  --danger: #ff5370;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

a { color: var(--cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #7ee8ef; }

img { max-width: 100%; display: block; }

.container { width: var(--container); margin-inline: auto; }

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(48, 54, 61, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 80%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  pointer-events: none;
}

.bg-glow--cyan {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(86, 212, 221, 0.14), transparent 70%);
}

.bg-glow--purple {
  width: 400px;
  height: 400px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, rgba(199, 146, 234, 0.1), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(86, 212, 221, 0.12);
  border: 1px solid rgba(86, 212, 221, 0.35);
  color: var(--cyan) !important;
}

.nav-cta:hover {
  background: rgba(86, 212, 221, 0.2);
  color: #9eedf2 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
}

.hero-inner { text-align: center; max-width: 760px; margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--grid-line);
  background: rgba(22, 27, 34, 0.7);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.accent-cyan { color: var(--cyan); }
.accent-purple { color: var(--purple); }
.accent-gold { color: var(--gold); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #3db8c1);
  color: var(--bg-deep);
  box-shadow: 0 8px 32px rgba(86, 212, 221, 0.28);
}

.btn-primary:hover { color: var(--bg-deep); box-shadow: 0 12px 40px rgba(86, 212, 221, 0.38); }

.btn-ghost {
  border: 1px solid var(--grid-line);
  color: var(--text-primary);
  background: rgba(22, 27, 34, 0.6);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-icon { width: 1.15rem; height: 1.15rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.stat-pill {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--grid-line);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.stat-num { font-weight: 700; margin-right: 0.25rem; }

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 720px;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--grid-line);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(86, 212, 221, 0.35);
  box-shadow: 0 0 0 1px rgba(86, 212, 221, 0.08), 0 16px 48px rgba(0, 0, 0, 0.35);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.disclaimer {
  font-size: 0.88rem !important;
  padding: 1rem;
  border-left: 3px solid var(--purple);
  background: rgba(199, 146, 234, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-tertiary) !important;
}

.about-terminal {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grid-line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(86, 212, 221, 0.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--grid-line);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5370; }
.dot-yellow { background: #ffcb6b; }
.dot-green { background: #6aab73; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
}

.terminal-body {
  padding: 1.25rem;
  background: #0a0e14;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
}

.t-green { color: var(--green); }
.t-cyan { color: var(--cyan); }
.t-purple { color: var(--purple); }
.t-gold { color: var(--gold); }
.t-muted { color: var(--text-tertiary); }

/* Privacy */
.privacy-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.policy-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--grid-line);
}

.policy-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}

.policy-card p,
.policy-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.policy-card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.policy-card li { margin-bottom: 0.35rem; }

/* Contact */
.contact-inner { max-width: 720px; }

.contact-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--grid-line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: rgba(86, 212, 221, 0.4);
  box-shadow: 0 0 24px rgba(86, 212, 221, 0.08);
  color: var(--cyan);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-card:hover .contact-value { color: var(--cyan); }

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--grid-line);
  background: rgba(10, 14, 20, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0;
    background: rgba(13, 17, 23, 0.97);
    border-bottom: 1px solid var(--grid-line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; }
  .about-terminal { order: -1; }

  .hero { padding-top: 3rem; }
  .section { padding: 3.5rem 0; }

  .footer-inner { flex-direction: column; text-align: center; }
}
