:root {
  --navy: #07152f;
  --indigo: #27318f;
  --blue: #1677ff;
  --cyan: #23c6f4;
  --violet: #7c5cff;
  --ink: #0d172b;
  --muted: #61708a;
  --line: #dde6f4;
  --soft: #f6f8fc;
  --white: #ffffff;
  --success: #10a66a;
  --warning: #f59e0b;
  --shadow: 0 22px 70px rgba(16, 31, 66, 0.14);
  --soft-shadow: 0 12px 34px rgba(20, 35, 70, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 40px));
}

.section-pad {
  padding: 110px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(221, 230, 244, 0.8);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.55), transparent 25%),
    linear-gradient(135deg, var(--indigo), var(--blue) 55%, var(--cyan));
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.28);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #24324d;
  font-weight: 650;
  font-size: 14px;
}

.nav-links a:not(.btn):hover {
  color: var(--blue);
}

.signin {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  box-shadow: 0 16px 34px rgba(22, 119, 255, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(22, 119, 255, 0.34);
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(16, 31, 66, 0.08);
}

.btn-large {
  min-height: 52px;
  padding: 0 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 92px;
  background:
    radial-gradient(circle at 72% 18%, rgba(22, 119, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(39, 49, 143, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 49, 143, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero-grid,
.split-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 22px;
  max-width: 760px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--indigo);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-dot,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(16, 166, 106, 0.12);
  animation: pulse 1.8s infinite;
}

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

.exam-picker {
  margin-top: 42px;
}

.exam-picker p {
  margin: 0 0 14px;
  color: #31415d;
  font-weight: 800;
}

.exam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exam-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #26364f;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(20, 35, 70, 0.06);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.exam-chip:hover,
.exam-chip.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.orbital-ring {
  position: absolute;
  width: min(520px, 92vw);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 119, 255, 0.24);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbital-ring::before,
.orbital-ring::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(35, 198, 244, 0.7);
}

.orbital-ring::before {
  top: 8%;
  left: 19%;
}

.orbital-ring::after {
  right: 3%;
  bottom: 28%;
  background: var(--violet);
}

.app-preview,
.quiz-card,
.chat-window,
.upload-lab,
.dashboard-card,
.institution-panel,
.final-inner {
  border: 1px solid rgba(221, 230, 244, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.app-preview {
  position: relative;
  width: min(440px, 100%);
  padding: 18px;
  border-radius: 30px;
  backdrop-filter: blur(20px);
  animation: float 5s ease-in-out infinite;
}

.preview-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #ccd7e8;
}

.preview-header,
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.preview-header p,
.dashboard-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.preview-header h2,
.dashboard-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.ai-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--blue));
  font-weight: 900;
}

.readiness-ring {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 28px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 58%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), #e8eef8 0);
}

.readiness-ring span {
  font-size: 42px;
  font-weight: 900;
}

.readiness-ring small {
  margin-top: -55px;
  color: var(--muted);
  font-weight: 750;
}

.insight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.insight-card p {
  margin: 2px 0 0;
  color: var(--muted);
}

.mini-icon,
.mode-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.14), rgba(124, 92, 255, 0.18));
  position: relative;
}

.brain-icon::before,
.brain-icon::after,
.mode-icon::before,
.mode-icon::after,
.upload-icon::before,
.doc-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.brain-icon::after {
  inset: 17px 11px;
  border-color: var(--violet);
}

.preview-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.preview-bars div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.preview-bars b,
.mastery-list b {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}

