@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --bg: #08131a;
  --bg-soft: #10222c;
  --panel: #10222c;
  --ink: #e8f1f5;
  --ink-soft: #b6cad3;
  --line: #2b4654;
  --accent: #ff6b35;
  --accent-2: #1982c4;
  --accent-3: #2ec4b6;
  --danger: #d62828;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #1b3a4b 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, #153140 0%, transparent 40%),
    var(--bg);
  line-height: 1.65;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  color: #f4f7f8;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 19, 26, 0.66), rgba(12, 26, 35, 0.82));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 0 56px;
}

.eyebrow {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  opacity: 0.82;
}

h1,
h2,
h3 {
  font-family: "Chakra Petch", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  margin: 8px 0 16px;
}

.lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
}

.hero__chips {
  margin: 28px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero__chips span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.cta {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(120deg, var(--accent), #ff8a5c);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(10, 21, 28, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.main-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  padding: 12px 0;
}

.main-nav a {
  color: #f0f7fa;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
}

main {
  padding: 34px 0 70px;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.quick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quick-grid article,
.result-grid article,
.zero-grid article {
  background: #16303c;
  border: 1px solid #2f4b59;
  border-radius: 14px;
  padding: 14px;
}

.flowline {
  background: #16303c;
  border: 1px dashed #3c5c6b;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.node {
  background: #1b3744;
  border: 2px solid #3c5f6f;
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
}

.node.sub {
  font-weight: 600;
  font-size: 0.92rem;
}

.node.end {
  border-color: var(--accent);
}

.arrow {
  margin: 6px 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.note {
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.stepper {
  background: #16303c;
  border: 1px solid #2f4b59;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}

.stepper__head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.stepper__head button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--accent-2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

#stepTitle {
  text-align: center;
  margin: 0;
}

#stepBody {
  margin: 12px 0 0;
}

.stepper__dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #9caeb9;
  background: transparent;
}

.dot.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.zero-grid,
.result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  background: #305061;
  color: #e8f1f5;
  cursor: pointer;
}

.tab.is-active {
  background: var(--accent-3);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #16303c;
}

th,
td {
  border: 1px solid #2f4b59;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #1b3744;
}

.root-box {
  margin-top: 12px;
  border: 1px solid #385665;
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  background: #16303c;
  padding: 12px;
}

.card-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-list {
  display: grid;
  gap: 8px;
}

.card-item {
  border: 1px solid #2f4b59;
  border-radius: 10px;
  background: #16303c;
  padding: 10px;
}

.card-item h4 {
  margin: 0 0 6px;
  font-family: "Chakra Petch", sans-serif;
}

.card-item p {
  margin: 0;
  color: #c0d2db;
  font-size: 0.94rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c1e27;
  color: #d8e7ee;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.footer a {
  color: #d8e7ee;
}

@media (max-width: 640px) {
  .main-nav .container {
    justify-content: flex-start;
    padding-inline: 4vw;
  }

  .hero {
    min-height: 76vh;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
