:root {
  --bg: #0a1635;
  --bg-soft: #11214b;
  --panel: #ffffff;
  --ink: #0f1f43;
  --muted: #52658e;
  --line: #d6dded;
  --primary: #1f5fff;
  --primary-deep: #10399f;
  --accent: #ff8b2d;
  --student: #2f86ff;
  --parent: #1d9f66;
  --school: #d27a1b;
  --radius: 18px;
  --shadow: 0 22px 50px rgba(7, 18, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 139, 45, 0.24), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(31, 95, 255, 0.28), transparent 30%),
    linear-gradient(145deg, var(--bg), #081228 55%, #0b1b3d 100%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 12%, black 30%, transparent 84%);
}

.topbar {
  width: min(1180px, 94vw);
  margin: 16px auto 0;
  border: 1px solid rgba(214, 221, 237, 0.28);
  border-radius: 999px;
  background: rgba(9, 23, 53, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(5, 13, 33, 0.36);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  background: #000;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #e8efff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page {
  width: min(1180px, 94vw);
  margin: 14px auto 24px;
}

.section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(150deg, rgba(245, 249, 255, 0.98), rgba(236, 243, 255, 0.96));
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 14px;
  animation: rise 0.5s ease;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(125deg, var(--primary), var(--primary-deep));
}

.btn-outline {
  color: var(--primary-deep);
  background: #ffffff;
  border: 1px solid #bfd0f7;
}

.install-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #0e2b69, #081e4f);
  color: #eef4ff;
  padding: 16px;
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
}

.snapshot-grid {
  display: grid;
  gap: 10px;
}

.snapshot-grid div {
  border: 1px solid rgba(200, 221, 255, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.snapshot-grid strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.snapshot-grid span {
  font-size: 13px;
  color: #cfdcff;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.about-grid,
.feature-grid,
.download-grid,
.area-grid {
  display: grid;
  gap: 10px;
}

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

.about-card,
.feature-card,
.download-card,
.area-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.about-card h3,
.feature-card h3,
.download-card h3,
.area-card h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
}

.about-card p,
.feature-card p,
.download-card p,
.area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.area-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 24, 55, 0.12);
}

.area-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
}

.area-card.student::after {
  background: var(--student);
}

.area-card.parent::after {
  background: var(--parent);
}

.area-card.school::after {
  background: var(--school);
}

.area-card.teacher::after {
  background: #8e63e8;
}

.area-card small {
  display: block;
  margin-top: 8px;
  color: #415685;
  font-size: 12px;
  font-weight: 700;
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.chip.student {
  background: rgba(47, 134, 255, 0.14);
  color: #0d4eb5;
}

.chip.parent {
  background: rgba(29, 159, 102, 0.14);
  color: #146941;
}

.chip.school {
  background: rgba(210, 122, 27, 0.16);
  color: #9a4f06;
}

.chip.teacher {
  background: rgba(142, 99, 232, 0.17);
  color: #5a2bb6;
}

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

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

.download-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  border-color: #9fb5e5;
  transform: translateY(-2px);
}

.install-strip {
  margin-top: 12px;
  border: 1px dashed #aabce4;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.install-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-note {
  width: min(1180px, 94vw);
  margin: 0 auto 22px;
  padding: 10px 12px;
  color: #d4e1ff;
  border: 1px solid rgba(207, 223, 255, 0.24);
  border-radius: 12px;
  background: rgba(8, 21, 51, 0.62);
  text-align: center;
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .feature-grid,
  .download-grid,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 16px;
    padding: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    height: 42px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .page,
  .footer-note {
    width: min(1180px, 96vw);
  }

  .section {
    padding: 16px;
  }

  .hero,
  .about-grid,
  .feature-grid,
  .download-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }
}

.billing-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 10px;
}

.signup-card,
.plans-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.signup-card h3,
.plans-card h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
}

.signup-card p,
.plan-copy,
.helper-note {
  margin: 0;
  color: var(--muted);
}

.signup-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.signup-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.signup-form input,
.signup-form select {
  width: 100%;
  border: 1px solid #c9d6ea;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: 2px solid #c5d7ff;
  border-color: #7ca0ea;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  border: 1px solid #d5def0;
  border-radius: 12px;
  padding: 12px;
  background: #f9fbff;
}

.plan-card-school {
  background: #f4fbf8;
  border-color: #cce6d8;
}

.plan-tag {
  margin: 0 0 6px;
  display: inline-block;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1f4da7;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card-school .plan-tag {
  background: #dff4e8;
  color: #1c6d49;
}

.plan-features {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #2a456f;
  font-size: 12.5px;
}

.plan-features li {
  line-height: 1.35;
}

.price-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.price-list div {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d6deee;
  border-radius: 10px;
  background: #fff;
}

.price-list strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
}

.billing-foot {
  margin-top: 10px;
  border: 1px dashed #b9c8e7;
  border-radius: 12px;
  padding: 10px;
}

.billing-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.status-info {
  color: #355480;
}

.status-ok {
  color: #1d6d4a;
}

.status-warn {
  color: #8a5a16;
}

.status-error {
  color: #9d2a2a;
}

.helper-note {
  margin-top: 8px;
  font-size: 12px;
}

.btn-disabled {
  background: #b8c4dc;
  color: #2b3f64;
  border: 1px solid #a8b4cc;
}

.download-card small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #7b3f18;
}

a.is-locked {
  cursor: not-allowed;
}

.download-card.is-locked,
.area-card.is-locked {
  border-style: dashed;
  opacity: 0.88;
}

@media (max-width: 980px) {
  .billing-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.social-signup-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-btn {
  font-weight: 700;
}

.social-btn.google {
  border-color: #c8d6ff;
  color: #17439b;
  background: #f5f8ff;
}

.social-btn.apple {
  border-color: #ced3db;
  color: #1f2632;
  background: #f4f5f7;
}

.social-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .social-signup-row {
    grid-template-columns: 1fr;
  }
}

.profile-corner {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
}

.profile-menu-btn {
  border: 1px solid rgba(214, 221, 237, 0.45);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  color: #eaf1ff;
  background: rgba(9, 23, 53, 0.86);
  box-shadow: 0 8px 18px rgba(5, 13, 33, 0.35);
  cursor: pointer;
}

.profile-menu {
  margin-top: 8px;
  width: min(350px, 92vw);
  border: 1px solid #ccd8ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(6, 17, 42, 0.24);
  padding: 12px;
}

.profile-menu h3 {
  margin: 0 0 10px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
}

.profile-menu-grid {
  display: grid;
  gap: 6px;
}

.profile-menu-grid p {
  margin: 0;
  color: #2c446e;
  font-size: 13px;
}

.profile-menu-grid strong {
  color: #173564;
}

.profile-menu-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 980px) {
  .profile-corner {
    top: 10px;
    left: 10px;
  }

  .profile-menu-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