.preview-bars b::before,
.mastery-list i {
  content: "";
  display: block;
  width: var(--bar, 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.preview-bars .needs-work b::before,
.mastery-list .attention i {
  background: linear-gradient(90deg, var(--warning), #ffcf59);
}

.chat-peek {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 16px;
  color: #31415d;
  background: #f7f9fd;
}

.chat-peek span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
  animation: bounce 1s infinite;
}

.chat-peek span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-peek span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-peek p {
  margin: 0 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.centered {
  text-align: center;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.challenge {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.quiz-card {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
}

.quiz-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quiz-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--indigo);
  background: #eef4ff;
  font-size: 13px;
  font-weight: 800;
}

.quiz-card h3 {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

.answers {
  display: grid;
  gap: 12px;
}

.answers button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #27344c;
  background: var(--white);
  text-align: left;
  font-weight: 720;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.answers button:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: var(--soft-shadow);
}

.answers button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--indigo);
  background: #eef4ff;
}

.answers button.correct {
  border-color: rgba(16, 166, 106, 0.55);
  background: #f1fbf7;
}

.answers button.incorrect {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fffaf0;
}

.explanation-panel {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.explanation-panel.visible {
  display: block;
  animation: rise 420ms ease both;
}

.correct-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #06633f;
  background: #dcf8ec;
  font-weight: 900;
}

.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.explain-grid article {
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
}

.explain-grid h4,
.today-plan h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.explain-grid p,
.mode-card p,
.why-card p,
.role-row p {
  margin: 0;
  color: var(--muted);
}

.assist-actions,
.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.assist-actions button,
.prompt-row button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #26364f;
  font-weight: 760;
}

.assist-actions button:hover,
.prompt-row button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.helper-output {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--indigo);
  font-weight: 760;
}

.chat-demo {
  background: var(--navy);
  color: var(--white);
}

.chat-demo .section-heading p,
.chat-demo .section-kicker {
  color: #b9c7e4;
}

.chat-window {
  padding: 22px;
  border-radius: 30px;
  color: var(--ink);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.chat-top small {
  margin-left: auto;
  color: var(--success);
  font-weight: 800;
}

.message {
  width: fit-content;
  max-width: 88%;
  margin: 12px 0;
  padding: 15px 17px;
  border-radius: 20px;
}

.student {
  margin-left: auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  border-bottom-right-radius: 6px;
}

.buddy {
  background: #f2f6fd;
  border-bottom-left-radius: 6px;
}

.buddy.is-typing {
  color: var(--muted);
  background:
    linear-gradient(90deg, #f2f6fd, #ffffff, #f2f6fd);
  background-size: 220% 100%;
  animation: shimmer 900ms linear infinite;
}

.upload {
  background: #f8fbff;
}

.upload-lab {
  padding: 24px;
  border-radius: 30px;
}

.dropzone {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1.5px dashed rgba(22, 119, 255, 0.34);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
}

.dropzone p {
  margin: 4px 0 0;
  color: var(--muted);
}

.upload-icon,
.doc-icon {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #eaf3ff;
}

.upload-icon::before {
  inset: 13px 17px 10px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.doc-icon::before {
  inset: 11px 14px;
  border-color: var(--indigo);
}

.file-pill,
.white-label-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.file-pill small,
.white-label-card p {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
}

.processing-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 20px 0;
  padding-bottom: 4px;
}

.processing-flow span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 850;
}

.processing-flow b {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.generated-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.generated-stats div {
  padding: 16px 10px;
  border-radius: 18px;
  background: #f8fbff;
  text-align: center;
}

.generated-stats strong {
  display: block;
  color: var(--indigo);
  font-size: 28px;
}

.generated-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.engine-map {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 40px;
}

.engine-column,
.engine-core,
.mode-card,
.why-card,
.role-row article,
.pricing-inner {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.engine-column {
  padding: 22px;
  border-radius: 26px;
}

.engine-column h3 {
  margin: 0 0 14px;
}

.metric-list {
  display: grid;
  gap: 10px;
}

.metric-list span {
  padding: 11px 13px;
  border-radius: 14px;
  background: #f7f9fd;
  color: #31415d;
  font-weight: 750;
}

.engine-core {
  position: relative;
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(35, 198, 244, 0.5), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--indigo));
}

.core-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: rotate 12s linear infinite;
}

.engine-core strong {
  position: relative;
  max-width: 230px;
  font-size: 25px;
}

.dashboard-card {
  padding: 24px;
  border-radius: 30px;
}

.readiness-number {
  font-size: 46px;
  color: var(--indigo);
}

.mastery-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.mastery-list div {
  display: grid;
  grid-template-columns: 44px 1fr 46px;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.mastery-list span {
  color: var(--muted);
}

.ai-insight,
.today-plan {
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
}

.ai-insight strong {
  color: var(--indigo);
}

.ai-insight p {
  margin: 8px 0 0;
  color: var(--muted);
}

.today-plan {
  margin-top: 14px;
}

.today-plan ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: #31415d;
}

