:root {
  --primary: #fa6400;
  --primary-dark: #d24f00;
  --ink: #2c2c2c;
  --muted: #2c2c2c;
  --paper: #fff7f0;
  --surface: #ffffff;
  --stroke: rgba(15, 23, 42, 0.08);
  --shadow: 0 28px 60px -40px rgba(15, 23, 42, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-body: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #fff1e7, #fefcfb 40%, #f9f3ee 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(250, 100, 0, 0.35), rgba(250, 100, 0, 0));
  top: -120px;
  left: -80px;
}

.orb-two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(18, 121, 255, 0.18), rgba(18, 121, 255, 0));
  right: -160px;
  top: 120px;
  animation-delay: -4s;
}

.orb-three {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 186, 106, 0.4), rgba(255, 186, 106, 0));
  bottom: -120px;
  left: 20%;
  animation-delay: -8s;
}

.site-header {
  padding: 28px 0;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(250, 100, 0, 0.12);
  color: var(--ink);
}

.hero {
  padding: 40px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw + 1.6rem, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(250, 100, 0, 0.8);
}

.button.primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: #fff;
}


.hero-card {
  background: #fff;
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.phone {
  max-width: 360px;
  margin: 0 auto;
  transform: rotate(-5deg);
  transition: transform 0.5s ease;
}

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

.app-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.85rem;
}

.notch {
  width: 120px;
  height: 26px;
  border-radius: 999px;
  background: #0b0b0b;
}

.status-icons {
  display: inline-flex;
  gap: 6px;
}

.status-icons .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.5);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #374151;
}

.flame {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #ffb870, #fa6400 70%);
  display: inline-block;
}

.word-card {
  background: #f3f3f3;
  border-radius: 22px;
  padding: 18px 18px 22px;
  text-align: center;
  color: #4b5563;
}

.card-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.card-date {
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.word-center {
  display: grid;
  gap: 6px;
  place-items: center;
}

.hanzi {
  font-size: 2.1rem;
  font-weight: 600;
  color: #111827;
}

.pinyin {
  color: var(--primary);
  font-weight: 600;
}

.meaning {
  color: #6b7280;
}

.sentence {
  color: #9ca3af;
  font-size: 0.85rem;
}

.section-title {
  font-weight: 600;
  color: #374151;
  margin-top: 4px;
}

.progress-pill {
  background: linear-gradient(130deg, #ff7a1a, #ff9a4d);
  color: #fff;
  border-radius: 20px;
  padding: 14px 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 16px 30px -24px rgba(250, 100, 0, 0.8);
  position: relative;
}

.pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.progress-pill strong {
  display: block;
  font-size: 0.95rem;
}

.progress-pill span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.pill-score {
  font-weight: 600;
}

.pill-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.deck-card {
  background: #f6f6f6;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.deck-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffedd5;
  color: #9a3412;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.deck-meta {
  display: grid;
  gap: 2px;
}

.deck-meta span {
  color: #6b7280;
  font-size: 0.8rem;
}

.deck-pill {
  background: #e7f7ee;
  color: #22c55e;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.tab {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

.tab.active {
  background: var(--primary);
}

.features {
  padding: 80px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1vw + 1.6rem, 2.6rem);
}

.section-head p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.4);
}

.feature-card h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
}

.flow {
  padding: 80px 0 100px;
}

.flow-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.flow-steps {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stroke);
}

.step span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}



.cta {
  padding: 70px 0 90px;
}

.cta-grid {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1vw + 1.4rem, 2.4rem);
}

.cta-grid p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.legal {
  padding: 40px 0 80px;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1vw + 1.6rem, 2.6rem);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.promo {
  padding: 40px 0 80px;
}

.promo-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.promo-card,
.promo-result {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.promo-result .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
}

.code-box {
  margin: 12px 0 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(250, 100, 0, 0.6);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  background: #fff7f0;
}

.promo-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.promo-details {
  margin-top: 30px;
}

.promo-details details {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 16px 18px;
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.4);
}

.promo-details summary {
  font-weight: 600;
  cursor: pointer;
}

.details-body {
  margin-top: 12px;
  color: var(--muted);
}

.details-body ol {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(14px); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

}

@media (max-width: 700px) {
  .hero {
    padding-top: 20px;
  }

  .card-actions {
    flex-direction: column;
  }

  .panel-foot {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .reveal {
    animation: none;
  }
}
