:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66726d;
  --paper: #f7f2e8;
  --panel: rgba(255, 252, 244, 0.9);
  --line: rgba(23, 32, 29, 0.13);
  --gold: #efbe54;
  --teal: #2599a2;
  --leaf: #58a06d;
  --coral: #e8755e;
  --blue: #527fc2;
  --deep: #121c19;
  --shadow: 0 26px 70px rgba(25, 32, 28, 0.14);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 4%, rgba(37, 153, 162, 0.18), transparent 25%),
    radial-gradient(circle at 90% 6%, rgba(232, 117, 94, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(18, 28, 25, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 28, 25, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f8f3ea 0%, #eef6f1 48%, #f7efe1 100%);
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
}

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

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(25, 32, 28, 0.12);
}

button[data-active="true"] {
  color: #fffaf0;
  background: var(--deep);
}

.flow-shell {
  width: min(1440px, calc(100vw - 28px));
  margin: 14px auto 48px;
  display: grid;
  gap: 20px;
}

.flow-hero {
  position: relative;
  min-height: min(640px, calc(100vh - 28px));
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 70px);
  color: #fffaf0;
  background:
    linear-gradient(120deg, rgba(18, 28, 25, 0.94), rgba(18, 28, 25, 0.72) 44%, rgba(18, 28, 25, 0.25)),
    url("./dashboard-assets/showcase-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.flow-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 20px;
  pointer-events: none;
}

.flow-hero > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.top-nav {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(18, 28, 25, 0.34);
  backdrop-filter: blur(14px);
  font-weight: 1000;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-hero .eyebrow {
  color: #8bedf1;
}

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

h1 {
  max-width: 1080px;
  margin-bottom: 18px;
  font-size: clamp(50px, 6.8vw, 98px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.15;
}

.hero-line {
  max-width: 42em;
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.55;
  font-weight: 850;
}

.hero-note {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  width: min(360px, calc(100% - 72px));
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 22px;
  padding: 20px;
  background: rgba(18, 28, 25, 0.5);
  backdrop-filter: blur(16px);
}

.hero-note span,
.hero-note small {
  color: rgba(255, 250, 240, 0.74);
  font-weight: 850;
}

.hero-note strong {
  font-size: 27px;
  line-height: 1.18;
}

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

.summary-strip article,
.sequence-panel,
.section-head,
.flow-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(25, 32, 28, 0.08);
  backdrop-filter: blur(16px);
}

.summary-strip article {
  padding: 24px;
}

.summary-strip span,
.flow-meta span,
.phase-badge {
  color: var(--teal);
  font-size: 13px;
  font-weight: 1000;
}

.summary-strip strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.summary-strip small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.sequence-panel {
  padding: clamp(24px, 4vw, 42px);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.route-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.route-grid span {
  width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fffaf0;
  background: var(--deep);
  font-size: 12px;
  font-weight: 1000;
}

.route-grid p,
.flow-card p,
.step-card p,
.teacher-note p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 820;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 28px 30px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.flow-grid {
  display: grid;
  gap: 18px;
}

.flow-card {
  overflow: hidden;
}

.flow-card-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
}

.flow-card[data-tone="teal"] {
  --tone: var(--teal);
}

.flow-card[data-tone="leaf"] {
  --tone: var(--leaf);
}

.flow-card[data-tone="coral"] {
  --tone: var(--coral);
}

.flow-card[data-tone="blue"] {
  --tone: var(--blue);
}

.flow-title {
  display: grid;
  align-content: start;
}

.flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.flow-meta span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fffaf0;
  background: var(--tone);
}

.flow-title h2 {
  margin-bottom: 12px;
}

.outcome-box {
  border-radius: 22px;
  padding: 20px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--deep), color-mix(in srgb, var(--tone), #16201c 42%));
}

.outcome-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.outcome-box p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.82);
}

.step-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.step-card {
  position: relative;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.step-card::before {
  content: attr(data-step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #fffaf0;
  background: var(--tone);
  font-weight: 1000;
}

.teacher-note {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(24px, 4vw, 38px) clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.34);
}

.teacher-note article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 252, 244, 0.7);
}

.teacher-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

@media (max-width: 980px) {
  .summary-strip,
  .route-grid,
  .flow-card-header,
  .teacher-note {
    grid-template-columns: 1fr;
  }

  .step-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }
}

@media (max-width: 720px) {
  .flow-shell {
    width: min(100vw - 18px, 560px);
    margin-top: 9px;
  }

  .flow-hero {
    min-height: 690px;
  }

  .top-nav {
    left: 18px;
    right: 18px;
    justify-content: center;
  }

  h1 {
    font-size: clamp(44px, 14vw, 70px);
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .step-lane {
    grid-template-columns: 1fr;
  }
}