.mode-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.mode-card,
.why-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.mode-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 119, 255, 0.38);
  box-shadow: var(--shadow);
}

.mode-card h3,
.why-card h3,
.role-row h3 {
  margin: 18px 0 8px;
}

.mode-icon.learn::before {
  border-radius: 50%;
}

.mode-icon.practice::before {
  border-radius: 2px;
}

.mode-icon.exam::before {
  inset: 10px 15px;
  border-radius: 3px;
}

.mode-icon.adaptive-icon::after {
  inset: 18px 9px;
  border-color: var(--violet);
}

.mode-icon.weakness::before {
  border-color: var(--warning);
}

.mode-icon.recall::before {
  inset: 10px;
  border-radius: 50%;
  border-style: dashed;
}

.mode-icon.buddy-icon::before {
  border-radius: 50% 50% 50% 6px;
}

.mode-icon.oral::before {
  inset: 9px 16px;
  border-radius: 999px;
}

.why {
  background:
    linear-gradient(rgba(7, 21, 47, 0.88), rgba(7, 21, 47, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(35, 198, 244, 0.55), transparent 34%);
  color: var(--white);
}

.brand-statement {
  text-align: center;
}

.brand-statement h2 {
  margin: 0;
  color: #c7d2e8;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.brand-statement h3 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.why-card {
  color: var(--ink);
}

.institutions {
  background: #f8fbff;
}

.institution-panel {
  padding: 22px;
  border-radius: 30px;
}

.role-row {
  display: grid;
  gap: 12px;
}

.role-row article {
  padding: 18px;
  border-radius: 20px;
}

.role-row h3 {
  margin-top: 0;
}

.white-label-card {
  background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.pricing-strip {
  padding: 70px 0;
}

.pricing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
}

.pricing-inner h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
}

.final-cta {
  padding-top: 60px;
}

.final-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 8vw, 86px);
  border-radius: 36px;
  text-align: center;
}

.ai-backdrop {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 35% 35%, rgba(22, 119, 255, 0.17), transparent 28%),
    radial-gradient(circle at 68% 58%, rgba(124, 92, 255, 0.15), transparent 24%);
  animation: rotate 20s linear infinite;
}

.final-inner h2,
.final-inner p,
.final-inner .hero-actions {
  position: relative;
}

