:root {
  --primary: #38b6ff;
  --primary-light: #64c8ff;
  --primary-dark: #2196f3;
  --primary-dim: #1976d2;
  --primary-soft: #e8f7ff;
  --navy: #0f1f2e;
  --navy-mid: #162436;
  --cream: #f4f9fd;
  --white: #ffffff;
  --text: #1a2a35;
  --text-muted: #5a7285;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #c5e3f8;
  --border-light: #e0e0e0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
}

/* ── Landing page ─────────────────────────────────── */

.landing-page {
  background: var(--white);
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.landing-nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.landing-nav .nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav .nav-links a:hover {
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--primary-dark) !important;
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dim) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
}

.landing-hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 5% 80px;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(56, 182, 255, 0.14) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(33, 150, 243, 0.1) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.pattern-svg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 620px;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 182, 255, 0.15);
  border: 1px solid rgba(56, 182, 255, 0.35);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
}

.landing-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 1.25rem;
}

.landing-hero h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.landing-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-dark);
  color: white !important;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: white !important;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--primary-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-features {
  background: var(--cream);
  padding: 6rem 5%;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.landing-roles {
  background: white;
  padding: 6rem 5%;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.role-card {
  border-radius: 14px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.role-card.admin {
  background: var(--navy);
  color: white;
}

.role-card.teacher {
  background: var(--primary-soft);
  border: 1px solid var(--border);
}

.role-card.parent {
  background: #f0f8ff;
  border: 1px solid var(--border);
}

.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.admin .role-badge {
  background: rgba(56, 182, 255, 0.25);
  color: var(--primary-light);
}

.teacher .role-badge,
.parent .role-badge {
  background: rgba(56, 182, 255, 0.18);
  color: var(--primary-dim);
}

.role-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.admin h3 {
  color: white;
}

.teacher h3,
.parent h3 {
  color: var(--navy);
}

.role-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.admin p {
  color: rgba(255, 255, 255, 0.65);
}

.teacher p,
.parent p {
  color: var(--text-muted);
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-list li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin .role-list li {
  color: rgba(255, 255, 255, 0.75);
}

.teacher .role-list li,
.parent .role-list li {
  color: var(--text);
}

.role-list li::before {
  content: "✓";
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.landing-support {
  background: var(--cream);
  padding: 5rem 5%;
}

.support-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
}

.support-inner h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.support-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-dark) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.support-email:hover {
  border-color: var(--primary-dark);
}

.landing-footer {
  background: var(--navy);
  padding: 2.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: none;
  border-top: none;
}

.footer-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--primary-light) !important;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .landing-nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .landing-nav .nav-links.is-open {
    display: flex;
  }

  .landing-nav .nav-links a {
    padding: 0.85rem 5%;
  }

  .landing-nav {
    position: relative;
    flex-wrap: wrap;
  }

  .pattern-svg {
    width: 100%;
    opacity: 0.04;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Inner pages (privacy, terms, support) ────────── */

header {
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--primary-dark);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 36rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.btn {
  display: inline-block;
  background: var(--primary-dark);
  color: white !important;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-dark);
}

.content h1 {
  margin-top: 0;
}

.content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.content p,
.content li {
  color: var(--text);
}

.content ul {
  padding-left: 1.25rem;
}

.contact-box {
  background: var(--primary-soft);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.policy-hero {
  margin-bottom: 0;
  border-radius: 0;
}

.policy-hero .policy-updated {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.policy-content {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 0 0 16px 16px;
  margin-top: 0;
  padding: 2rem 1.75rem 2.5rem;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.08);
}

.policy-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.25rem;
}

.policy-section h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.muted {
  color: var(--text-muted);
}

footer:not(.landing-footer) {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-light);
}
