:root {
  --ink: #1f2a44;
  --muted: #687488;
  --paper: #fffaf4;
  --soft: #fff6ee;
  --line: rgba(232, 210, 190, 0.82);
  --orange: #f1702f;
  --orange-soft: #ffe4d2;
  --green-soft: #e9f8ee;
  --blue-soft: #edf4ff;
  --shadow: rgba(169, 119, 73, 0.1);
  --header-height: 74px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 199, 149, 0.32), transparent 26rem),
    radial-gradient(circle at 0 78%, rgba(255, 225, 195, 0.28), transparent 22rem),
    linear-gradient(180deg, #fff7f0 0%, var(--paper) 48%, #fffdf9 100%);
  font-family:
    "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial,
    sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.98) 0%, rgba(255, 247, 240, 0.9) 74%, rgba(255, 247, 240, 0) 100%);
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: #5f5d5a;
  font-size: 14px;
  font-weight: 600;
}

.site-header a {
  transition: color 180ms ease;
}

.site-header a:hover {
  color: var(--orange);
}

.hero,
.section,
.site-footer {
  padding-right: clamp(22px, 5vw, 72px);
  padding-left: clamp(22px, 5vw, 72px);
}

.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.hero-inner,
.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(440px, 58vh, 620px);
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 120px);
}

.hero-inner::before {
  position: absolute;
  inset: 4% 0 auto auto;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border-radius: 48% 52% 44% 56%;
  content: "";
  z-index: 0;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, rgba(255, 229, 214, 0.84), rgba(255, 245, 227, 0.58));
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  margin: 0 0 28px;
  border: 1px solid rgba(245, 222, 201, 0.95);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(203, 152, 105, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(72px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  width: 100%;
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-note {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  border-top: 1px solid rgba(31, 42, 68, 0.18);
  padding-top: 22px;
}

.hero-note span {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.hero-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 28px rgba(241, 112, 47, 0.22);
}

.button--plain {
  border: 1px solid var(--line);
  color: #5f5d5a;
  background: rgba(255, 255, 255, 0.72);
}

.button--plain:hover {
  color: var(--orange);
}

.section {
  padding-top: clamp(66px, 8vw, 110px);
  padding-bottom: clamp(66px, 8vw, 110px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(241, 112, 47, 0.1);
}

.section h2,
.program h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.feature-item {
  position: relative;
  padding-top: 32px;
}

.feature-card__label {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.feature-item h3 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-item p,
.program-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-item p {
  margin: 18px 0 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.routine-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.routine-inner .section-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.routine-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.routine-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.routine-item span {
  color: var(--orange);
  font-weight: 900;
}

.routine-item p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.program {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0), rgba(237, 246, 241, 0.86));
}

.program-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
}

.program .section-head {
  align-items: flex-start;
}

.program-copy p {
  width: min(640px, 100%);
  margin: 28px 0 0;
  font-size: 18px;
}

.app-showcase {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
}

.app-showcase__glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.app-showcase__glow--top {
  top: 20px;
  right: 16px;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(255, 201, 153, 0.34), rgba(255, 201, 153, 0));
}

.app-showcase__glow--bottom {
  bottom: 28px;
  left: 4px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(167, 220, 184, 0.28), rgba(167, 220, 184, 0));
}

.phone-preview {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  min-height: 590px;
  border: 10px solid #28352f;
  border-radius: 44px;
  padding: 18px;
  background: #fffaf3;
  box-shadow:
    0 34px 70px rgba(63, 109, 92, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotate(1.5deg);
  transition: transform 220ms ease;
}

.phone-preview:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-top {
  width: 86px;
  height: 8px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: #28352f;
}

.phone-screen {
  min-height: 530px;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(241, 112, 47, 0.2), transparent 30%),
    linear-gradient(160deg, #eef6f1, #fff8ed 68%);
}

.screen-header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.screen-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #f1702f;
  background: rgba(255, 244, 234, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.screen-header p {
  margin: 0;
  color: #8c96a8;
  font-size: 12px;
  font-weight: 700;
}

.screen-header > strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.record-card,
.growth-panel {
  border: 1px solid rgba(235, 225, 213, 0.78);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(35, 44, 60, 0.04);
}

.record-card + .record-card,
.growth-panel {
  margin-top: 12px;
}

.record-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}

.record-card__title span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

.attendance-line {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.attendance-line div {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 14px;
  padding: 10px 6px;
  background: #f6f8fb;
}

.attendance-line div.is-active {
  background: #fff1e7;
}

.attendance-line strong {
  color: var(--ink);
  font-size: 15px;
}

.attendance-line span {
  color: #8b94a5;
  font-size: 12px;
}

.attendance-line i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 112, 47, 0.22), rgba(241, 112, 47, 0.72));
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.meal-grid div {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 12px;
  background: #fff8ea;
}

.meal-grid span,
.bar-list span {
  color: #8b94a5;
  font-size: 12px;
  font-weight: 700;
}

.meal-grid strong {
  color: #9c6417;
  font-size: 14px;
}

.homework-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.homework-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #4a72b2;
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
}

.homework-row p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.homework-row b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5fb878;
  font-size: 14px;
}

.bar-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bar-list div {
  display: grid;
  gap: 6px;
}

.bar-list i {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #edf0f4;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-fill--focus {
  width: 88%;
  background: linear-gradient(90deg, #ffbd7a, #f1702f);
}

.bar-fill--habit {
  width: 74%;
  background: linear-gradient(90deg, #9bdcb0, #4fa96c);
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(236, 224, 211, 0.86);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(35, 44, 60, 0.09);
  color: var(--ink);
  font-size: 13px;
  animation: floatNote 5s ease-in-out infinite;
}

.floating-note span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}

.floating-note--left {
  left: 0;
  bottom: 92px;
}

.floating-note--right {
  top: 118px;
  right: 0;
  animation-delay: 0.8s;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #1f2a44;
  color: #fffaf3;
}

.site-footer strong {
  font-size: 18px;
}

.site-footer p,
.footer-meta {
  margin: 8px 0 0;
  color: rgba(255, 250, 243, 0.68);
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  font-size: 14px;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatNote {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 66px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-inner {
    min-height: auto;
    display: grid;
    gap: 34px;
  }

  .hero-inner::before {
    right: -64px;
    top: 24px;
    width: 280px;
    height: 280px;
    opacity: 0.34;
  }

  .hero h1 {
    font-size: clamp(56px, 16vw, 88px);
  }

  .feature-row,
  .routine-inner,
  .program-inner {
    grid-template-columns: 1fr;
  }

  .feature-row {
    gap: 0;
  }

  .feature-item {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .routine-list {
    margin-top: 12px;
  }

  .app-showcase {
    min-height: auto;
    justify-items: start;
  }

  .phone-preview {
    justify-self: start;
    width: min(360px, calc(100vw - 44px));
  }

  .floating-note {
    position: relative;
    inset: auto;
    justify-self: start;
    margin-top: 12px;
  }

  .floating-note--right {
    display: none;
  }
}

@media (max-width: 540px) {
  .hero,
  .section,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section h2,
  .program h2 {
    font-size: 34px;
    line-height: 1.14;
  }

  .hero-copy,
  .program-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .routine-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
  }

  .footer-meta {
    justify-items: start;
  }
}