.final-inner h2 {
  max-width: 800px;
  margin: 0 auto 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.final-inner p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.centered-actions {
  justify-content: center;
}

.site-footer {
  padding: 70px 0 38px;
  color: #c4cee2;
  background: #061126;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand {
  color: var(--white);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 15px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 10px 0;
  color: #c4cee2;
}

.site-footer a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(16, 166, 106, 0);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes bounce {
  50% {
    transform: translateY(-5px);
  }
}

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

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 980px) {
  .section-pad {
    padding: 84px 0;
  }

  .hero-grid,
  .split-grid,
  .engine-map {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .mode-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .generated-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .nav-links .btn {
    width: 100%;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lede,
  .section-heading p {
    font-size: 16px;
  }

  .app-preview {
    border-radius: 24px;
  }

  .explain-grid,
  .mode-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reverse-mobile .section-heading {
    order: -1;
  }

  .pricing-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }

  .section-pad {
    padding: 70px 0;
  }

  .nav-shell {
    width: min(100% - 24px, 1200px);
  }

  .brand {
    font-size: 15px;
  }

  .hero-actions,
  .assist-actions,
  .prompt-row {
    flex-direction: column;
  }

  .hero-actions .btn,
  .assist-actions button,
  .prompt-row button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .orbital-ring {
    display: none;
  }

  .message {
    max-width: 96%;
  }

  .processing-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .processing-flow b {
    width: 2px;
    height: 22px;
    margin-left: 22px;
    background: linear-gradient(var(--blue), transparent);
  }

  .generated-stats {
    grid-template-columns: 1fr;
  }

  .mastery-list div {
    grid-template-columns: 38px 1fr 42px;
  }

  .final-inner {
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Review Buddy brand identity refinement */
:root {
  --rb-navy-950: #071226;
  --rb-navy-900: #0b1733;
  --rb-indigo-800: #263a8b;
  --rb-indigo-700: #3246b3;
  --rb-blue-600: #1769ff;
  --rb-violet-600: #7557f6;
  --rb-cyan-400: #22c5f2;
  --rb-green-600: #0f9f6e;
  --rb-green-100: #e8f8f1;
  --rb-amber-600: #d99017;
  --rb-amber-100: #fff6df;
  --rb-red-600: #c94a4a;
  --rb-bg: #f7faff;
  --rb-surface: #ffffff;
  --rb-surface-soft: #f3f7fd;
  --rb-text: #101a2f;
  --rb-text-soft: #63718a;
  --rb-border: #dce6f4;
  --rb-gradient: linear-gradient(135deg, #1769ff 0%, #3246b3 48%, #7557f6 100%);
  --rb-radius-sm: 12px;
  --rb-radius-md: 18px;
  --rb-radius-lg: 28px;
  --rb-radius-pill: 999px;
  --rb-shadow-subtle: 0 8px 22px rgba(16, 31, 66, 0.07);
  --rb-shadow-card: 0 18px 48px rgba(16, 31, 66, 0.11);
  --rb-shadow-elevated: 0 26px 80px rgba(16, 31, 66, 0.16);
  --navy: var(--rb-navy-950);
  --indigo: var(--rb-indigo-800);
  --blue: var(--rb-blue-600);
  --cyan: var(--rb-cyan-400);
  --violet: var(--rb-violet-600);
  --ink: var(--rb-text);
  --muted: var(--rb-text-soft);
  --line: var(--rb-border);
  --soft: var(--rb-bg);
  --success: var(--rb-green-600);
  --warning: var(--rb-amber-600);
  --shadow: var(--rb-shadow-card);
  --soft-shadow: var(--rb-shadow-subtle);
}

body {
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 28%, #f8fbff 100%);
  color: var(--rb-text);
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.35);
  outline-offset: 3px;
}

.brand-horizontal,
.footer-brand {
  gap: 12px;
}

.wordmark {
  color: var(--rb-navy-900);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.wordmark strong {
  color: var(--rb-blue-600);
  font-weight: 900;
}

.footer-brand .wordmark,
.footer-brand .wordmark strong {
  color: #ffffff;
}

.brand-mark.buddy-avatar,
.buddy-avatar {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 15px 15px 15px 6px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 16%),
    var(--rb-gradient);
  box-shadow: 0 14px 30px rgba(23, 105, 255, 0.26);
}

.buddy-avatar > span {
  position: relative;
  width: 19px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 9px 9px 9px 3px;
}

.buddy-avatar > span::before,
.buddy-avatar > span::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
}

.buddy-avatar > span::before {
  width: 4px;
  height: 4px;
  left: 4px;
  top: 5px;
}

.buddy-avatar > span::after {
  width: 8px;
  height: 2px;
  right: 3px;
  top: 6px;
}

.dark-logo {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.78), transparent 16%),
    linear-gradient(135deg, #102653, #1769ff 55%, #7557f6);
}

.buddy-thinking {
  animation: buddyPulse 1.9s ease-in-out infinite;
}

.buddy-answering {
  box-shadow:
    0 0 0 5px rgba(23, 105, 255, 0.09),
    0 16px 34px rgba(23, 105, 255, 0.26);
}

.buddy-success {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.82), transparent 16%),
    linear-gradient(135deg, #0f9f6e, #1769ff);
  box-shadow: 0 14px 30px rgba(15, 159, 110, 0.22);
}

.btn {
  min-height: 46px;
  border-radius: var(--rb-radius-pill);
  font-size: 14px;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--rb-gradient);
  box-shadow: 0 16px 34px rgba(23, 105, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.btn-ai,
.assist-actions .btn-ai {
  color: #ffffff;
  border-color: transparent;
  background: var(--rb-gradient);
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.18);
}

