:root {
  --bg: #f3f7f5;
  --ink: #0f1e28;
  --muted: #536372;
  --line: #d5e2e5;
  --panel: #ffffff;
  --brand: #006c67;
  --brand-strong: #005651;
  --accent: #df8c24;
  --ok: #1e8c4b;
  --warn: #a45d00;
  --danger: #a23438;
  --radius: 18px;
  --shadow: 0 18px 36px rgba(7, 42, 54, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #d9efea 0%, transparent 30%),
    radial-gradient(circle at 95% 10%, #ffe2bd 0%, transparent 24%),
    linear-gradient(180deg, #f6faf8 0%, var(--bg) 100%);
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #eaf2f4;
  border: 1px solid #d5e3e9;
  border-radius: 6px;
  padding: 0.08rem 0.34rem;
  color: #1f4255;
}

.site-shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 249, 247, 0.9);
  border-bottom: 1px solid rgba(0, 88, 84, 0.12);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, #11aaa2 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.brand-name {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

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

.nav a {
  font-size: 0.89rem;
  color: #123546;
  padding: 0.38rem 0.6rem;
  border-radius: 10px;
}

.nav a:hover {
  text-decoration: none;
  background: rgba(0, 108, 103, 0.08);
}

.hero {
  padding: 4.6rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #285164;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.28rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 17ch;
}

.hero-subtitle {
  margin: 1.05rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.56;
  max-width: 66ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.cta-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cta-inline:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cta-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand) 0%, #00847d 100%);
  box-shadow: 0 10px 20px rgba(0, 108, 103, 0.28);
}

.cta-secondary {
  color: var(--brand);
  background: #ffffff;
  border: 1px solid rgba(0, 108, 103, 0.25);
}

.hero-stamp {
  margin-top: 0.95rem;
  font-size: 0.84rem;
  color: #375869;
  word-break: break-word;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-board {
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.status-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(0, 108, 103, 0.08), rgba(223, 140, 36, 0.08));
}

.status-board > * {
  position: relative;
  z-index: 1;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.status-title {
  margin: 0;
  color: #22485a;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-live-dot {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0a4e26;
  background: #d5f3de;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.kpi-card {
  margin: 0;
  border: 1px solid #e2edf0;
  border-radius: 12px;
  padding: 0.55rem 0.62rem;
  background: #fcfefe;
}

.kpi-label {
  margin: 0;
  color: #436072;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kpi-value {
  margin: 0.28rem 0 0;
  color: #112f41;
  font-size: 1.18rem;
  font-weight: 700;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid #e2edf0;
  border-radius: 12px;
  padding: 0.56rem 0.64rem;
  background: #ffffff;
}

.status-label {
  font-size: 0.84rem;
  color: #27465a;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-ok {
  color: #11592b;
  background: #daf4e3;
}

.pill-warn {
  color: #794100;
  background: #ffe7c8;
}

.pill-muted {
  color: #3a4f5e;
  background: #e6edf2;
}

.section {
  padding: 1.35rem 0 1.9rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.36rem, 2.7vw, 2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0.62rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 74ch;
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.feature {
  padding: 1rem;
}

.feature-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: #2f5768;
  text-transform: uppercase;
  font-weight: 700;
}

.feature h3 {
  margin: 0.36rem 0 0;
  font-size: 1rem;
}

.feature p {
  margin: 0.56rem 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.pipeline-panel {
  margin-top: 1.15rem;
  padding: 1rem;
}

.pipeline-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.pipeline-rail span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d7e5ea;
  padding: 0.36rem 0.45rem;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: #33596d;
  text-transform: uppercase;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.preset-btn {
  border: 1px solid #cde0e6;
  background: #f8fcfd;
  color: #224658;
  border-radius: 999px;
  padding: 0.35rem 0.68rem;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-btn:hover {
  background: #eef7fa;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.toggle-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.74rem;
  border: 1px solid #dce8ec;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d2dde3;
  position: relative;
  flex-shrink: 0;
  transition: background 140ms ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 140ms ease;
}

.toggle-card input:checked + .toggle-ui {
  background: #0f9e88;
}

.toggle-card input:checked + .toggle-ui::after {
  transform: translateX(16px);
}

.toggle-copy {
  display: grid;
  gap: 0.2rem;
}

.toggle-copy strong {
  font-size: 0.9rem;
  color: #13364a;
}

.toggle-copy small {
  font-size: 0.79rem;
  color: #526778;
  line-height: 1.4;
}

.pipeline-summary {
  margin-top: 0.8rem;
  border-top: 1px solid #e2ecef;
  padding-top: 0.7rem;
  font-size: 0.86rem;
  color: #23495d;
  font-weight: 600;
}

.pipeline-estimate {
  margin-top: 0.4rem;
  font-size: 0.79rem;
  color: #4a6475;
}

.live-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.live-card {
  padding: 0.9rem;
}

.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.live-head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.mini-badge {
  border-radius: 999px;
  border: 1px solid #d2e4ea;
  background: #f3fafc;
  color: #335568;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-action {
  border: 1px solid #d3e2e8;
  background: #f7fcfd;
  color: #244d60;
  border-radius: 9px;
  padding: 0.3rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-action:hover {
  background: #edf7fa;
}

.muted-copy {
  margin: 0;
  color: #566a79;
  font-size: 0.81rem;
  line-height: 1.46;
}

.readiness-ring-wrap {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.readiness-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#12a587 0deg, #dce9ee 0deg 360deg);
  position: relative;
  flex-shrink: 0;
}

.readiness-ring::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
}

.readiness-ring span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #16384c;
}

.readiness-meter {
  margin-top: 0.72rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5eff3;
  overflow: hidden;
}

.readiness-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #11ab88 0%, #33c4a4 100%);
  transition: width 260ms ease;
}

.check-list {
  list-style: none;
  margin: 0.72rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #dce7ec;
  border-radius: 10px;
  background: #fbfefe;
  padding: 0.44rem 0.5rem;
}

.check-label {
  color: #274a5f;
  font-size: 0.78rem;
}

.check-state {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.19rem 0.46rem;
}

.check-state.ok {
  color: #135f2f;
  background: #daf4e4;
}

.check-state.warn {
  color: #7a4300;
  background: #ffe8ca;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.44rem;
}

.timeline-item {
  border: 1px solid #dce8ed;
  border-radius: 10px;
  padding: 0.48rem 0.56rem;
  background: #fbfefe;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.timeline-title {
  margin: 0;
  font-size: 0.79rem;
  color: #1f4459;
  font-weight: 600;
}

.timeline-meta {
  margin: 0.26rem 0 0;
  font-size: 0.74rem;
  color: #577082;
}

.type-chip {
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.type-queued {
  color: #0a4f2f;
  background: #d9f4e6;
}

.type-recommended {
  color: #704101;
  background: #ffe9cc;
}

.type-fallback {
  color: #415769;
  background: #e5edf2;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #dce8ed;
  border-radius: 12px;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 450px;
}

.account-table th,
.account-table td {
  padding: 0.48rem 0.54rem;
  border-bottom: 1px solid #e4edf1;
  text-align: left;
  font-size: 0.76rem;
}

.account-table th {
  color: #426173;
  background: #f7fcfd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.account-table td {
  color: #1f4358;
}

.status-chip {
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-active {
  color: #0b5b2d;
  background: #d8f2e3;
}

.status-paused,
.status-cooldown {
  color: #6f4200;
  background: #ffe8cb;
}

.status-needs_verification,
.status-error {
  color: #752328;
  background: #f8d9dd;
}

.status-unknown {
  color: #42596a;
  background: #e5edf3;
}

.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.alert-item {
  border: 1px solid #dce8ed;
  border-radius: 10px;
  padding: 0.5rem 0.56rem;
  background: #fbfefe;
  font-size: 0.79rem;
  color: #294d61;
}

.alert-item.warn {
  border-color: #f0d2b0;
  background: #fff8ed;
  color: #6f4200;
}

.alert-item.error {
  border-color: #ebc4c9;
  background: #fff4f5;
  color: #7a272c;
}

.stream-panel {
  margin-top: 1.12rem;
  padding: 0.9rem;
}

.event-feed {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.event-item {
  border: 1px solid #dce8ed;
  border-radius: 10px;
  background: #fbfefe;
  padding: 0.5rem 0.56rem;
}

.event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.event-type {
  margin: 0;
  font-size: 0.75rem;
  color: #22485c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-time {
  margin: 0;
  font-size: 0.72rem;
  color: #567081;
}

.event-body {
  margin: 0.32rem 0 0;
  font-size: 0.77rem;
  color: #3e5a6e;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.control-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.control-card {
  padding: 0.95rem;
}

.control-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.control-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.faq-list {
  margin-top: 1.12rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  padding: 0.75rem 0.95rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #14384d;
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: #4b6272;
  font-size: 0.9rem;
  line-height: 1.56;
}

.final-cta {
  padding-top: 0.7rem;
}

.cta-panel {
  padding: 1rem;
}

.cta-panel p {
  margin: 0.6rem 0 0.9rem;
  color: #4d6273;
  line-height: 1.58;
}

.site-footer {
  margin: 2rem 0 2.7rem;
  padding: 1rem 0;
  border-top: 1px solid #d8e3e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #426074;
  font-size: 0.87rem;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 540ms ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 120ms;
}

.fade-up.delay-2 {
  animation-delay: 220ms;
}

.fade-up.delay-3 {
  animation-delay: 320ms;
}

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

.legal-wrap {
  padding: 2.8rem 0 2rem;
}

.legal-card {
  padding: 1.3rem 1.3rem 1.5rem;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.24rem);
}

.legal-card h2 {
  margin: 1.12rem 0 0.34rem;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: #2b4558;
  line-height: 1.66;
}

.legal-card ul {
  margin: 0.32rem 0 0;
  padding-left: 1.15rem;
}

@media (max-width: 1020px) {
  .hero-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .pipeline-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-grid,
  .feature-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.3rem;
  }
}
