/* ============================================
   PlanLock / 计划锁 — Official Website Styles
   ============================================ */

/* --- Variables --- */
:root {
  --stone-50:  rgb(250, 250, 249);
  --stone-100: rgb(245, 245, 243);
  --stone-200: rgb(231, 229, 228);
  --stone-300: rgb(214, 211, 209);
  --stone-400: rgb(168, 162, 158);
  --stone-500: rgb(120, 113, 108);
  --stone-600: rgb(87, 83, 78);
  --stone-700: rgb(68, 64, 60);
  --stone-800: rgb(41, 37, 36);

  --coral-400: rgb(255, 138, 107);
  --coral-500: rgb(244, 109, 74);
  --coral-600: rgb(226, 84, 53);

  --sage-50:  rgb(246, 247, 244);
  --sage-200: rgb(212, 218, 198);
  --sage-400: rgb(150, 166, 122);
  --sage-500: rgb(122, 140, 93);
  --sage-600: rgb(95, 111, 72);
  --sage-700: rgb(74, 87, 58);

  --font-en: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-zh: -apple-system, 'PingFang SC', 'Hiragino Sans GB', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 4px rgba(41,37,36,.06);
  --shadow-md: 0 4px 16px rgba(41,37,36,.08);
  --shadow-lg: 0 12px 40px rgba(41,37,36,.10);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: var(--font-zh);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.lang-en body, [lang="en"] {
  font-family: var(--font-en);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--stone-800);
}

.accent { color: var(--coral-500); }
.accent-sage { color: var(--sage-500); }

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

/* ==============================
   NAV
   ============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250,250,249,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
  transition: box-shadow .2s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--coral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nav__logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--stone-300);
  background: transparent;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}

.btn-lang:hover {
  border-color: var(--coral-500);
  color: var(--coral-500);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--stone-800);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, transform .14s;
}

.btn-download-nav:hover {
  background: var(--coral-600);
  transform: translateY(-1px);
}

/* ==============================
   HERO
   ============================== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgb(244,109,74,.1);
  color: var(--coral-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.8); }
}

.hero__app-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--stone-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__headline {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subhead {
  font-size: 18px;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--stone-800);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .18s, transform .14s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--coral-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,109,74,.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--stone-300);
  color: var(--stone-600);
  font-size: 14px;
  font-weight: 500;
  transition: all .18s;
}

.btn-secondary:hover {
  border-color: var(--stone-600);
  color: var(--stone-800);
}

/* Mock UI in Hero */
.hero__visual {
  position: relative;
}

.mock-window {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--stone-200);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}

.mock-window:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: var(--stone-100);
  border-bottom: 1px solid var(--stone-200);
}

.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mock-dot--red   { background: #ff5f57; }
.mock-dot--yellow { background: #febc2e; }
.mock-dot--green  { background: #28c840; }

.mock-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--stone-400);
  font-weight: 500;
}

.mock-body {
  padding: 28px 24px;
}

.mock-unlock-prompt {
  text-align: center;
  padding: 20px 0 24px;
}

.mock-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(244,109,74,.3);
}

.mock-lock-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.mock-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--stone-800);
  margin-bottom: 4px;
}

.mock-question-sub {
  font-size: 12px;
  color: var(--stone-400);
}

.mock-tasks {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--stone-200);
  cursor: pointer;
  transition: all .16s;
  background: var(--stone-50);
}

.mock-task.active {
  border-color: var(--coral-500);
  background: rgb(244,109,74,.06);
}

.mock-task-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--stone-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-task.active .mock-task-check {
  background: var(--coral-500);
  border-color: var(--coral-500);
}

.mock-task.active .mock-task-check::after {
  content: '';
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg) translateY(-1px);
  display: block;
}

.mock-task-text {
  font-size: 13px;
  color: var(--stone-700);
  font-weight: 500;
}

.mock-task.active .mock-task-text {
  color: var(--coral-600);
}

.mock-task-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--sage-500);
  font-weight: 500;
}

.mock-progress-bar {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
}

.mock-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sage-600);
  font-weight: 500;
  margin-bottom: 8px;
}

.mock-progress-track {
  height: 4px;
  border-radius: 2px;
  background: var(--sage-200);
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  width: 66%;
  border-radius: 2px;
  background: var(--sage-500);
  animation: grow 2s ease-out forwards;
}

@keyframes grow {
  from { width: 0; }
  to { width: 66%; }
}

/* Floating decorations */
.hero__deco {
  position: absolute;
  pointer-events: none;
}

