:root {
  --bg-dark: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.96);
  --border-soft: rgba(51, 65, 85, 0.9);
  --text-light: #e5e7eb;
  --accent-blue: #4f46e5;
  --accent-green: #22c55e;
  --accent-mint: #5eead4;
  --accent-purple: #818cf8;
  --shadow-deep: rgba(0, 0, 0, 0.7);
}

body,
body.hybrid {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

.logo {
  width: 28px;
  height: 28px;
}

.main-nav a {
  color: rgba(229, 231, 235, 0.85);
  text-decoration: none;
  margin-left: 1.3rem;
  font-size: 0.9rem;
  transition: 0.15s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

/* divider */
.divider {
  width: 100%;
  height: 2px;
  margin: 4rem 0;
  background: linear-gradient(
    90deg,
    rgba(94, 234, 212, 0) 0%,
    rgba(94, 234, 212, 0.4) 50%,
    rgba(94, 234, 212, 0) 100%
  );
  opacity: 0.55;
}

/* hero */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.2), transparent 65%);
  pointer-events: none;
  animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0.8rem 0 1rem;
  line-height: 1.06;
}

.hero-sub {
  max-width: 32rem;
  opacity: 0.9;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-phase {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.phase-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
}

/* buttons */
.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: #ffffff;
  box-shadow: 0 18px 45px var(--shadow-deep);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px var(--shadow-deep);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-light);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* console */
.hero-console {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.console-header,
.console-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.console-header {
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

.console-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.8);
}

.console-dot,
.console-status-dot {
  border-radius: 999px;
}

.console-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.9);
}

.console-status-dot {
  width: 0.4rem;
  height: 0.4rem;
  background: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

.console-body {
  padding: 1.2rem;
  min-height: 180px;
  background: radial-gradient(circle at bottom right, rgba(8, 47, 73, 0.9), rgba(15, 23, 42, 1));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* panels */
.section {
  padding: 0;
}

.panel {
  background: var(--bg-panel);
  border-radius: 1.4rem;
  border: 1px solid var(--border-soft);
  padding: 2.75rem 2.2rem;
  box-shadow: 0 22px 60px var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

.panel--neon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(94, 234, 212, 0),
    rgba(94, 234, 212, 0.9),
    rgba(129, 140, 248, 0.9),
    rgba(94, 234, 212, 0)
  );
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.8);
}

/* section headers */
.section-header {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.section-header h2 {
  margin: 0.6rem 0 0.4rem;
  font-family: "Manrope", system-ui, sans-serif;
}

.section-sub {
  opacity: 0.9;
}

/* system grid */
.system-grid {
  display: grid;
  gap: 1.75rem;
}

.system-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.1rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 1.4rem 1.3rem;
}

.system-card--wide {
  grid-column: 1 / -1;
}

.system-card h3 {
  margin-top: 0;
}

.metric-label {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  font-size: 0.9rem;
}

.card-note,
.hrv-note,
.system-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.hrv-note {
  font-style: italic;
}

.system-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* devlog */
.devlog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.devlog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(55, 65, 81, 0.9);
}

.devlog-item {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.25rem;
  opacity: 0.7;
  transition: 0.25s ease;
}

.devlog-item::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.devlog-item--active {
  opacity: 1;
  transform: translateX(3px);
}

.devlog-item--active::before {
  background: var(--accent-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
}

.devlog-date {
  font-size: 0.75rem;
  opacity: 0.7;
}

.devlog-aside h3 {
  margin-top: 0;
}

.devlog-callout {
  margin-top: 1rem;
  border-left: 3px solid var(--accent-mint);
  padding-left: 0.75rem;
  font-size: 0.9rem;
}

/* story */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* access form */
.access-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.form-row input,
.form-row select {
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.6rem 0.8rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row select:focus {
  outline: 1px solid rgba(94, 234, 212, 0.8);
  border-color: rgba(94, 234, 212, 0.95);
}

.form-footnote {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

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

.footer-brand {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-weight: 500;
}

.logo-small {
  width: 20px;
  height: 20px;
}

.footer-note {
  max-width: 24rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-console {
    margin-top: 2rem;
  }

  .system-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .devlog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel {
    padding: 2.2rem 1.5rem;
  }

  .main-nav a {
    margin-left: 0.9rem;
  }
}
