:root {
  color-scheme: light;
  --ink: #14201d;
  --muted: #5f6c67;
  --line: #dbe4df;
  --panel: #ffffff;
  --soft: #f4f7f5;
  --green: #1f7a55;
  --green-dark: #13583c;
  --blue: #2563a8;
  --amber: #b66a18;
  --shadow: 0 16px 42px rgba(20, 32, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 56px);
  color: #fff;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.topbar-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px clamp(18px, 5vw, 56px) 54px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/learning-workspace-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.93) 0%, rgba(10, 20, 18, 0.76) 39%, rgba(10, 20, 18, 0.26) 74%, rgba(10, 20, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 20, 18, 0.62) 0%, rgba(10, 20, 18, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9ad0b6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 11vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 24px);
}

.signup-form {
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(11, 21, 18, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.field {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.field input:focus {
  border-color: #9ad0b6;
  box-shadow: 0 0 0 3px rgba(154, 208, 182, 0.22);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.preferences legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.preferences label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.preferences input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

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

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note,
.form-status {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.form-status {
  min-height: 20px;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #9ad0b6;
}

.form-status[data-state="error"] {
  color: #ffbd8a;
}

.content-band {
  background: #fff;
  padding: 64px clamp(18px, 5vw, 56px) 74px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  color: var(--green);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

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

.lesson-card {
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card-kicker {
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: 0;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 56px);
  color: #d6e1dc;
  background: #101916;
  font-size: 14px;
}

@media (max-width: 760px) {
  .topbar {
    position: absolute;
    padding: 16px 18px;
  }

  .topbar-link {
    font-size: 13px;
  }

  .hero {
    min-height: 96vh;
    padding: 86px 18px 34px;
    align-items: end;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 20, 18, 0.96) 0%, rgba(10, 20, 18, 0.8) 58%, rgba(10, 20, 18, 0.34) 100%);
  }

  .hero-copy {
    margin-bottom: 20px;
  }

  .signup-form {
    padding: 14px;
  }

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

  .section-heading,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .content-band {
    padding: 48px 18px 56px;
  }

  .footer {
    flex-direction: column;
  }
}
