:root {
  --bg: #07111f;
  --bg-alt: #0c1830;
  --bg-grid: rgba(255, 255, 255, 0.04);
  --surface: rgba(14, 28, 48, 0.9);
  --surface-alt: rgba(11, 21, 38, 0.96);
  --surface-soft: #f3f8ff;
  --surface-white: #ffffff;
  --text: #eef6ff;
  --text-dark: #0a1526;
  --muted: #9fb3cf;
  --muted-dark: #50647f;
  --line: rgba(132, 183, 255, 0.16);
  --line-dark: rgba(17, 40, 69, 0.08);
  --accent: #22d3ee;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --success: #8bffcf;
  --glow: 0 28px 80px rgba(0, 8, 20, 0.44);
  --shadow-light: 0 22px 60px rgba(9, 17, 30, 0.08);
  --max-width: 1180px;
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.12), transparent 18%),
    linear-gradient(180deg, #06101d 0%, #0b1730 42%, #08111f 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell,
.section-inner,
.footer-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(167, 197, 232, 0.08);
  background: rgba(5, 13, 24, 0.72);
  backdrop-filter: blur(18px);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.92rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--text-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-layout,
.two-up {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.6rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 800;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  margin-top: 1.4rem;
  max-width: 44rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(180deg, rgba(14, 28, 48, 0.92), rgba(11, 21, 38, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--glow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.34), transparent 68%);
}

.stat-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-row {
  display: grid;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-row strong {
  color: var(--text);
  font-size: 1.25rem;
}

.credibility {
  padding-bottom: 1rem;
}

.credibility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.credibility-row > div {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.credibility-row strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.section {
  padding: 2rem 0 2.8rem;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.section-heading p {
  max-width: 46rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(10, 23, 40, 0.82), rgba(10, 17, 31, 0.94));
  box-shadow: var(--glow);
}

.program-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--accent);
}

.light-section {
  color: var(--text-dark);
}

.light-section .section-heading p,
.light-section p,
.light-section li {
  color: var(--muted-dark);
}

.light-section .card {
  background: var(--surface-white);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-light);
}

.light-band {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(255, 255, 255, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
}

.faq-item button[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding-top: 1rem;
}

.faq-item button[aria-expanded="true"] + .faq-answer {
  display: block;
}

.page-main {
  padding-bottom: 3rem;
}

.page-hero {
  padding: 4.2rem 0 1.3rem;
}

.narrow {
  max-width: 760px;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.service-block,
.about-essay,
.contact-form,
.contact-side {
  display: grid;
  gap: 1rem;
}

.service-block ul,
.format-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.contact-side a {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-layout p {
  max-width: 28rem;
}

.footer-nav {
  display: grid;
  gap: 0.7rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(10, 18, 31, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--glow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-layout,
  .two-up,
  .grid-3,
  .credibility-row,
  .footer-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 3.4rem;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .shell,
  .section-inner,
  .footer-inner {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .card,
  .section-panel {
    padding: 1.35rem;
  }
}
