:root {
  --ink: #17211f;
  --muted: #5d6b68;
  --paper: #f7f4ef;
  --surface: #fbfcfb;
  --white: #ffffff;
  --line: #d9dfdc;
  --green: #1f6f5b;
  --green-dark: #164f42;
  --blue: #4576b9;
  --blue-soft: #e9f1ff;
  --coral: #d7684c;
  --gold: #d7a842;
  --shadow: 0 22px 60px rgba(23, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.week-button.is-locked,
.week-card.is-locked {
  filter: grayscale(0.35);
}

.locked-preview {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.55);
}

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

input {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
}

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

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

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 124px clamp(20px, 7vw, 92px) 84px;
  overflow: hidden;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 32, 29, 0.88) 0%, rgba(13, 32, 29, 0.7) 44%, rgba(13, 32, 29, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 32, 29, 0.46), rgba(13, 32, 29, 0.1));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: #c9d7d0;
}

.desk-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(155deg, #e5ddd0 0%, #bed7d8 42%, #caa875 100%);
}

.desk-scene::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -12%;
  left: -6%;
  height: 36%;
  background:
    linear-gradient(90deg, rgba(89, 58, 30, 0.15), rgba(255, 255, 255, 0.12)),
    #c18c55;
  transform: rotate(-2deg);
}

.window-panel {
  position: absolute;
  top: 9%;
  right: 8%;
  width: min(30vw, 420px);
  height: 46vh;
  border: 12px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px) 50% 0 / 50% 100%,
    linear-gradient(#c9e3ec, #f4ede0);
  box-shadow: var(--shadow);
}

.laptop {
  position: absolute;
  right: clamp(16px, 8vw, 140px);
  bottom: 12%;
  width: min(52vw, 740px);
  transform: rotate(-2deg);
}

.screen {
  min-height: 330px;
  border: 14px solid #202725;
  border-radius: 20px 20px 12px 12px;
  background: #f8faf9;
  box-shadow: var(--shadow);
}

.screen-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid #dde5e2;
}

.screen-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.screen-toolbar span:nth-child(2) {
  background: var(--gold);
}

.screen-toolbar span:nth-child(3) {
  background: var(--green);
}

.screen-content {
  min-height: 290px;
  display: grid;
  grid-template-columns: 120px 88px;
  place-content: center;
  gap: 26px;
  color: var(--ink);
  text-align: center;
}

.screen-content p {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  font-weight: 800;
}

.folder-icon {
  position: relative;
  width: 120px;
  height: 82px;
  align-self: end;
  border-radius: 10px;
  background: linear-gradient(145deg, #63aee6, #397fc5);
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 56px;
  height: 26px;
  border-radius: 10px 10px 0 0;
  background: #63aee6;
}

.file-icon {
  width: 76px;
  height: 98px;
  display: grid;
  place-items: center;
  align-self: end;
  border: 2px solid #c5cdca;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(23, 33, 31, 0.1);
}

.keyboard {
  width: 92%;
  height: 28px;
  margin: 0 auto;
  border-radius: 0 0 32px 32px;
  background: #69706f;
}

.notebook {
  position: absolute;
  right: 6%;
  bottom: 7%;
  width: 230px;
  height: 88px;
  border-radius: 4px;
  background: #f0e5c8;
  transform: rotate(-7deg);
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5b39d;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
}

.hero-actions,
.dashboard-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 34px;
}

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

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.intro-band {
  padding: 34px clamp(20px, 6vw, 72px);
  background: var(--green-dark);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  max-width: 1160px;
  margin: 0 auto;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px clamp(20px, 4vw, 40px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.login-panel h3,
.dashboard h3,
.assignment-detail h3,
.certificate-card h3,
.safety-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.section-heading h2,
.safety-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.app-section,
.certificate-section {
  max-width: none;
  padding-right: clamp(20px, 7vw, 92px);
  padding-left: clamp(20px, 7vw, 92px);
  background: #f3f7f4;
}

.app-section .section-heading,
.certificate-section .section-heading {
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(420px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.login-panel,
.dashboard,
.assignment-detail,
.assignment-list,
.certificate-panel,
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.08);
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.login-panel h3,
.dashboard h3,
.assignment-detail h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.login-panel p,
.assignment-detail p,
.certificate-panel p {
  color: var(--muted);
}

.login-panel label,
.prompt-label,
.certificate-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.dashboard {
  padding: 24px;
}

.dashboard[hidden] {
  display: none;
}

.dashboard-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--blue-soft);
  color: #234f89;
  font-size: 0.86rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metric-grid div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-grid span,
.week-card span,
.assignment-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 1.08rem;
}

.week-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.week-button {
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.week-button strong {
  display: block;
}

.week-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.week-button.is-active {
  border-color: var(--green);
  background: #e7f1ec;
}

.week-button.is-complete {
  border-color: rgba(31, 111, 91, 0.44);
}

.connection-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid rgba(31, 111, 91, 0.22);
  border-radius: 10px;
  padding: 18px;
  background: #f8fbf9;
}

.connection-panel.is-connected {
  border-color: rgba(31, 111, 91, 0.44);
  background: #edf7f1;
}

.connection-panel h4 {
  margin: 0;
  font-size: 1.08rem;
}

.connection-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.connection-panel li + li {
  margin-top: 5px;
}

.ghost-button,
.text-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-dark);
}

