:root {
  --bg: #071018;
  --panel: #0e1b26;
  --panel-2: #122637;
  --text: #edf7ff;
  --muted: #9eb3c4;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4cb3ff;
  --green: #42d392;
  --amber: #ffbf47;
  --red: #ff6b6b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(76, 179, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(66, 211, 146, 0.18), transparent 30rem),
    linear-gradient(180deg, #071018 0%, #091722 46%, #f5f8fb 46%, #f5f8fb 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(7, 16, 24, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #041018;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #d7e8f4;
  font-size: 0.92rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-cta,
.button.primary {
  background: var(--green);
  color: #03120d;
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button.full {
  width: 100%;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 0.8rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  padding: 7rem 5vw 5rem;
}

.hero-grid,
.split,
.oracle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-title p,
.cta p {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.3vw, 4.9rem);
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-size: 1.28rem;
}

.lead {
  max-width: 670px;
  margin: 1.3rem 0 0;
  color: #c4d7e5;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-points span,
.tech-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: #d9eaf4;
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel,
.timeline-card,
.ask-card,
.answer-card,
.tuning-board,
.module-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 38, 55, 0.92), rgba(8, 20, 30, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.hero-panel {
  padding: 1.2rem;
}

.panel-head,
.table-head,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.risk-meter {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
}

.ring {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 87%, rgba(255, 255, 255, 0.1) 87% 100%);
  position: relative;
  text-align: center;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0a1722;
}

.ring strong,
.ring span {
  position: relative;
  z-index: 1;
}

.ring strong {
  font-size: 2.2rem;
}

.ring span {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}

.meter-copy p {
  margin: 0.55rem 0;
  color: #cfe0eb;
  line-height: 1.45;
}

.incident-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.11);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.28rem;
}

.status.hot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.12);
}

.incident-row p {
  margin: 0.3rem 0 0;
  color: #ffc8c8;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.mini-grid span {
  padding: 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.mini-grid b {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.section {
  padding: 5rem 5vw;
}

.modules,
.oracle,
.tuning,
.compliance,
.tech-sales {
  color: #10202d;
  background: #f5f8fb;
}

.section-title {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-title.left {
  margin-left: 0;
  text-align: left;
}

.section-title span,
.section p,
.check-list,
.reg-note {
  color: #5b6e7c;
  line-height: 1.65;
}

.module-grid,
.compliance-grid,
.pricing-angles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.module-grid article,
.compliance-grid article,
.pricing-angles article {
  min-height: 220px;
  padding: 1.2rem;
  border: 1px solid #d9e2e9;
  border-radius: 8px;
  background: var(--white);
}

.module-button {
  min-height: 40px;
  margin-bottom: 1rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 8px;
  background: #e6f6ff;
  color: #075985;
  font-weight: 900;
  cursor: pointer;
}

.module-detail {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 1.2rem;
  color: var(--text);
}

.predictive {
  background: #071018;
}

.predictive .split {
  align-items: center;
}

.check-list {
  padding-left: 1.2rem;
}

.check-list li {
  margin: 0.7rem 0;
}

.timeline-card {
  padding: 1rem;
}

.timeline-row {
  padding: 1rem;
  border-left: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-row + .timeline-row {
  margin-top: 0.8rem;
}

.timeline-row span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-row.good {
  border-color: var(--green);
}

.timeline-row.warn {
  border-color: var(--amber);
}

.timeline-row.hot {
  border-color: var(--red);
}

.ask-card,
.answer-card {
  padding: 1.2rem;
  color: var(--text);
}

.ask-card label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.prompt-chips button,
.tuning-board button {
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.answer-card ol {
  color: #cfe0eb;
}

.tuning-board {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--text);
}

.tuning-board aside {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.tuning-board aside button.active {
  background: var(--blue);
  color: #06101a;
  font-weight: 900;
}

.tuning-main {
  min-width: 0;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.7fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
}

.table-head {
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.table-row {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.table-row p {
  margin: 0;
  color: #cfe0eb;
}

.risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
}

.risk.high {
  background: rgba(255, 107, 107, 0.18);
  color: #ffd1d1;
}

.risk.medium {
  background: rgba(255, 191, 71, 0.18);
  color: #ffe0a3;
}

.table-row button {
  color: #06101a;
  border: 0;
  background: var(--green);
  font-weight: 900;
}

.compliance-grid article,
.pricing-angles article {
  min-height: 190px;
}

.reg-note {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 8px;
  background: #eaf2f7;
  border: 1px solid #d5e1ea;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 900px;
  margin: 0 auto 1.2rem;
}

.tech-grid span {
  color: #10202d;
  background: #ffffff;
  border-color: #d9e2e9;
  font-weight: 900;
}

.cta {
  padding: 5rem 5vw;
  text-align: center;
  color: var(--text);
  background: linear-gradient(135deg, #0a1924, #0f2e2f);
}

.cta h2,
.cta span {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cta span {
  display: block;
  margin-top: 1rem;
  color: #c4d7e5;
  line-height: 1.65;
}

.cta .hero-actions {
  justify-content: center;
}

.footer {
  padding: 1.4rem 5vw;
  color: #b6c8d5;
  background: #050b11;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 5vw;
    background: #071018;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .oracle-grid,
  .module-grid,
  .compliance-grid,
  .pricing-angles,
  .tuning-board {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .risk-meter,
  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

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

  .table-head {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 1rem;
  }

  .section,
  .hero,
  .cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.08;
    text-wrap: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .footer {
    display: grid;
    gap: 0.5rem;
  }
}
