/* ============================================
   EFFORTLESS CHINESE — style.css
   ============================================ */

/* 1. CUSTOM PROPERTIES
   -------------------------------------------- */
:root {
  --white: #FFFFFF;
  --offwhite: #FAFAFA;
  --ink: #1A1A1A;
  --body: #4A4A4A;
  --muted: #8A8A8A;
  --border: #E5E5E5;
  --teal: #2E9E8C;
  --teal-hover: #257E70;
  --teal-light: rgba(46,158,140,0.08);

  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-zh-serif: 'Noto Serif SC', 'Songti SC', serif;

  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 80px;
  --sp-2xl: 120px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. RESET & BASE
   -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
img { max-width: 100%; height: auto; display: block; }

.hz {
  font-family: var(--font-zh);
  letter-spacing: 0.05em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 3. LAYOUT
   -------------------------------------------- */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section {
  padding: var(--sp-xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--offwhite);
}

/* 4. NAVIGATION
   -------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) 0;
}

.nav-brand {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand:hover { color: var(--teal); }

.nav-links {
  display: flex;
  gap: var(--sp-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

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

/* 5. HERO
   -------------------------------------------- */
.hero {
  padding: var(--sp-2xl) 0 var(--sp-xl);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
}

.hero h1 {
  margin-bottom: var(--sp-md);
  max-width: 14em;
}

.hero-lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--body);
  max-width: 32em;
  line-height: 1.6;
  margin-bottom: var(--sp-lg);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.hero-cta:hover {
  background: var(--teal-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hero split — landing pages (image + pitch side by side) */
.hero-split {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
  padding: var(--sp-xl) 0 var(--sp-lg);
}

.hero-shot {
  flex: 0 0 280px;
  max-width: 280px;
}

.hero-shot img {
  border-radius: 8px;
  box-shadow:
    0 20px 40px -16px rgba(26,26,26,0.18),
    0 2px 6px rgba(26,26,26,0.06);
}

.hero-pitch {
  flex: 1 1 380px;
  min-width: 280px;
}

.hero-pitch h1 {
  margin-bottom: var(--sp-sm);
}

.hero-pitch .hero-lede {
  margin-bottom: var(--sp-md);
}

/* 6. PAIN POINTS
   -------------------------------------------- */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-md);
}

.pain-point {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  padding: var(--sp-md);
  border-left: 3px solid var(--border);
}

/* 7. DIFFERENTIATORS
   -------------------------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-md);
}

.diff-card {
  padding: var(--sp-md) 0;
}

.diff-card h3 {
  margin-bottom: var(--sp-xs);
}

.diff-card p {
  font-size: 16px;
  color: var(--body);
}

/* 8. RESOURCE CARDS
   -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
}

.card {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 12px 32px -12px rgba(46,158,140,0.2);
  color: inherit;
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--sp-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: var(--sp-xs);
}

.card-body p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: var(--sp-sm);
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.card-link::after { content: " \2192"; }

/* 9. EMAIL FORM
   -------------------------------------------- */
.form-row {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-bottom: 12px;
}

.form-input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), outline-color 0.15s var(--ease);
}

.form-input::placeholder { color: var(--muted); }

.form-input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-btn {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  white-space: nowrap;
  transition: background 0.15s var(--ease);
}

.form-btn:hover { background: var(--teal-hover); }
.form-btn:disabled { opacity: 0.6; cursor: default; }

.form-micro {
  font-size: 13.5px;
  color: var(--muted);
}

.form-success {
  display: none;
  max-width: 460px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 18px 20px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.form-success b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}

.form-success p {
  font-size: 15px;
  color: var(--body);
}

.form-error {
  display: none;
  color: #B4614A;
  font-size: 14px;
  margin-bottom: 10px;
}

body.sent .form-row,
body.sent .form-micro { display: none; }
body.sent .form-success { display: block; }

/* 10. FEATURES / MARKS
   -------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-lg);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature h3 {
  margin-bottom: var(--sp-xs);
}

.feature p {
  font-size: 15.5px;
  color: var(--body);
}

/* 11. ABOUT TEASER
   -------------------------------------------- */
.about-teaser {
  max-width: 600px;
}

.about-teaser p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: var(--sp-md);
}

.text-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.text-link:hover { color: var(--teal-hover); }
.text-link::after { content: " \2192"; }

/* 12. YOUTUBE SECTION
   -------------------------------------------- */
.yt-section p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: var(--sp-md);
  max-width: 32em;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
}

.yt-link:hover { color: var(--teal-hover); }
.yt-link::after { content: " \2192"; }

/* 13. FOOTER
   -------------------------------------------- */
.footer {
  padding: var(--sp-lg) 0 var(--sp-xl);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.footer-text p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  gap: var(--sp-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

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

/* 14. SECTION HEADERS
   -------------------------------------------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}

.section h2 {
  margin-bottom: var(--sp-lg);
}

/* 15. ABOUT PAGE
   -------------------------------------------- */
.about-content {
  max-width: 640px;
}

.about-content p {
  margin-bottom: var(--sp-sm);
  font-size: 17px;
  line-height: 1.7;
}

.about-content p + p {
  margin-top: var(--sp-sm);
}

/* 16. RESPONSIVE — TABLET (max-width: 960px)
   -------------------------------------------- */
@media (max-width: 960px) {
  .hero { padding: var(--sp-xl) 0 var(--sp-lg); }

  .hero-split {
    flex-wrap: wrap;
    gap: var(--sp-md);
  }

  .hero-shot {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

/* 17. RESPONSIVE — MOBILE (max-width: 640px)
   -------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --sp-lg: 36px;
    --sp-xl: 56px;
    --sp-2xl: 72px;
  }

  .wrap { padding: 0 20px; }

  .hero { padding: var(--sp-xl) 0 var(--sp-lg); }

  .hero-split {
    flex-direction: column;
    gap: var(--sp-md);
    padding: var(--sp-lg) 0;
  }

  .hero-shot {
    flex: none;
    max-width: 200px;
    order: 2;
  }

  .hero-pitch {
    order: 1;
    min-width: 0;
  }

  .form-row {
    flex-direction: column;
    max-width: none;
  }

  .form-input {
    width: 100%;
    flex: none;
  }

  .form-btn {
    width: 100%;
  }

  .form-success { max-width: none; }

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

  .pain-points {
    grid-template-columns: 1fr;
  }

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

  .features {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  .nav { padding: var(--sp-sm) 0; }
}