.hero {
  background:
    radial-gradient(circle at 72% 16%, rgba(117, 87, 246, 0.14), transparent 30%),
    radial-gradient(circle at 18% 35%, rgba(34, 197, 242, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 76%);
}

.ambient-grid {
  opacity: 0.32;
  background-size: 46px 46px;
}

.eyebrow,
.section-kicker {
  color: var(--rb-indigo-700);
}

.app-preview,
.quiz-card,
.chat-window,
.upload-lab,
.dashboard-card,
.institution-panel,
.final-inner,
.mode-card,
.why-card,
.engine-column,
.pricing-inner,
.role-row article {
  border-color: rgba(220, 230, 244, 0.95);
  border-radius: var(--rb-radius-lg);
}

.app-preview,
.quiz-card,
.chat-window,
.upload-lab,
.dashboard-card,
.institution-panel,
.final-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rb-shadow-elevated);
}

.ai-badge {
  font-size: 0;
}

.ai-badge.buddy-avatar {
  width: 52px;
  height: 52px;
}

.readiness-ring {
  background:
    radial-gradient(circle, #ffffff 58%, transparent 59%),
    conic-gradient(var(--rb-blue-600) calc(var(--value) * 1%), #e8eef8 0);
}

.readiness-ring small {
  max-width: 110px;
  text-align: center;
  line-height: 1.1;
}

.insight-card,
.ai-insight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 105, 255, 0.14);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--rb-gradient) border-box;
}

.insight-card::before,
.ai-insight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.07), rgba(117, 87, 246, 0.06));
}

.insight-card > *,
.ai-insight > * {
  position: relative;
}

.insight-card strong,
.ai-insight strong {
  color: var(--rb-indigo-700);
}

.quiz-card h3 {
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.34;
  letter-spacing: 0;
}

.quiz-meta span {
  color: var(--rb-indigo-700);
  background: #eef4ff;
  border: 1px solid rgba(23, 105, 255, 0.12);
}

.answers button {
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: var(--rb-radius-md);
  font-size: 16px;
  line-height: 1.35;
}

.answers button b {
  font-weight: 760;
}

.answers button i {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--rb-radius-pill);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.answers button.correct i::before {
  content: "Correct";
  color: #056340;
}

.answers button.incorrect i::before {
  content: "Review clue";
  color: #8a5a00;
}

.answers button.correct span {
  color: #056340;
  background: var(--rb-green-100);
}

.answers button.incorrect span {
  color: #8a5a00;
  background: var(--rb-amber-100);
}

.explanation-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.explanation-title h4 {
  margin: 4px 0 0;
  font-size: 20px;
}

.correct-pill {
  min-height: 34px;
  color: #056340;
  background: var(--rb-green-100);
}

.explain-grid article {
  border: 1px solid rgba(220, 230, 244, 0.92);
  background: var(--rb-surface-soft);
}

.explain-grid h4 {
  color: var(--rb-navy-900);
  line-height: 1.25;
}

.explain-grid p,
.buddy-message p,
.ai-insight p {
  line-height: 1.68;
}

.chat-demo {
  background:
    radial-gradient(circle at 72% 18%, rgba(117, 87, 246, 0.22), transparent 30%),
    linear-gradient(135deg, #071226, #0d1d42 58%, #111945);
}

.chat-top {
  padding: 6px 6px 16px;
  border-bottom: 1px solid var(--rb-border);
}

.chat-top div {
  display: grid;
  gap: 2px;
}

.chat-top small {
  margin: 0;
  color: var(--rb-text-soft);
  font-size: 12px;
  font-weight: 760;
}

.chat-top em {
  margin-left: auto;
  color: var(--rb-green-600);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.student {
  color: var(--rb-text);
  background: #eef4ff;
  border: 1px solid rgba(23, 105, 255, 0.12);
}

.buddy-message {
  display: flex;
  gap: 12px;
  width: min(92%, 620px);
  max-width: 92%;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--rb-gradient) border-box;
  border: 1px solid transparent;
}

.buddy-message .buddy-avatar {
  width: 34px;
  height: 34px;
  border-radius: 13px 13px 13px 5px;
}

.buddy-message .buddy-avatar > span {
  width: 15px;
  height: 14px;
}

.buddy-message p {
  margin: 0;
}

.buddy-message.is-typing,
.buddy-message.is-typing p {
  color: var(--rb-text-soft);
}

.prompt-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 3px;
}

.prompt-row button,
.assist-actions button {
  flex: 0 0 auto;
  min-height: 42px;
}