.hero__deco-1 {
  top: -20px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,109,74,.15) 0%, transparent 70%);
}

.hero__deco-2 {
  bottom: -40px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,140,93,.2) 0%, transparent 70%);
}

/* ==============================
   INTRO / CORE CONCEPT
   ============================== */
.intro {
  background: var(--stone-800);
  padding: 80px 0;
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.intro__question {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro__question .accent {
  color: var(--coral-400);
}

.intro__answer {
  font-size: 17px;
  color: rgba(250,250,249,.75);
  line-height: 1.75;
}

.intro__answer strong {
  color: #fff;
  font-weight: 600;
}

.intro__highlight {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(244,109,74,.15);
  border-left: 3px solid var(--coral-500);
  font-size: 16px;
  font-style: italic;
  color: rgba(250,250,249,.9);
  line-height: 1.5;
}

/* ==============================
   FEATURES
   ============================== */
.features {
  padding: 100px 0;
}

.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-500);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--stone-500);
  max-width: 480px;
  line-height: 1.7;
}

.features__header {
  margin-bottom: 60px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--stone-200);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--stone-300);
}

.feature-card--accent {
  background: linear-gradient(135deg, var(--stone-800) 0%, var(--stone-700) 100%);
  border-color: transparent;
  color: #fff;
}

.feature-card--accent .feature-card__title,
.feature-card--accent .feature-card__desc {
  color: rgba(250,250,249,.9);
}

.feature-card--accent .feature-card__title {
  color: #fff;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--stone-100);
}

.feature-card--accent .feature-card__icon {
  background: rgba(244,109,74,.2);
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--stone-800);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--stone-500);
  line-height: 1.65;
}

/* ==============================
   PHILOSOPHY
   ============================== */
.philosophy {
  background: linear-gradient(135deg, rgb(250,240,235) 0%, rgb(246,247,244) 100%);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}

.philosophy__inner {
  position: relative;
  z-index: 1;
}

.philosophy__quote-mark {
  font-size: 120px;
  line-height: 1;
  color: var(--coral-500);
  opacity: .15;
  font-family: Georgia, serif;
  position: absolute;
  top: -30px;
  left: -20px;
  pointer-events: none;
  z-index: 0;
}

.philosophy__content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.philosophy__chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.philosophy__line {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--stone-700);
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.25;
}

.philosophy__line .connector {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--stone-400);
  font-family: Georgia, serif;
  font-style: italic;
}

.philosophy__line .key-word {
  color: var(--coral-500);
  position: relative;
}

.philosophy__line .key-word::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--coral-500);
  opacity: .4;
}

.philosophy__deco-circle {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(244,109,74,.15);
  z-index: 0;
}

.philosophy__deco-circle::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,109,74,.1);
}

/* ==============================
   WHO IT'S FOR
   ============================== */
.who {
  padding: 100px 0;
}

.who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
}

.who-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--stone-200);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

.who-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.who-card__emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.who-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--stone-800);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.who-card__desc {
  font-size: 13.5px;
  color: var(--stone-500);
  line-height: 1.6;
}

/* ==============================
   PRIVACY
   ============================== */
.privacy {
  padding: 60px 0;
  border-top: 1px solid var(--stone-200);
}

.privacy__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.privacy__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-50);
  border: 1.5px solid var(--sage-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.privacy__text {
  font-size: 15px;
  color: var(--stone-500);
  line-height: 1.6;
}

.privacy__text strong {
  color: var(--stone-700);
}

.privacy__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.privacy__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--sage-200);
  background: var(--sage-50);
  color: var(--sage-600);
  font-size: 12px;
  font-weight: 500;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--stone-200);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--coral-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.footer__brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-800);
}

.footer__copy {
  font-size: 13px;
  color: var(--stone-400);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-size: 13px;
  color: var(--stone-400);
  transition: color .16s;
}

.footer__link:hover {
  color: var(--stone-700);
}

/* ==============================
   LANGUAGE VISIBILITY
   ============================== */
[data-lang] { display: none; }
[data-lang].lang-visible { display: block; }
[data-lang-inline] { display: none; }
[data-lang-inline].lang-visible { display: inline; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .mock-window {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
  }

  .intro__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .philosophy__deco-circle {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 70px 0;
  }

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

  .hero__headline {
    font-size: 34px;
  }

  .nav__actions .btn-download-nav {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .privacy__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }
.fade-up-delay-5 { transition-delay: .5s; }
