:root {
  --bg: #f3f5ef;
  --bg-deep: #e7ebe1;
  --surface: #fbfcf8;
  --ink: #1c241c;
  --ink-soft: #5a6558;
  --ink-faint: #8a9486;
  --line: rgba(28, 36, 28, 0.1);
  --sage: #6f8468;
  --sage-deep: #5a6d54;
  --sage-soft: #d8e2d4;
  --leaf: #86977d;
  --amber: #d4a574;
  --amber-soft: #f3e6d4;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 28px 60px -36px rgba(28, 36, 28, 0.45);
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(243, 245, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--sage-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--sage);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}

.header-cta:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

.header-cta--ghost {
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid rgba(90, 109, 84, 0.28);
}

.header-cta--ghost:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 0.9575rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(28, 36, 28, 0.18);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--sage);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(134, 151, 125, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(212, 165, 116, 0.18), transparent 50%),
    linear-gradient(165deg, #eef1e8 0%, #f3f5ef 42%, #e4ebe0 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(111, 132, 104, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 132, 104, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero-vine {
  position: absolute;
  left: -20px;
  bottom: 8%;
  width: min(180px, 22vw);
  color: var(--leaf);
  opacity: 0.45;
}

.vine-path {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: vine-draw 2.4s ease forwards 0.4s;
}

.vine-leaf {
  opacity: 0;
  transform-origin: center;
  animation: leaf-in 0.7s ease forwards;
}

.vine-leaf:nth-child(2) { animation-delay: 1.1s; }
.vine-leaf:nth-child(3) { animation-delay: 1.35s; }
.vine-leaf:nth-child(4) { animation-delay: 1.55s; }
.vine-leaf:nth-child(5) { animation-delay: 1.75s; }

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
}

.hero-copy {
  max-width: 560px;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--sage-deep);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero .lead {
  margin: 0 0 32px;
  max-width: 420px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 340px);
  animation: float-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.phone-stage {
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: 18% 8% -8%;
  background: radial-gradient(ellipse at center, rgba(111, 132, 104, 0.35), transparent 70%);
  filter: blur(18px);
  z-index: 0;
  animation: glow-pulse 5s ease-in-out infinite;
}

.phone-shell {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #2f3a2e, #1a2119);
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow);
  animation: phone-float 6.5s ease-in-out infinite;
}

.phone-bezel {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #f4f6f0;
}

.phone-screen {
  position: relative;
  background:
    linear-gradient(180deg, #f7f8f3 0%, #eef2ea 100%);
  min-height: 560px;
  padding: 22px 12px 14px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 0 4px;
}

.mock-top strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mock-top span {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

.mock-chip {
  border: none;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: inherit;
}

.mock-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 12px;
}

.mock-day {
  text-align: center;
  padding: 6px 0;
  border-radius: 12px;
  color: var(--ink-faint);
}

.mock-day small {
  display: block;
  font-size: 0.5625rem;
  line-height: 1;
  margin-bottom: 4px;
}

.mock-day b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1;
}

.mock-day.is-today {
  background: var(--sage);
  color: rgba(255, 255, 255, 0.8);
}

.mock-day.is-today b {
  color: #fff;
}

.mock-timetable {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px;
  height: 420px;
}

.mock-axis {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
}

.mock-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
  color: var(--ink-faint);
}

.mock-period b {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1;
}

.mock-period span {
  margin-top: 2px;
  font-size: 0.5rem;
  transform: scale(0.92);
  transform-origin: top center;
  opacity: 0.85;
}

.mock-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  padding: 3px;
  background: rgba(28, 36, 28, 0.04);
  border-radius: 12px;
  overflow: hidden;
}

.mock-course {
  position: relative;
  z-index: 1;
  border-radius: 7px;
  padding: 4px 3px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: slot-in 0.65s ease both;
}

.mock-course em {
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-course small {
  font-size: 0.4375rem;
  opacity: 0.9;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-course.c1 { background: linear-gradient(160deg, #7d9474, #657a5e); }
.mock-course.c2 { background: linear-gradient(160deg, #c99962, #b07f4a); }
.mock-course.c3 { background: linear-gradient(160deg, #6d8f99, #56747d); }
.mock-course.c4 { background: linear-gradient(160deg, #9a8d68, #7f7454); }
.mock-course.c5 { background: linear-gradient(160deg, #6f8468, #576956); }

.mock-course.r1-2 { grid-row: 1 / 3; }
.mock-course.r3-4 { grid-row: 3 / 5; }
.mock-course.r5-6 { grid-row: 5 / 7; }
.mock-course.r7-8 { grid-row: 7 / 9; }
.mock-course.d1 { grid-column: 1; animation-delay: 0.5s; }
.mock-course.d2 { grid-column: 2; animation-delay: 0.58s; }
.mock-course.d3 { grid-column: 3; animation-delay: 0.66s; }
.mock-course.d4 { grid-column: 4; animation-delay: 0.74s; }
.mock-course.d5 { grid-column: 5; animation-delay: 0.82s; }

/* ——— Sections ——— */

.section {
  padding: 96px 0;
}

.section-intro {
  max-width: 520px;
  margin-bottom: 48px;
}

.section-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* Features — list, not cards */

.features {
  background:
    linear-gradient(180deg, transparent, rgba(231, 235, 225, 0.65) 12%, rgba(231, 235, 225, 0.65) 88%, transparent);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.feature-item:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.feature-item:nth-child(even) {
  padding-left: 32px;
}

.feature-item.is-visible {
  opacity: 1;
  transform: none;
}

.feature-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.feature-mark svg {
  width: 22px;
  height: 22px;
}

.feature-item h3 {
  margin: 2px 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Get app */

.get-app {
  padding-top: 48px;
  padding-bottom: 48px;
}

.get-app-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 56px clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(111, 132, 104, 0.14), transparent 48%),
    linear-gradient(180deg, #fbfcf8, #eef2ea);
  border: 1px solid var(--line);
}

.get-app-copy .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #8a6238;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.get-app-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.get-app-copy p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 420px;
}

.get-app-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.get-app-note {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* Contact */

.contact-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

a.contact-row:hover {
  color: var(--sage-deep);
}

.contact-row span {
  color: var(--ink-faint);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.contact-row strong {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* Footer */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.site-footer a:hover {
  color: var(--sage-deep);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-meta p {
  margin: 0;
}

/* ——— Motion ——— */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

@keyframes vine-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes leaf-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes slot-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-grid-bg,
  .phone-shell,
  .phone-glow {
    animation: none;
  }
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 108px 0 64px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 300px);
  }

  .hero-vine {
    opacity: 0.28;
    width: 120px;
  }

  .phone-screen {
    min-height: 540px;
  }

  .mock-timetable {
    height: 390px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(odd),
  .feature-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

  .get-app-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .get-app-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .get-app-actions {
    align-items: center;
  }

  .contact-rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 252, 248, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--sage-soft);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .section {
    padding: 72px 0;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 14vw, 3.6rem);
  }

  .get-app-inner {
    padding: 36px 24px;
  }

  .get-app-actions .btn {
    width: 100%;
  }
}
