:root {
  --bg: #f6f4ef;
  --bg-soft: #eef1ea;
  --ink: #1a2420;
  --muted: #5c6b63;
  --line: rgba(26, 36, 32, 0.12);
  --accent: #e8923a;
  --accent-deep: #c56f1c;
  --ok: #2f7d56;
  --ok-soft: #3d9a6a;
  --danger: #c24b3f;
  --paper: #fffef9;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --shell: min(1120px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(232, 146, 58, 0.16), transparent 60%),
    radial-gradient(700px 480px at 8% 18%, rgba(61, 154, 106, 0.12), transparent 55%),
    linear-gradient(180deg, #f8f6f1 0%, #f1f3ed 42%, #f6f4ef 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell {
  width: var(--shell);
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 244, 239, 0.82);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fffef9;
  box-shadow: 0 10px 24px rgba(197, 111, 28, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(197, 111, 28, 0.28); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(26, 36, 32, 0.28); }

/* Hero — one composition, brand-first, full-bleed visual */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 28px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  width: var(--shell);
}
.brand-mark {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.brand-mark span {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  vertical-align: middle;
  transform: translateY(-0.35em);
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.hero-lead {
  margin: 0 0 28px;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  position: relative;
  margin-right: calc((100vw - min(1120px, 100vw - 40px)) / -2);
  min-height: 420px;
}
.hero-art {
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 28px 60px rgba(26, 36, 32, 0.12));
  animation: hero-float 7s ease-in-out infinite;
}

/* Flow path dash animation (inline SVG) */
.flow-path,
.flow-path-2 {
  animation: dash-move 2.8s linear infinite;
}
@keyframes dash-move {
  to { stroke-dashoffset: -72; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }

/* Sections — one job each, no card grid */
.section {
  padding: 72px 0 88px;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.product {
  background: linear-gradient(180deg, transparent 0%, rgba(238, 241, 234, 0.7) 30%, rgba(238, 241, 234, 0.7) 100%);
  border-top: 1px solid var(--line);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.flow-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.flow-list li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.flow-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.flow-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 40rem;
}

.start {
  border-top: 1px solid var(--line);
}
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.start-steps li {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 3px solid var(--ok-soft);
}
.start-steps strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.start-steps span {
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a:hover { color: var(--ink); }
.sep { margin: 0 6px; opacity: 0.5; }

/* Auth forms — interaction container only */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 32px 0 64px;
}
.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(26, 36, 32, 0.08);
}
.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}
.auth-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: 500 1rem/1.2 var(--font-body);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: rgba(232, 146, 58, 0.75); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: rgba(47, 125, 86, 0.1); color: var(--ok); }
.msg.err { background: rgba(194, 75, 63, 0.1); color: var(--danger); }
.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-switch a {
  color: var(--accent-deep);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual {
    margin-right: 0;
    min-height: auto;
  }
  .hero-art {
    max-height: none;
    object-position: center;
  }
  .start-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-list li { grid-template-columns: 56px 1fr; gap: 14px; }
  .nav-links .hide-sm { display: none; }
  .brand-mark span {
    display: block;
    margin: 10px 0 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .hero-art,
  .flow-path,
  .flow-path-2 {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
