:root {
  color-scheme: light;
  --gold: #c89a4e;
  --gold-deep: #a87d3d;
  --gold-soft: #f6ead5;
  --ink: #101724;
  --muted: #5f6f82;
  --weak: #8490a0;
  --blue: #1a84f2;
  --green: #1e9c68;
  --orange: #e76d19;
  --surface: rgba(255, 255, 255, .92);
  --surface-soft: rgba(247, 249, 252, .9);
  --border: rgba(168, 125, 61, .22);
  --shadow: 0 22px 60px rgba(47, 38, 24, .10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f5f6f7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(145deg, #fcfaf5 0%, #f4f5f3 48%, #edf2f8 100%);
}

.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow-gold {
  width: 520px; height: 520px; left: -260px; top: -250px;
  background: radial-gradient(circle, rgba(200,154,78,.30), rgba(200,154,78,0) 68%);
}
.glow-blue {
  width: 620px; height: 620px; right: -320px; bottom: -250px;
  background: radial-gradient(circle, rgba(26,132,242,.15), rgba(26,132,242,0) 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(168,125,61,.14);
  background: rgba(250, 249, 246, .86);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 18px rgba(21,34,63,.18); }
.brand span { display: flex; flex-direction: column; line-height: 1.08; }
.brand strong { font-size: 18px; letter-spacing: .06em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; }

.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(36,45,62,.07); }

.account-chip {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,154,78,.14); }
body.is-signed-in .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(30,156,104,.13); }

