:root {
  --bg: #f4f8f7;
  --surface: #ffffff;
  --ink: #102a43;
  --muted: #4f657a;
  --brand: #0f766e;
  --brand-deep: #115e59;
  --accent: #f59e0b;
  --line: #d5e5e2;
  --shadow: 0 16px 44px rgba(16, 42, 67, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.12), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(245, 158, 11, 0.15), transparent 30%),
    linear-gradient(180deg, #fbfffe 0%, #f4f8f7 60%, #eef5f3 100%);
  overflow-x: hidden;
}

@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pageLoadRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.shape-one {
  width: 420px;
  height: 420px;
  background: rgba(15, 118, 110, 0.09);
  top: -140px;
  right: -90px;
}

.shape-two {
  width: 320px;
  height: 320px;
  background: rgba(245, 158, 11, 0.12);
  bottom: 18%;
  left: -100px;
}

.shape-three {
  width: 280px;
  height: 280px;
  background: rgba(17, 94, 89, 0.08);
  top: 50%;
  right: 12%;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 247, 0.86);
  border-bottom: 1px solid rgba(79, 101, 122, 0.13);
  animation: pageLoadFadeIn 0.42s ease both;
}

main {
  animation: pageLoadRise 0.5s ease both;
  animation-delay: 0.08s;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #0b4f4a);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

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

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 94, 89, 0.28);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  border-radius: 5px;
}

.hero {
  padding-top: 66px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.13);
  color: #0b5d56;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.6;
  margin: 20px 0 0;
  max-width: 55ch;
}

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

.btn {
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 94, 89, 0.3);
}

.btn-ghost {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid rgba(17, 94, 89, 0.25);
}

.hero-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
}

.access {
  padding-top: 44px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.portal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
}

.portal-card.teacher {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(232, 247, 245, 0.92));
}

.portal-card.student {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 224, 0.85));
}

.portal-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.13);
  color: #0b5d56;
}

.portal-card h3 {
  margin-top: 12px;
  font-size: 1.4rem;
  max-width: 22ch;
}

.portal-card p {
  color: var(--muted);
  line-height: 1.56;
}

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

.glass-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(244, 252, 250, 0.98));
  border: 1px solid rgba(17, 94, 89, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.glass-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.glass-card h2 {
  font-size: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.77rem;
  font-weight: 700;
}

.pill.success {
  background: rgba(22, 163, 74, 0.14);
  color: #1f7a43;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 16px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-value {
  margin: 6px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.72rem;
}

.progress-area p {
  margin: 0;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e4edeb;
  margin: 8px 0 6px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ef7e22);
}

.progress-area small {
  color: var(--muted);
}

.mini-feed {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mini-feed li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(79, 101, 122, 0.16);
  font-size: 0.94rem;
}

.mini-feed li:last-child {
  border-bottom: 0;
}

.section-head {
  max-width: 750px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-top: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.modules {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.94));
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.module-card {
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(145deg, #083344, #134e4a);
  color: #ecfeff;
  box-shadow: var(--shadow);
}

.module-card.student {
  background: linear-gradient(145deg, #9a3412, #c2410c);
}

.module-card h3 {
  margin-top: 10px;
  font-size: 1.52rem;
  max-width: 20ch;
}

.module-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.62;
}

.workflow {
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.14);
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #0f766e;
}

.step h3 {
  margin-top: 14px;
  font-size: 1.15rem;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.58;
}

.cta {
  padding-top: 18px;
}

.cta-box {
  text-align: center;
  background: linear-gradient(155deg, #134e4a, #0f766e);
  color: #f6fffd;
  border-radius: calc(var(--radius) + 4px);
  padding: 44px 28px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

.cta-box p {
  max-width: 60ch;
  margin: 13px auto 22px;
  opacity: 0.96;
}

.cta-box .btn-primary {
  background: linear-gradient(145deg, #f59e0b, #ef7e22);
  color: #12263d;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.38);
}

.site-footer {
  border-top: 1px solid rgba(79, 101, 122, 0.18);
  padding: 26px 0;
  animation: pageLoadRise 0.48s ease both;
  animation-delay: 0.16s;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 16px;
}

.auth-shell {
  width: min(1020px, 100%);
  animation: pageLoadRise 0.48s ease both;
}

.auth-top {
  margin-bottom: 20px;
}

.auth-top a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.auth-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: none;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.role-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #0b5d56;
  background: rgba(15, 118, 110, 0.13);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid #c7d9d6;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  border-color: rgba(15, 118, 110, 0.4);
}

.auth-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.helper-links {
  margin-top: 10px;
}

.helper-links a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.feedback-modal-open {
  overflow: hidden;
}

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.feedback-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feedback-modal-card {
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.33);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.feedback-modal-backdrop.is-open .feedback-modal-card {
  transform: translateY(0);
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.76);
  background: linear-gradient(130deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.08));
}

.feedback-modal-header h3 {
  margin: 0;
  font-size: 1.03rem;
  color: #12324a;
}

.feedback-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
}

.feedback-modal-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
}

.feedback-modal-body p {
  margin: 0;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: rgba(241, 245, 249, 0.82);
  color: #334155;
}

.feedback-modal-card.error .feedback-modal-body p {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(254, 226, 226, 0.82);
  color: #991b1b;
}

.feedback-modal-card.success .feedback-modal-body p {
  border-color: rgba(22, 163, 74, 0.31);
  background: rgba(220, 252, 231, 0.85);
  color: #166534;
}

.feedback-modal-body .btn {
  justify-self: end;
  border: 0;
  cursor: pointer;
}

.alert {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.alert.error {
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(254, 226, 226, 0.8);
  color: #991b1b;
}

.alert.success {
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: rgba(220, 252, 231, 0.85);
  color: #166534;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

.footer-grid nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .features-grid,
  .split-grid,
  .steps,
  .portal-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 74px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .feedback-modal-backdrop {
    padding: 12px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 4vw;
    left: 4vw;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
  }

  .site-nav a {
    padding: 8px 6px;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 94vw);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 38px;
  }

  .auth-body {
    padding: 20px 12px;
  }

  .portal-card,
  .feature-card,
  .step,
  .module-card,
  .auth-card,
  .glass-card {
    padding: 20px;
  }

  .cta-box {
    padding: 32px 18px;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .feedback-modal-body .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