.ghost-button:hover,
.text-button:hover {
  background: #f4f8f6;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note.success {
  color: var(--green-dark);
  font-weight: 800;
}

.form-note.warning {
  color: #8a4a1f;
  font-weight: 800;
}

.assignment-workspace {
  max-width: none;
  padding-right: clamp(20px, 7vw, 92px);
  padding-left: clamp(20px, 7vw, 92px);
}

.assignment-workspace .section-heading {
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
}

.assignment-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.4fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.assignment-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.week-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.week-card.is-active {
  border-left-color: var(--coral);
  background: #fff8f5;
}

.week-card.is-complete {
  border-left-color: var(--green);
}

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

.assignment-detail {
  min-height: 620px;
  padding: clamp(20px, 4vw, 30px);
}

.assignment-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.assignment-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.assignment-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.assignment-section {
  margin-top: 24px;
}

.assignment-section h4 {
  margin: 0 0 10px;
  font-size: 1.04rem;
}

.assignment-section p {
  margin: 0;
}

.assignment-section ul,
.assignment-section ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.assignment-section li + li {
  margin-top: 7px;
}

.sample-asset {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.sample-asset img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.sample-asset p {
  margin: 8px 0 12px;
}

.empty-state {
  display: grid;
  min-height: 430px;
  align-content: center;
  text-align: center;
}

.prompt-box {
  margin-top: 10px;
}

.prompt-box textarea {
  min-height: 220px;
  background: var(--surface);
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 42px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}

.certificate-card {
  display: grid;
  min-height: 460px;
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(215, 168, 66, 0.14), transparent 38%),
    linear-gradient(315deg, rgba(69, 118, 185, 0.11), transparent 32%),
    var(--white);
}

.certificate-card.is-locked {
  opacity: 0.62;
}

.certificate-kicker {
  margin: 0;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.certificate-card h3 {
  margin-top: 8px;
  color: var(--green-dark);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
}

.certificate-card strong {
  display: block;
  margin: 12px 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.certificate-copy {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
}

#certificate-date {
  display: inline-flex;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.certificate-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.safety-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safety-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 7vw, 92px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84vh;
    padding-top: 104px;
  }

  .hero::after {
    background: rgba(13, 32, 29, 0.68);
  }

  .laptop {
    right: -150px;
    bottom: 6%;
    width: 760px;
    opacity: 0.58;
  }

  .window-panel,
  .notebook {
    display: none;
  }

  .intro-grid,
  .app-layout,
  .assignment-grid,
  .certificate-layout,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .week-rail {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .screen {
    min-height: 260px;
  }

  .screen-content {
    min-height: 220px;
    grid-template-columns: 92px 68px;
  }

  .folder-icon {
    width: 92px;
    height: 64px;
  }

  .file-icon {
    width: 62px;
    height: 78px;
  }

  .metric-grid,
  .assignment-meta,
  .week-rail,
  .sample-asset {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .assignment-header,
  .footer {
    display: grid;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .site-header,
  .hero,
  .intro-band,
  .app-section,
  .assignment-workspace,
  .safety-section,
  .footer,
  .certificate-panel,
  .section-heading {
    display: none;
  }

  .certificate-section {
    padding: 0;
    background: var(--white);
  }

  .certificate-layout {
    display: block;
    max-width: none;
  }

  .certificate-card {
    min-height: 96vh;
    border: 0;
    box-shadow: none;
  }
}