.processing-flow span.active-stage {
  color: #ffffff;
  background: var(--rb-gradient);
  box-shadow: 0 10px 22px rgba(23, 105, 255, 0.18);
}

.generated-stats div {
  border: 1px solid rgba(220, 230, 244, 0.95);
  background: #ffffff;
}

.readiness-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 140px;
}

.readiness-stack span {
  color: var(--rb-green-600);
  font-size: 13px;
  font-weight: 900;
}

.readiness-stack small {
  color: var(--rb-text-soft);
  font-weight: 800;
}

.readiness-note,
.daily-greeting {
  margin: 8px 0 0;
  max-width: 390px;
  color: var(--rb-text-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.mastery-list div {
  grid-template-columns: 44px 1fr minmax(126px, auto);
}

.mastery-list strong {
  font-size: 12px;
  text-align: right;
}

.ai-insight {
  display: flex;
  gap: 13px;
}

.ai-insight .buddy-avatar {
  width: 38px;
  height: 38px;
}

.today-plan {
  border: 1px solid rgba(220, 230, 244, 0.95);
  background: #ffffff;
}

.daily-greeting {
  max-width: none;
  margin-bottom: 14px;
  color: var(--rb-indigo-700);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 22px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: var(--rb-radius-pill);
  color: var(--rb-indigo-700);
  background: #eef4ff;
  font-size: 13px;
  font-weight: 830;
}

.mode-icon,
.mini-icon {
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(117, 87, 246, 0.14));
}

.mode-icon::before,
.mode-icon::after,
.brain-icon::before,
.brain-icon::after,
.upload-icon::before,
.doc-icon::before {
  border-color: var(--rb-blue-600);
}

.mode-card h3,
.why-card h3,
.role-row h3 {
  color: var(--rb-navy-900);
}

.why {
  background:
    radial-gradient(circle at 76% 18%, rgba(117, 87, 246, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(7, 18, 38, 0.96), rgba(13, 29, 66, 0.98));
}

.brand-statement h3 {
  background: linear-gradient(90deg, #ffffff, #9fd6ff 42%, #c9bbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  background: linear-gradient(135deg, #071226, #0b1733);
}

@keyframes buddyPulse {
  50% {
    transform: translateY(-1px) scale(1.035);
    box-shadow:
      0 0 0 8px rgba(23, 105, 255, 0.06),
      0 18px 38px rgba(23, 105, 255, 0.3);
  }
}

@media (max-width: 780px) {
  .wordmark {
    font-size: 16px;
  }

  .brand-mark.buddy-avatar {
    width: 38px;
    height: 38px;
  }

  .answers button {
    grid-template-columns: 34px 1fr;
  }

  .answers button i {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .prompt-row {
    flex-direction: row;
  }

  .prompt-row button {
    width: auto;
    max-width: 82vw;
    white-space: nowrap;
  }

  .dashboard-head {
    align-items: flex-start;
  }

  .readiness-stack {
    justify-items: start;
  }

  .mastery-list div {
    grid-template-columns: 38px 1fr;
  }

  .mastery-list strong {
    grid-column: 2;
    text-align: left;
  }
}

/* Final public-site polish */
.orbital-ring,
.app-preview {
  animation-duration: 14s;
}

.orbital-ring {
  opacity: 0.62;
}

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

.mode-card {
  min-height: 178px;
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(4, 1fr);
}

.pricing-inner {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--rb-gradient) border-box;
  border: 1px solid transparent;
}

.pricing-inner .btn-secondary {
  cursor: default;
}

.final-inner {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
    var(--rb-gradient) border-box;
  border: 1px solid transparent;
}

.exam-chips {
  overflow-x: auto;
  padding-bottom: 4px;
}

.exam-chip {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy h1 {
    margin-top: 14px;
  }
}

@media (max-width: 540px) {
  .mode-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.centered {
    text-align: left;
  }

  .quiz-card,
  .chat-window,
  .upload-lab,
  .dashboard-card,
  .institution-panel {
    border-radius: 22px;
  }
}



.brand-substatement {
  max-width: 680px;
  margin: 18px auto 0;
  color: #c7d2e8;
  font-size: 18px;
}
