:root {
  --ink: #102a43;
  --muted: #486581;
  --line: #d9e2ec;
  --paper: #fbfcfe;
  --white: #ffffff;
  --blue: #1264a3;
  --blue-dark: #0b4f7a;
  --teal: #0f766e;
  --gold: #b7791f;
  --rose: #b83280;
  --shadow: 0 22px 70px rgba(16, 42, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(251, 252, 254, 0.94);
  border-bottom: 1px solid rgba(217, 226, 236, 0.75);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-weight: 800;
}

.brand small,
.footer p:last-child {
  display: block;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.language select {
  min-width: 142px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 64px) 56px;
  background:
    linear-gradient(135deg, rgba(18, 100, 163, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: white;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.proof-strip span,
.lesson-actions span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.9rem;
}

.product-visual {
  overflow: hidden;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 14px;
  background: #0b1726;
  box-shadow: var(--shadow);
}

.visual-top {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}

.visual-top span:nth-child(2) {
  background: #fbbf24;
}

.visual-top span:nth-child(3) {
  background: #34d399;
}

.dashboard {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 520px;
  color: white;
}

.dashboard aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.dashboard aside small,
.dashboard section small,
.dash-header span,
.lesson-card p {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard aside button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: left;
}

.dashboard section {
  padding: 26px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dash-header span {
  align-self: start;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(15, 118, 110, 0.18);
  color: #a7f3d0;
  white-space: nowrap;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.progress-grid article,
.lesson-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-grid strong {
  display: block;
  font-size: 2rem;
}

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

.lesson-actions span {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 72px clamp(18px, 4vw, 64px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  background: white;
  border-block: 1px solid var(--line);
}

.intro p:last-child,
.signup-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 18px;
}

.role-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.role-tabs button.active {
  background: var(--ink);
  color: white;
}

.role-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 38px);
  background: white;
  box-shadow: 0 12px 36px rgba(16, 42, 67, 0.06);
}

.role-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.role-panel li + li {
  margin-top: 10px;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(380px, 1.22fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: #eef5f9;
}

.signup-copy {
  position: sticky;
  top: 98px;
}

.scarcity-box {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.scarcity-box p {
  margin-bottom: 0;
}

.signup-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 32px);
  background: white;
  box-shadow: var(--shadow);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 11px;
  background: #f8fbfd;
  color: var(--muted);
  cursor: pointer;
}

.chips input {
  width: auto;
}

.form-status {
  display: none;
  border-radius: 8px;
  padding: 12px;
  background: #e6fffa;
  color: #064e3b;
  font-weight: 700;
}

.form-status.show {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 64px);
  background: var(--ink);
  color: white;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .role-panel,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-visual {
    max-width: 760px;
  }

  .signup-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.65rem;
  }

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

  .dashboard aside {
    display: none;
  }

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

  .dash-header {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
