:root {
  --navy: #0d131a;
  --blue: #176be0;
  --blue-deep: #0f4fb0;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #e4ebf3;
  --paper: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(13, 19, 26, 0.1);
  --zest: #e36a12;
  --school: #1f6b4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.nav-links a:hover { color: var(--blue); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: white; color: var(--navy); border-color: #c9d6e6; }
.btn-light { background: white; color: var(--navy); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 72%);
  padding: 78px 0 36px;
}
.waves {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  pointer-events: none;
}
.waves path { fill: none; stroke-linecap: round; }
.wave-a, .wave-b, .wave-c { animation: drift 9s ease-in-out infinite; }
.wave-b { animation-delay: -3s; }
.wave-c { animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-28px); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
}
h1 span { color: var(--blue); }
.lede {
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-stack { display: grid; gap: 14px; }
.mini {
  display: block;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mini:hover { transform: translateY(-4px); border-color: #b9d0f5; }
.mini strong { display: block; font-size: 20px; color: var(--navy); }
.mini span { color: var(--muted); }
.pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-zest { background: #fff1e6; color: var(--zest); }
.pill-school { background: #e8f6ee; color: var(--school); }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div { padding: 22px 8px; text-align: center; }
.strip strong { display: block; color: var(--navy); }
.strip span { color: var(--muted); font-size: 14px; }
.strip div + div { border-left: 1px solid var(--line); }

section { padding: 76px 0; }
h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.section-intro {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 18px;
}

.services { background: var(--paper); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card, .product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.card h3, .product h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.card p, .product p { margin: 0; color: var(--muted); }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product { padding: 28px; min-height: 280px; display: flex; flex-direction: column; }
.product p { flex: 1; }
.product .btn { align-self: flex-start; margin-top: 22px; }
.product-zest { background: linear-gradient(180deg, #fff8f3 0%, #fff 48%); }
.product-school { background: linear-gradient(180deg, #f3faf6 0%, #fff 48%); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  padding-top: 8px;
  border-top: 2px solid var(--blue);
}
.step span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.panel {
  background: var(--navy);
  color: white;
  border-radius: 24px;
  padding: 32px;
}
.panel h2 { color: white; }
.panel p { color: #d5e2f2; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list a { color: white; font-weight: 700; text-decoration: none; }
.contact-list li + li { margin-top: 14px; }
.contact-list span { display: block; color: #9eb0c6; font-size: 13px; font-weight: 600; }

form {
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
label { font-weight: 700; font-size: 14px; color: var(--navy); }
input, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
button.btn { border: 0; cursor: pointer; font: inherit; }

.page-hero { padding: 56px 0 8px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 720px; }

.footer {
  background: var(--navy);
  color: #d5e2f2;
  padding: 36px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer a { color: white; text-decoration: none; font-weight: 700; }
.footer small { color: #9eb0c6; }
.footer nav { display: flex; gap: 18px; }

.reveal {
  animation: rise 0.7s ease both;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .cards, .products, .steps, .strip {
    grid-template-columns: 1fr;
  }
  .strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-a, .wave-b, .wave-c, .reveal { animation: none; }
  .mini { transition: none; }
}
