:root {
  --ink: #101014;
  --muted: #666678;
  --line: #e7e7ee;
  --surface: #ffffff;
  --soft: #f7f7fb;
  --pink: #e6449a;
  --orange: #f28d2b;
  --yellow: #f2cd32;
  --blue: #2678bf;
  --deep-blue: #2345a8;
  --green: #41b84f;
  --purple: #5b2aa0;
  --shadow: 0 24px 80px rgba(16, 16, 20, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(230, 68, 154, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(38, 120, 191, 0.09), transparent 28%),
    var(--soft);
}

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

button,
input {
  font: inherit;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-logo {
  width: 132px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
}

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

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

.auth-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.95;
}

.auth-copy,
.section-heading p,
.hero-copy p,
.day-card p {
  color: var(--muted);
  line-height: 1.65;
}

label {
  display: block;
  margin: 22px 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7d7e2;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 205, 50, 0.75);
  outline-offset: 2px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 850;
}

.primary-button {
  width: 100%;
  margin-top: 16px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.ghost-button,
.icon-button {
  padding: 0 14px;
  color: var(--ink);
  background: #f0f0f6;
}

.auth-error {
  margin: 12px 0 0;
  color: #b00030;
  font-weight: 750;
}

.site-shell[hidden],
.auth-screen[hidden] {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 231, 238, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(42px, 8vw, 90px) clamp(16px, 4vw, 52px);
}

.hero-copy h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 12vw, 8.6rem);
  line-height: 0.84;
}

.hero-copy p {
  max-width: 690px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.hero-actions .primary-button {
  width: auto;
  margin: 0;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div {
  min-height: 132px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(16, 16, 20, 0.08);
}

.hero-panel div:nth-child(1) {
  border-top: 6px solid var(--pink);
}

.hero-panel div:nth-child(2) {
  border-top: 6px solid var(--yellow);
}

.hero-panel div:nth-child(3) {
  border-top: 6px solid var(--green);
}

.hero-panel strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 52px);
}

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.day-card,
.module-card,
.flow-detail {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 16, 20, 0.08);
}

.day-card {
  padding: clamp(20px, 3vw, 28px);
}

.day-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.day-card-header span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.day-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.schedule {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.schedule time {
  color: var(--deep-blue);
  font-weight: 900;
}

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

.module-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--accent, var(--blue));
}

.module-card span {
  color: var(--muted);
  font-weight: 900;
}

.module-card h3 {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

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

.module-card a {
  margin-top: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.flow-section {
  padding-bottom: 120px;
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.flow-step {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.flow-step.is-active {
  color: #fff;
  background: var(--ink);
}

.flow-detail {
  min-height: 180px;
  padding: 26px;
  border-left: 8px solid var(--accent, var(--pink));
}

.flow-detail h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.flow-detail p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .program-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .flow-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 20px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .topnav a {
    white-space: nowrap;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 24vw, 5.3rem);
  }

  .schedule li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flow-board {
    grid-template-columns: 1fr;
  }
}
