:root {
  --ink: #17202a;
  --muted: #5e6875;
  --line: #dde4ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --brand: #0f766e;
  --brand-dark: #114e48;
  --accent: #d97706;
  --blue: #2563eb;
  --rose: #be3455;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--brand);
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 64px);
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 32, 45, 0.86), rgba(9, 32, 45, 0.45), rgba(9, 32, 45, 0.22)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  color: #fde68a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 12px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.16);
}

.btn.primary {
  color: white;
  background: var(--brand);
}

.btn.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.section.alt {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  min-width: 0;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.05);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.step {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.photo-panel {
  min-height: 420px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=82") center / cover;
  box-shadow: var(--shadow);
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 8px;
  font-weight: 900;
  background: var(--blue);
}

.app-card.parent .app-icon {
  background: var(--rose);
}

.app-card.tutor .app-icon {
  background: var(--brand);
}

.app-card.manager .app-icon {
  background: var(--accent);
}

.meta {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.meta strong {
  color: var(--ink);
}

.status {
  min-height: 24px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
}

.footer {
  padding: 30px clamp(18px, 5vw, 64px);
  color: #d5dee8;
  background: #101820;
}

.footer p,
.footer a {
  color: #d5dee8;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .grid.three,
  .grid.four,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .workflow {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 20px;
    width: 100%;
    max-width: 100vw;
  }

  .nav {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 54px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav {
    flex: 0 0 auto;
    display: block;
    position: relative;
    margin-left: auto;
  }

  .mobile-nav summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .hamburger-lines,
  .hamburger-lines span {
    display: block;
  }

  .hamburger-lines {
    width: 20px;
  }

  .hamburger-lines span {
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    border-radius: 2px;
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    width: min(78vw, 270px);
    padding: 8px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .mobile-nav-panel a {
    padding: 12px 13px;
    color: var(--muted);
    border-radius: 8px;
    font-weight: 700;
  }

  .mobile-nav-panel a:hover {
    color: var(--brand);
    background: var(--soft);
  }

  .hero {
    min-height: auto;
    padding: 34px 20px 42px;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .hero .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .grid.three,
  .grid.four,
  .split {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}