#main-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 96px; outline: none; }
.view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(38px, 6vw, 72px); line-height: 1.06; letter-spacing: -.045em; }
h2 { margin-bottom: 12px; font-size: clamp(27px, 3.4vw, 42px); letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 20px; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.75; }
.section-copy { color: var(--muted); line-height: 1.75; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: clamp(30px, 6vw, 78px); align-items: center; min-height: 560px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 780;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 14px 26px rgba(168,125,61,.24); }
.button-secondary { border-color: var(--border); background: rgba(255,255,255,.78); color: var(--ink); }
.button-ghost { background: transparent; color: var(--gold-deep); }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; box-shadow: none; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-pill { padding: 8px 12px; border: 1px solid rgba(168,125,61,.16); border-radius: 999px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 13px; font-weight: 650; }

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(27,26,24,.98), rgba(52,43,30,.96));
  color: #fff;
  box-shadow: 0 34px 80px rgba(24,22,18,.22);
}
.hero-panel::after { content: ""; position: absolute; width: 280px; height: 280px; right: -120px; bottom: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(40,132,255,.32), transparent 68%); }
.panel-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.panel-badge { padding: 7px 10px; border-radius: 999px; background: rgba(200,154,78,.18); color: #f6d596; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.panel-status { color: rgba(255,255,255,.62); font-size: 12px; }
.module-stack { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 54px; }
.module-mini { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(255,255,255,.075); backdrop-filter: blur(12px); }
.module-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.10); font-size: 22px; }
.module-mini strong { display: block; font-size: 16px; }
.module-mini small { color: rgba(255,255,255,.58); line-height: 1.5; }
.module-mini em { color: #f2d8a8; font-size: 12px; font-style: normal; font-weight: 800; }

.section { padding-top: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading p { max-width: 520px; margin-bottom: 0; color: var(--muted); line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .surface-card {
  border: 1px solid rgba(168,125,61,.17);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature-card { display: flex; flex-direction: column; min-height: 310px; padding: 26px; }
.feature-card.production { --accent: #e76d19; --accent-soft: #fff0e5; }
.feature-card.accounting { --accent: #247ee9; --accent-soft: #eaf3ff; }
.feature-card.prospecting { --accent: #188a60; --accent-soft: #e8f7f0; }
.feature-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 24px; font-weight: 900; }
.feature-card p { color: var(--muted); line-height: 1.65; }
.feature-card ul { display: grid; gap: 9px; margin: 8px 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.feature-card li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 900; }
.feature-card .text-link { margin-top: auto; color: var(--accent); font-weight: 800; }

.notice { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid rgba(36,126,233,.18); border-radius: 16px; background: rgba(234,243,255,.82); color: #28557d; line-height: 1.65; }
.notice strong { color: #173e62; }
.notice.warning { border-color: rgba(200,154,78,.30); background: rgba(249,239,220,.85); color: #765d35; }

.auth-layout { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(360px,1.2fr); gap: clamp(24px,5vw,64px); align-items: center; min-height: 610px; }
.auth-intro img { width: 76px; height: 76px; margin-bottom: 22px; border-radius: 22px; box-shadow: 0 16px 34px rgba(21,34,63,.18); }
.auth-intro h1 { font-size: clamp(36px,5vw,58px); }
.auth-card { padding: clamp(24px,4vw,38px); }
.auth-card h2 { font-size: 28px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 750; }
.input-shell { display: flex; align-items: center; min-height: 54px; padding: 0 14px; border: 1px solid #dfe4eb; border-radius: 14px; background: #f7f8fa; }
.input-shell:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,154,78,.12); }
.country-code { padding-right: 12px; margin-right: 12px; border-right: 1px solid #d9dee5; color: var(--muted); font-weight: 750; }
.input-shell input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.code-action { border: 0; background: transparent; color: var(--gold-deep); cursor: pointer; font-weight: 800; white-space: nowrap; }
.auth-card .button-primary { width: 100%; margin-top: 22px; }
.form-message { min-height: 24px; margin: 12px 0 0; color: #b34338; font-size: 13px; line-height: 1.6; }
.form-message.success { color: var(--green); }
.legal-copy { margin: 14px 0 0; color: var(--weak); font-size: 12px; line-height: 1.7; text-align: center; }
.legal-copy a { color: var(--gold-deep); font-weight: 700; }

.dashboard-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 28px; }
.dashboard-head h1 { margin-bottom: 8px; font-size: clamp(34px,5vw,56px); }
.account-panel { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.74); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 900; }
.account-panel strong, .account-panel small { display: block; }
.account-panel small { margin-top: 3px; color: var(--muted); }
.phase-banner { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-bottom: 22px; padding: 20px; }
.phase-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eef4fb; color: var(--blue); font-size: 21px; }
.phase-banner p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.portal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.portal-card { position: relative; overflow: hidden; min-height: 260px; padding: 24px; border: 0; color: #fff; cursor: pointer; text-align: left; }
.portal-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -80px; border-radius: 50%; background: rgba(255,255,255,.10); }
.portal-card.production { background: linear-gradient(145deg,#ed841f,#c94614); }
.portal-card.accounting { background: linear-gradient(145deg,#3b95f4,#214dd0); }
.portal-card.prospecting { background: linear-gradient(145deg,#32ad7d,#087054); }
.portal-card span, .portal-card h3, .portal-card p, .portal-card strong { position: relative; z-index: 1; }
.portal-card .portal-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 34px; border-radius: 15px; background: rgba(255,255,255,.15); font-size: 22px; }
.portal-card h3 { font-size: 27px; }
.portal-card p { color: rgba(255,255,255,.72); line-height: 1.6; }
.portal-card strong { display: inline-block; margin-top: 10px; font-size: 13px; }

.pricing-intro { max-width: 780px; margin-bottom: 34px; }
.pricing-intro h1 { font-size: clamp(38px,5vw,64px); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.price-card { overflow: hidden; }
.price-card-head { min-height: 205px; padding: 26px; color: #fff; }
.price-card.production .price-card-head { background: linear-gradient(145deg,#ed841f,#cf4d16); }
.price-card.accounting .price-card-head { background: linear-gradient(145deg,#3c9df6,#2552d9); }
.price-card.prospecting .price-card-head { background: linear-gradient(145deg,#38b889,#087359); }
.price-label { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 800; }
.price-card-head h2 { margin: 24px 0 8px; font-size: 32px; }
.price-card-head p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.6; }
.price-body { padding: 24px; }
.price-note { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #e9edf2; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-group + .feature-group { margin-top: 20px; }
.feature-group h3 { font-size: 15px; }
.feature-group ul { display: grid; gap: 9px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.feature-group li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.price-body .button { width: 100%; margin-top: 22px; }

.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }
.detail-main, .detail-side { padding: clamp(24px,4vw,38px); }
.detail-main h1 { font-size: clamp(36px,5vw,58px); }
.detail-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.detail-group { padding: 20px; border-radius: 18px; background: var(--surface-soft); }
.detail-group ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.55; }
.detail-group li::before { content: "•"; margin-right: 8px; color: var(--gold-deep); }
.detail-side { position: sticky; top: 96px; }
.detail-side p { color: var(--muted); line-height: 1.7; }

.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.qr-card { padding: clamp(22px,4vw,34px); text-align: center; }
.qr-card img { width: min(100%, 320px); margin: 22px auto; padding: 12px; border: 1px solid #e7e9ed; border-radius: 22px; background: #fff; image-rendering: auto; }
.qr-card p { color: var(--muted); line-height: 1.7; }
.qr-hint { padding: 12px 14px; border-radius: 14px; background: #f5f7fa; color: var(--muted); font-size: 13px; line-height: 1.65; }

.document { max-width: 820px; margin: 0 auto; padding: clamp(24px,5vw,48px); }
.document h1 { font-size: clamp(34px,5vw,54px); }
.document h2 { margin-top: 32px; font-size: 21px; }
.document p, .document li { color: var(--muted); line-height: 1.85; }

.site-footer { margin-top: 90px; padding-top: 28px; border-top: 1px solid rgba(168,125,61,.18); color: var(--weak); font-size: 12px; line-height: 1.8; text-align: center; }
.site-footer a { color: var(--muted); }

.mobile-nav { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(28px + var(--safe-bottom)); max-width: min(440px, calc(100% - 40px)); padding: 12px 17px; border-radius: 13px; background: rgba(17,23,33,.92); color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.24); transform: translateX(-50%); font-size: 14px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; }
  .desktop-nav { display: none; }
  .hero, .auth-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-panel { min-height: 420px; }
  .card-grid, .pricing-grid, .portal-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .detail-side { position: static; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(74px + var(--safe-bottom)); }
  .site-header { padding: 8px 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .account-chip { min-height: 38px; padding: 0 12px; font-size: 13px; }
  #main-content { width: min(100% - 28px, 1180px); padding: 34px 0 52px; }
  h1 { font-size: 40px; }
  .hero-actions .button, .button-row .button { flex: 1 1 150px; }
  .hero-panel { min-height: 0; padding: 20px; border-radius: 26px; }
  .module-stack { margin-top: 34px; }
  .module-mini { grid-template-columns: 44px 1fr; }
  .module-mini em { display: none; }
  .section { padding-top: 64px; }
  .section-heading, .dashboard-head { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 8px; }
  .account-panel { width: 100%; }
  .detail-groups, .support-grid { grid-template-columns: 1fr; }
  .auth-layout { min-height: 0; }
  .auth-intro { text-align: center; }
  .auth-intro img { margin-left: auto; margin-right: auto; }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(4,1fr);
    min-height: 62px;
    padding: 7px;
    border: 1px solid rgba(168,125,61,.18);
    border-radius: 20px;
    background: rgba(253,252,249,.94);
    box-shadow: 0 16px 40px rgba(31,30,28,.16);
    backdrop-filter: blur(22px);
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
  .mobile-nav span { font-size: 19px; line-height: 1; }
  .mobile-nav [aria-current="page"] { background: var(--gold-soft); color: var(--gold-deep); }
  .site-footer { margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
