/* Shared Betaslope site styles */

:root {
  --bg: #0b0f19;
  --surface: #070b13;
  --surface-soft: #0e1420;
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: #111827;
  --accent: #22c55e;
  --accent-soft: rgba(34,197,94,0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15,23,42,0.9), #020617 70%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(15,23,42,0.9);
  background: rgba(38,88,58,0.97);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

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

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

main {
  padding: 40px 0 56px;
  position: relative;
  z-index: 1;
}

.shell {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(7,11,19,1));
  border-radius: 30px;
  border: 1px solid rgba(15,23,42,0.9);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(148,163,184,0.04);
  padding: 36px 32px 40px;
  position: relative;
  overflow: clip;
}

.shell::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,0.16), transparent 55%),
    radial-gradient(circle at bottom left, rgba(15,23,42,0.9), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.shell-inner {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 8px 0 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: flex-start;
}

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

.hero-aside {
  align-self: start;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top left, #020617, #030712);
  padding: 18px 18px 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-aside-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: rgba(148,163,184,0.9);
  margin-bottom: 6px;
}

.hero-aside-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.hero-aside-list li + li {
  margin-top: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.3);
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(15,23,42,0.88);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.hero-logo {
  display: block;
  height: 46px;
  width: auto;
  margin: 6px 0 24px;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
  max-width: 640px;
}

.hero h1 {
  max-width: 640px;
}

.hero p {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.button.primary {
  background: #f9fafb;
  color: #020617;
  box-shadow: 0 13px 40px rgba(15,23,42,0.7);
  transition: background 120ms ease-out, box-shadow 120ms ease-out;
}

.button.primary:hover {
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,42,0.9);
}

.button.secondary {
  border-color: rgba(148,163,184,0.5);
  color: var(--text);
  background: rgba(15,23,42,0.9);
  transition: border-color 120ms ease-out, background 120ms ease-out;
}

.button.secondary:hover {
  border-color: rgba(148,163,184,0.8);
  background: rgba(30,41,59,0.9);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 0;
}

.card {
  background: linear-gradient(135deg, #020617, #050815);
  border: 1px solid rgba(31,41,55,0.9);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.7);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out, background 140ms ease-out;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  display: block;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249,250,251,0.9);
}

.card p, .card li { color: var(--muted); font-size: 0.9rem; margin: 0; }

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
  border-color: rgba(34,197,94,0.6);
  background: radial-gradient(circle at top left, rgba(34,197,94,0.16), #020617);
}

.section {
  padding: 16px 0 60px;
  border-top: 1px solid rgba(15,23,42,0.85);
  scroll-margin-top: 120px;
}

.section:first-child {
  border-top: none;
  padding-top: 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.section p {
  color: var(--muted);
  max-width: 680px;
  font-size: 0.94rem;
}

.section p + p {
  margin-top: 1em;
}

/* Prose / long-form content (e.g. privacy policy) */
.prose {
  max-width: 680px;
}

.prose h1 {
  margin-bottom: 0.5em;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5em;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.list li + li {
  margin-top: 6px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.principle {
  background: linear-gradient(135deg, #020617, #050815);
  border: 1px solid rgba(31,41,55,0.9);
  border-radius: 12px;
  padding: 18px 20px 16px;
  transition: border-color 140ms ease-out;
}

.principle-last {
  grid-column: span 2;
}

.principle:hover {
  border-color: rgba(34,197,94,0.35);
}

.principle-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 7px;
}

.principle strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 5px;
}

.principle p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  max-width: none;
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  font-size: 0.78rem;
  color: var(--muted);
  background: #020617;
}

.contact-box {
  background: linear-gradient(135deg, #020617, #050815);
  border: 1px solid rgba(31,41,55,0.9);
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
}

.contact-box a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 120ms;
}

.contact-box a:hover {
  opacity: 0.8;
}

.contact-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}

footer {
  border-top: 1px solid rgba(15,23,42,0.9);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 0.8rem;
  background: #020617;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  margin-left: auto;
}

.nav-toggle:hover { color: var(--text); }

.nav-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Terminal widget */
.terminal-widget {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Menlo', monospace !important;
  font-size: 0.72rem !important;
  color: #c9d1d9;
  padding: 0 !important;
  background: #010409 !important;
  border: 1px solid rgba(40,56,80,0.9) !important;
  overflow: hidden;
}

.t-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 7px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.t-title {
  flex: 1;
  text-align: center;
  color: rgba(148,163,184,0.38);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  font-family: inherit;
}

.t-body {
  padding: 14px 16px 18px;
  height: 175px;
  overflow: hidden;
}

.t-line {
  line-height: 1.75;
  white-space: pre;
  font-family: inherit;
}

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

.t-out {
  color: rgba(156,163,175,0.6);
  padding-left: 14px;
}

.t-out.ok { color: var(--accent); }
.t-out.dim { color: rgba(156,163,175,0.3); }
.t-out.warn { color: #febc2e; }

.t-cursor {
  display: inline-block;
  color: var(--accent);
}

@keyframes t-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.t-cursor-blink {
  animation: t-blink 1s step-start infinite;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-toggle { display: block; }
  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 10px;
  }
  header nav.open { display: flex; }
  header nav a {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
  }
  header nav a:last-child { border-bottom: none; }

  .shell {
    padding: 26px 18px 30px;
    border-radius: 22px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero {
    padding-top: 8px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle-last {
    grid-column: span 1;
  }
}
