@charset "UTF-8";

/* ==========================================================================
   FranChai — Design Tokens
   浅色高级 / 品牌绿 / 编辑式排版
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --green-950: #04160f;
  --green-900: #08251d;
  --green-800: #0b3d2e;
  --green-700: #007f5f;
  --green-600: #009b74;
  --green-500: #00b982;
  --green-400: #2dd4a0;
  --green-300: #6ee7b7;
  --green-200: #a7f3d0;

  --mint-200: #d5f5e8;
  --mint-100: #e8f8f2;
  --mint-50: #f3fbf7;

  /* --- Neutrals --- */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f9f7;
  --bg-mint: #f0faf5;
  --ink: #0b2b21;
  --text: #4b5563;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #eef3f0;

  /* --- Functional --- */
  --amber: #f59e0b;
  --amber-soft: #fff7e8;
  --red: #ef4444;
  --blue: #0ea5e9;
  --green-ok: #16a34a;

  /* --- Typography --- */
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-display: clamp(2.75rem, 6.1vw, 5.1rem);
  --fs-h2: clamp(2rem, 4.1vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.5rem);
  --fs-h4: clamp(1.0625rem, 1.4vw, 1.1875rem);
  --fs-lead: clamp(1rem, 1.25vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* --- Layout --- */
  --container: 75rem;
  --container-wide: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --nav-h: 4.5rem;

  /* --- Radii --- */
  --r-xs: 0.5rem;
  --r-sm: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-2xl: 2.5rem;
  --r-pill: 999px;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(8, 37, 29, 0.05);
  --shadow-sm: 0 10px 30px -18px rgba(8, 37, 29, 0.25);
  --shadow-md: 0 24px 60px -32px rgba(8, 37, 29, 0.3);
  --shadow-lg: 0 48px 110px -48px rgba(8, 37, 29, 0.38);
  --shadow-phone: 0 50px 100px -36px rgba(8, 37, 29, 0.55);

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Misc --- */
  --z-nav: 100;
  --z-float: 20;
  --z-modal: 200;
  --z-toast: 300;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

table {
  border-collapse: collapse;
}

::selection {
  background: rgba(0, 185, 130, 0.22);
  color: var(--green-900);
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - var(--gutter) * 2, var(--container-wide));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

.section--mint {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(0, 185, 130, 0.1), transparent 65%),
    var(--bg-mint);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

/* ==========================================================================
   Shared text primitives
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: var(--green-700);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.375rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.section-head {
  max-width: 48rem;
}

.section-head h2 {
  margin-top: 1.125rem;
  color: var(--green-900);
  font-size: var(--fs-h2);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.section-head p {
  margin-top: 1.125rem;
  max-width: 40rem;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.8;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

.section-head--light h2 {
  color: var(--white);
}

.section-head--light p {
  color: rgba(255, 255, 255, 0.66);
}

.section-head--light .eyebrow {
  color: var(--green-300);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.8;
  color: var(--text);
}

.text-green {
  color: var(--green-700);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

.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;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  background: var(--green-800);
  color: var(--white);
  font-size: var(--fs-sm);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Scroll reveal (JS enhanced)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
