@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #eef5fb;
  --bg-strong: #d8e6f5;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --ink: #0b1f33;
  --muted: #516b86;
  --line: rgba(11, 31, 51, 0.1);
  --line-strong: rgba(30, 100, 200, 0.18);
  --primary: #1e64c8;
  --primary-deep: #114890;
  --accent: #22b8a2;
  --accent-soft: #d9f5f1;
  --shadow: 0 24px 80px rgba(16, 45, 79, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(34, 184, 162, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(30, 100, 200, 0.16), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 52%, #e8f0f7 100%);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 100, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 100, 200, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.8;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.topbar,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  background: rgba(248, 252, 255, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(16, 45, 79, 0.08);
}

.topbar.is-scrolled {
  box-shadow: 0 16px 48px rgba(16, 45, 79, 0.12);
}

.brand {
  min-width: 0;
}

.brand img {
  width: 15rem;
  height: auto;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

.section {
  padding: 4.5rem 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.94;
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  max-width: 16ch;
}

.hero-dek,
.section-heading p,
.sidecopy,
.faq-card p,
.process-card p,
.footer p,
.microcopy,
.selection-summary,
.availability-note {
  color: var(--muted);
}

.hero-dek {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.selector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 16px 40px rgba(17, 72, 144, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.disclaimer-pill,
.result-pill,
.stat-card,
.process-card,
.faq-card,
.selector-card,
.selector-sidecard,
.results-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.disclaimer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--ink);
}

.dot,
.signal-point {
  border-radius: 50%;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem rgba(34, 184, 162, 0.16);
}

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

.stat-card {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
}

.stat-card dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat-card dd {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 31rem);
}

.visual-frame {
  position: relative;
  min-height: 35rem;
  padding: 2rem;
  border-radius: 36px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(220, 237, 250, 0.62)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 32px 80px rgba(17, 72, 144, 0.16);
  overflow: hidden;
}

.visual-grid {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(30, 100, 200, 0.09);
  border-radius: 28px;
  background-image:
    linear-gradient(rgba(30, 100, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 100, 200, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.orbit,
.route-line {
  position: absolute;
  border-radius: 999px;
}

.orbit {
  border: 1px solid rgba(17, 72, 144, 0.16);
}

.orbit-primary {
  inset: 4rem 4rem auto auto;
  width: 18rem;
  height: 18rem;
}

.orbit-secondary {
  left: 2rem;
  top: 8rem;
  width: 14rem;
  height: 14rem;
}

.route-line {
  inset: auto 3rem 7rem auto;
  width: 13rem;
  height: 13rem;
  border-top: 3px solid transparent;
  border-right: 3px dashed rgba(34, 184, 162, 0.5);
  transform: rotate(18deg);
}

.signal-point {
  position: absolute;
  width: 1rem;
  height: 1rem;
}

.signal-start {
  left: 6rem;
  top: 5.6rem;
  background: var(--primary);
  box-shadow: 0 0 0 0.5rem rgba(30, 100, 200, 0.12);
}

.signal-end {
  right: 5rem;
  bottom: 6rem;
  background: var(--accent);
  box-shadow: 0 0 0 0.5rem rgba(34, 184, 162, 0.12);
}

.visual-card {
  position: absolute;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(18, 58, 101, 0.12);
}

.visual-card span,
.process-index,
.result-pill span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.visual-card strong,
.result-pill strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.card-main {
  left: 2.1rem;
  bottom: 2.1rem;
}

.card-sub {
  right: 2.1rem;
  top: 2.4rem;
}

.section-heading {
  max-width: 46rem;
}

.section-heading p {
  max-width: 60ch;
  margin: 1rem 0 0;
}

.selector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
  align-items: start;
}

.selector-card,
.selector-sidecard,
.results-panel {
  border-radius: var(--radius-xl);
}

.selector-card {
  padding: 1.4rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.field select {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.field select:focus-visible {
  outline: 2px solid rgba(30, 100, 200, 0.32);
  outline-offset: 2px;
}

.field select:disabled {
  color: rgba(81, 107, 134, 0.74);
  background: rgba(236, 243, 248, 0.92);
}

.selection-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.selection-summary,
.availability-note,
.microcopy {
  margin: 0;
}

.selector-sidecard {
  padding: 1.4rem;
}

.selector-sidecard h3 {
  margin-top: 0.6rem;
  font-size: 1.8rem;
  line-height: 1.05;
}

.result-pill {
  display: inline-flex;
  flex-direction: column;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
}

.results-panel {
  margin-top: 1.7rem;
  padding: 1.2rem;
}

.mapel-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}

.mapel-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.96));
  border: 1px solid var(--line-strong);
  min-height: 9rem;
}

.mapel-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.mapel-card span {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0d675d;
  font-size: 0.82rem;
}

.empty-state {
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: rgba(30, 100, 200, 0.08);
  border: 1px solid rgba(30, 100, 200, 0.16);
  color: var(--primary-deep);
}

.process-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

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

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

.process-card,
.faq-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.process-card h3,
.faq-card h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.process-card p,
.faq-card p {
  margin-bottom: 0;
}

.footer {
  padding: 3rem 0 4rem;
}

.footer p {
  margin: 0.4rem 0;
}

.footer a {
  color: var(--primary-deep);
}

@media (max-width: 980px) {
  .hero,
  .selector-layout,
  .field-grid,
  .mapel-list,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .visual-frame {
    min-height: 28rem;
  }

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

@media (max-width: 720px) {
  .topbar {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .brand img {
    width: 13rem;
  }

  .section {
    padding-top: 3.4rem;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .selector-card,
  .selector-sidecard,
  .results-panel,
  .process-card,
  .faq-card {
    padding: 1.1rem;
  }

  .visual-frame {
    min-height: 24rem;
    padding: 1.25rem;
  }

  .orbit-primary {
    width: 13rem;
    height: 13rem;
  }

  .orbit-secondary {
    width: 10rem;
    height: 10rem;
  }
}
