:root {
  --navy: #152555;
  --navy-dark: #0d1737;
  --ink: #111b3c;
  --muted: #4a5578;
  --line: #d8e0f4;
  --blue: #2f67c4;
  --blue-soft: #eaf2ff;
  --green: #5fa64f;
  --green-soft: #ecf8e9;
  --orange: #f5a11a;
  --orange-soft: #fff2d9;
  --purple: #8056d8;
  --purple-soft: #f2eaff;
  --red: #d94a4a;
  --red-soft: #fff0f0;
  --paper: #fffdf8;
  --shadow: 0 18px 45px rgba(19, 33, 70, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(82, 130, 220, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 44%, #fff7ea 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, var(--navy-dark), #1e3267 54%, var(--navy-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(13, 23, 55, 0.2);
}

.nav-shell {
  width: min(100%, 1260px);
  min-height: 70px;
  margin: 0 auto;
  padding: 12px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
}

.brand-mark svg {
  width: 44px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link,
.tip-pill {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-link {
  padding: 12px 17px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: rgba(108, 146, 226, 0.75);
  color: #fff;
  outline: none;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.tip-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  color: #ffe28f;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
}

.tip-pill::before {
  content: "";
  width: 13px;
  height: 13px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: -1px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 94%, 50% 71%, 19% 94%, 31% 56%, 0 35%, 38% 35%);
}

.poster {
  width: min(100% - 40px, 1180px);
  margin: 36px auto 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(620px, 1.4fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 94px);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--navy);
}

.num {
  font-size: 1.08em;
  font-weight: 900;
}

.num-blue {
  color: #4f82db;
}

.num-green {
  color: #68b55e;
}

.num-orange {
  color: #ffae13;
}

.num-purple {
  color: #8c5ce3;
}

.dot {
  color: var(--navy);
  margin: 0 0.02em;
}

.hero-kicker {
  margin: 20px 0 12px;
  color: #263a76;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.hero-subtitle {
  max-width: 430px;
  margin: 0;
  color: #06132f;
  font-size: 18px;
}

.hero-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.step-card {
  min-height: 238px;
  padding: 18px 16px 14px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.step-card .icon-wrap {
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
}

.step-card svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.step-card strong {
  font-size: 28px;
  line-height: 1;
}

.step-card h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.step-card p {
  margin: 0;
  color: #09152f;
  font-size: 15px;
}

.step-blue {
  color: #315fba;
  background: linear-gradient(180deg, #edf3ff, #e6eefc);
}

.step-green {
  color: #57964d;
  background: linear-gradient(180deg, #eef9ec, #e8f2e6);
}

.step-orange {
  color: #f39910;
  background: linear-gradient(180deg, #fff3df, #ffecd3);
}

.step-purple {
  color: #6541bc;
  background: linear-gradient(180deg, #f6eefe, #eee5fb);
}

.flow-arrow {
  color: #26314e;
  font-size: 34px;
  font-weight: 800;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 24px rgba(35, 55, 100, 0.08);
}

.detail-panel {
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(253, 250, 255, 0.96));
}

.detail-panel > h2,
.bank-panel > h2 {
  margin: 0 0 14px 6px;
  color: var(--navy);
  font-size: 25px;
}

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

.detail-column {
  min-height: 520px;
  border: 1px solid;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.detail-column header {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.detail-column header h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1;
  text-transform: uppercase;
}

.detail-column header h3 span {
  font-size: 29px;
}

.detail-column header svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(255, 255, 255, 0.9);
}

.detail-column > p,
.detail-column ul,
.phrase-box {
  margin-left: 14px;
  margin-right: 14px;
}

.detail-column p,
.detail-column li {
  font-size: 15px;
}

.detail-column ul {
  padding-left: 17px;
}

.detail-column li {
  margin: 13px 0;
}

.lead {
  font-weight: 800;
}

.lead.strong {
  color: #0b1737;
}

.detail-blue {
  border-color: #bfd3f7;
  background: linear-gradient(180deg, #fbfdff, #f6fbff);
}

.detail-blue header {
  background: linear-gradient(135deg, #5e91dc, #3d6fbf);
}

.detail-green {
  border-color: #b7daa9;
  background: linear-gradient(180deg, #fbfffb, #f8fff5);
}

.detail-green header {
  background: linear-gradient(135deg, #86bf69, #5ea34f);
}

.detail-orange {
  border-color: #ffd292;
  background: linear-gradient(180deg, #fffdf8, #fff9ee);
}

.detail-orange header {
  background: linear-gradient(135deg, #ffbd3d, #f59d14);
}

.detail-purple {
  border-color: #cebaf3;
  background: linear-gradient(180deg, #fefbff, #fbf7ff);
}

.detail-purple header {
  background: linear-gradient(135deg, #9d79e4, #7e56d5);
}

.or-tag {
  width: 34px;
  padding: 4px 0;
  border-radius: 5px;
  background: #5aa84c;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
}

.phrase-box {
  padding: 12px 14px;
  border: 1px solid #bca9ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.phrase-box + .phrase-box {
  margin-top: 12px;
}

.phrase-box h4 {
  margin: 0 0 8px;
  color: #5230a9;
  font-size: 18px;
}

.mini-illustration {
  position: relative;
  margin: auto auto 26px;
}

.notebook {
  width: 118px;
  height: 128px;
  border: 8px solid #314f83;
  border-top: none;
  border-right: none;
  border-radius: 8px;
  transform: rotate(-13deg);
  background: #fffaf3;
  box-shadow: 13px 10px 0 rgba(48, 78, 131, 0.14);
}

.paper-lines {
  position: absolute;
  inset: 18px 18px 18px 22px;
  background: repeating-linear-gradient(180deg, #e0c6aa 0 2px, transparent 2px 18px);
}

.pencil {
  position: absolute;
  width: 18px;
  height: 88px;
  right: 10px;
  bottom: 14px;
  border-radius: 9px;
  background: linear-gradient(90deg, #f5b24a 0 55%, #ffcf76 55% 75%, #3e556f 75%);
  transform: rotate(35deg);
}

.target {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #e54d4d 0 10px, #fff 10px 20px);
}

.target span {
  position: absolute;
  width: 68px;
  height: 8px;
  background: #b77c2a;
  transform: rotate(-23deg);
  right: -24px;
  top: 28px;
}

.target span::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -7px;
  width: 0;
  height: 0;
  border-left: 18px solid #d59035;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.reader {
  width: 130px;
  height: 120px;
}

.reader .head {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 88px;
  height: 104px;
  border-radius: 54% 45% 42% 52%;
  background: #ffd7c6;
}

.reader .heart {
  position: absolute;
  right: 5px;
  top: 34px;
  width: 42px;
  height: 42px;
  background: #e84f5b;
  transform: rotate(45deg);
}

.reader .heart::before,
.reader .heart::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: inherit;
}

.reader .heart::before {
  left: -22px;
}

.reader .heart::after {
  top: -22px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.template-panel {
  margin-top: 14px;
  padding: 16px 14px 12px;
  background: linear-gradient(135deg, #f1f7ff, #ffffff 52%, #eef5ff);
  overflow: hidden;
}

.template-panel .section-heading {
  color: #1e447e;
  margin-bottom: 10px;
}

.template-content {
  display: grid;
  grid-template-columns: 1fr 1.35fr 210px;
  gap: 16px;
  align-items: stretch;
}

.formula-card,
.example-card {
  min-height: 150px;
  padding: 18px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.formula-card {
  position: relative;
}

.formula-card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: calc(50% - 22px);
  border-left: 26px solid rgba(255, 255, 255, 0.82);
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

.formula-card p,
.example-card p {
  margin: 0 0 10px;
}

.example-card h3 {
  margin: 0 0 8px;
  color: #1555be;
  font-size: 22px;
}

.purpose {
  color: #4a9a35;
  font-weight: 900;
}

.technique {
  color: #0950bb;
  font-weight: 900;
}

.effect {
  color: #f5a11a;
  font-weight: 900;
}

.student-illustration {
  min-height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.student-illustration-svg {
  width: min(240px, 100%);
  height: auto;
  display: block;
  overflow: visible;
}

.lower-layout {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.tips-panel {
  padding: 16px 10px 10px;
  background: linear-gradient(180deg, #fff2f2, #fff8f5);
  border-color: #f5c9c9;
}

.red-heading {
  color: var(--red);
  margin: 0 12px 12px;
}

.red-heading h2 {
  color: var(--red);
  font-size: 26px;
}

.tip-list {
  display: grid;
  gap: 8px;
}

.tip-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #facdcd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.tip-item h3 {
  margin: 0 0 4px;
  color: #d33c3c;
  font-size: 15px;
}

.tip-item p {
  margin: 0;
  font-size: 13px;
}

.tip-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9da5, #f06e77);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  flex: 0 0 auto;
}

.svg-tip-icon {
  padding: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.svg-tip-icon.warm {
  background: linear-gradient(135deg, #ffd782, #f2ae39);
}

.bank-panel {
  padding: 16px 10px 10px;
  background: linear-gradient(180deg, #f8fbff, #fffdf8);
}

.sentence-bank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bank-card {
  border: 1px solid;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.bank-card header {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-bottom: 1px solid;
  text-align: center;
}

.bank-card h3 {
  margin: 0;
  font-size: 14px;
}

.bank-card h4 {
  margin: 6px 10px 10px;
  text-align: center;
  font-size: 15px;
}

.bank-card h4 span {
  font-size: 12px;
}

.bank-card ul {
  margin: 0;
  padding: 0 14px 16px 25px;
}

.bank-card li {
  margin: 11px 0;
  font-size: 13px;
}

.bank-blue {
  border-color: #b8ccf5;
}

.bank-blue header {
  color: #1450ad;
  background: #eef4ff;
  border-color: #b8ccf5;
}

.bank-green {
  border-color: #c9dfb9;
}

.bank-green header {
  color: #276e24;
  background: #f0faec;
  border-color: #c9dfb9;
}

.bank-orange {
  border-color: #f6d497;
}

.bank-orange header {
  color: #d76c00;
  background: #fff3d7;
  border-color: #f6d497;
}

.bank-purple {
  border-color: #cdb9f0;
}

.bank-purple header {
  color: #5830b2;
  background: #f3ecff;
  border-color: #cdb9f0;
}

.bank-icon {
  width: 44px;
  height: 44px;
  margin: 14px auto 4px;
  color: #526899;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.bank-icon.amber {
  color: #b99355;
}

.bank-icon.purple {
  color: #8b63d6;
}

.study-band {
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff9ed, #fff0c8 52%, #fff6df);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  color: #8d4c05;
}

.study-left,
.study-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.study-left {
  border-right: 1px solid rgba(219, 165, 72, 0.42);
  padding-right: 24px;
}

.study-left strong {
  font-size: 20px;
}

.study-left p,
.study-right p {
  margin: 0;
  color: #0c1736;
  font-size: 15px;
}

.study-right {
  justify-content: center;
  color: #b15a00;
  font-weight: 800;
}

.study-icon {
  width: 34px;
  height: 44px;
  border: 3px solid #8ea2bc;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, #fff 0 8px, #e7eff8 8px 11px);
}

.rocket {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #f4a35a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  flex: 0 0 auto;
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }

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

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .flow-arrow {
    display: none;
  }

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

  .lower-layout,
  .template-content {
    grid-template-columns: 1fr;
  }

  .formula-card::after {
    display: none;
  }

  .student-illustration {
    min-height: 190px;
  }
}

@media (max-width: 720px) {
  .poster {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
  }

  .nav-shell {
    padding: 10px;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links {
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 12px;
  }

  .tip-pill {
    display: none;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 72px);
  }

  .hero-kicker {
    font-size: 23px;
  }

  .hero-steps,
  .detail-grid,
  .sentence-bank,
  .study-band {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 180px;
  }

  .detail-column {
    min-height: auto;
  }

  .formula-card,
  .example-card {
    padding: 16px;
    font-size: 16px;
  }

  .section-heading h2,
  .detail-panel > h2,
  .bank-panel > h2 {
    font-size: 23px;
  }

  .tip-item {
    grid-template-columns: 52px 1fr;
    padding: 10px;
  }

  .tip-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .study-left {
    border-right: 0;
    border-bottom: 1px solid rgba(219, 165, 72, 0.42);
    padding: 0 0 14px;
  }

  .study-right {
    justify-content: flex-start;
  }
}
