/* Terminal-first theme (refined for a cleaner, more modern landing page) */

:root {
  --bg: #071018;
  --bg2: #0b1420;
  --panel: rgba(10, 18, 28, 0.78);
  --panel-strong: rgba(12, 22, 34, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(120, 240, 138, 0.18);
  --text: #e3ecf5;
  --muted: rgba(227, 236, 245, 0.72);
  --faint: rgba(227, 236, 245, 0.12);
  --accent: #78f08a;
  --accent2: #7aa2f7;
  --danger: #ff5f56;
  --warn: #ffbd2e;
  --ok: #27c93f;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(120, 240, 138, 0.12), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(122, 162, 247, 0.14), transparent 58%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 85%);
  opacity: 0.2;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--accent); }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,0.9);
  transform: translateY(-200%);
  transition: transform 150ms ease;
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 24, 0.72);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}
.brand-mark { color: var(--accent); }
.brand-path { color: var(--muted); }
.brand-prompt { color: var(--accent); }

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.nav-cta {
  border: 1px solid var(--border);
  background: rgba(120, 240, 138, 0.08);
}
.nav-cta:hover {
  border-color: rgba(120, 240, 138, 0.35);
}

.hero {
  padding: 52px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}
.hero-copy {
  padding: 10px 0;
}
.kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 10ch;
}
.page-title {
  max-width: 16ch;
}
.hero-subpage {
  padding-bottom: 10px;
}
.section-head-tight {
  margin-bottom: 0;
}
.cards-three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.inline-actions {
  margin-top: 16px;
}
.section-compact-home {
  padding-top: 26px;
}
.lede,
.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 60ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.stat {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 240, 138, 0.35);
  background: linear-gradient(180deg, rgba(120, 240, 138, 0.18), rgba(120, 240, 138, 0.1));
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 240, 138, 0.55);
  background: linear-gradient(180deg, rgba(120, 240, 138, 0.24), rgba(120, 240, 138, 0.12));
  box-shadow: var(--shadow-soft);
}
.btn:active { transform: translateY(0); }
.btn:focus { outline: 2px solid rgba(120, 240, 138, 0.45); outline-offset: 2px; }

.btn-ghost {
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.micro {
  margin: 16px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.terminal-hero {
  position: relative;
}
.terminal-hero::after {
  content: "";
  position: absolute;
  inset: auto 12% -25% 12%;
  height: 80px;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.28), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warn); }
.dot-green { background: var(--ok); }
.terminal-title {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}
.terminal-body {
  padding: 16px 16px 18px;
  font-size: 13px;
  line-height: 1.7;
}
.line { white-space: pre-wrap; }
.prompt { color: var(--accent); margin-right: 8px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.signal-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 16px;
}
.signal-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signal-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.6;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: rgba(120, 240, 138, 0.65);
  margin-left: 4px;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; opacity: 0.85; }
  .btn,
  .skip-link { transition: none; }
}

.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  margin-bottom: 18px;
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
}
h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cards-compact .card {
  min-height: 100%;
}
.card, .panel {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card p, .panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.card-tag {
  margin: 0 0 10px;
  color: var(--accent2);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.panel-highlight {
  background: linear-gradient(180deg, rgba(120, 240, 138, 0.08), rgba(255,255,255,0.03));
  border-color: var(--border-strong);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-layout {
  align-items: stretch;
}
.list {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}
.list strong { color: var(--text); }

.section-contact {
  padding-bottom: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.contact-address {
  font-size: clamp(18px, 2vw, 22px);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .cards,
  .two-col,
  .contact-grid,
  .signal-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    max-width: none;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1160px, calc(100% - 28px));
  }

  .site-header {
    position: static;
  }

  .nav a {
    padding-inline: 10px;
  }

  .card, .panel, .stat, .signal-card {
    padding: 16px;
  }
}
