:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #64748b;
  --line: #d8e2ee;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --teal: #087f7a;
  --teal-dark: #075e59;
  --gold: #d89b22;
  --coral: #d95d45;
  --navy: #13263b;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mist);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 226, 238, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.mobile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 14px;
}

.mobile-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  box-shadow: 0 12px 26px rgba(8, 127, 122, 0.22);
}

.btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn.secondary:hover {
  background: #f8fbfd;
  box-shadow: none;
}

.btn.gold {
  background: var(--gold);
}

.btn.gold:hover {
  background: #bf8518;
}

.btn.full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.hero {
  min-height: calc(88svh - 66px);
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(9, 28, 45, 0.3), rgba(9, 28, 45, 0.9)),
    var(--hero-image, url("https://akademi.cm/images/student-bg.jpg"));
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22vh;
  background: linear-gradient(180deg, rgba(244, 248, 251, 0), var(--mist));
  z-index: -1;
}

.hero-content {
  padding: 96px 0 82px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b8fff1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 740px;
  font-size: clamp(2.45rem, 12vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.9rem, 8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
}

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

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

.feature-card,
.school-card,
.form-panel,
.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(16, 32, 51, 0.06);
}

.feature-card {
  padding: 22px;
}

.feature-card .icon,
.step-index {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: #e8f7f3;
  color: var(--teal-dark);
  font-weight: 900;
}

.feature-card:nth-child(2) .icon {
  background: #fff5df;
  color: #a86f00;
}

.feature-card:nth-child(3) .icon {
  background: #ffece6;
  color: var(--coral);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.feature-card p,
.school-card p,
.status-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.schools-strip {
  display: grid;
  gap: 12px;
}

.school-card {
  padding: 18px;
}

.school-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.app-band {
  background: var(--navy);
  color: #fff;
}

.app-layout {
  display: grid;
  gap: 26px;
  align-items: center;
}

.app-layout h2 {
  color: #fff;
}

.app-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.phone-visual {
  width: min(280px, 80vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 10px solid #0b1724;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(8, 127, 122, 0.9), rgba(216, 155, 34, 0.8)),
    var(--phone-image, url("https://akademi.cm/images/pwa-icon-512.png"));
  background-size: cover;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.phone-visual img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.page-hero {
  padding: 40px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 9vw, 4.6rem);
}

.page-hero p {
  max-width: 660px;
  color: var(--muted);
}

.workflow {
  padding: 28px 0 70px;
}

.stepper {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.step span:first-child {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8f7f3;
  color: var(--teal-dark);
}

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

.form-panel {
  padding: 18px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.3rem;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 11px 10px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  border-color: rgba(8, 127, 122, 0.35);
  background: #e8f7f3;
  color: var(--teal-dark);
}

.tab-panel[hidden] {
  display: none;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.field {
  margin-bottom: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 127, 122, 0.65);
  box-shadow: 0 0 0 4px rgba(8, 127, 122, 0.1);
}

.compact-grid {
  display: grid;
  gap: 0;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.notice {
  display: none;
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice.show {
  display: block;
}

.notice.success {
  border-color: rgba(8, 127, 122, 0.3);
  background: #e8f7f3;
  color: var(--teal-dark);
}

.notice.error {
  border-color: rgba(217, 93, 69, 0.3);
  background: #fff0ec;
  color: #9f3e2c;
}

.notice.info {
  border-color: rgba(216, 155, 34, 0.32);
  background: #fff8e7;
  color: #855f14;
}

.student-badge {
  display: none;
  margin-bottom: 16px;
  border: 1px solid rgba(8, 127, 122, 0.28);
  border-radius: 8px;
  background: #e8f7f3;
  padding: 13px;
  color: var(--teal-dark);
  font-weight: 800;
}

.student-badge.show {
  display: block;
}

.muted-link {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.locked {
  opacity: 0.6;
}

.locked select,
.locked button {
  pointer-events: none;
}

.final-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.status-card {
  width: min(640px, calc(100% - 32px));
  padding: 24px;
}

.status-card h1 {
  color: var(--navy);
  font-size: clamp(2rem, 9vw, 4.4rem);
}

.status-card .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.footer {
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .mobile-nav {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .hero-actions,
  .action-row {
    flex-direction: row;
    align-items: center;
  }

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

  .grid.two,
  .form-grid,
  .app-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .form-panel {
    padding: 24px;
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
}
