/* DeepinGEO public product landing page (src/components/portal/landing.tsx).
   Restrained developer-tool aesthetic: neutral gray sections, near-black ink, a single blue
   accent, 1px hairline borders and almost no shadow. The --dg-* tokens and base resets live
   in the shared styles-tokens.css, which the LandingDocument links before this file; the
   lp-* rules below only use the tokens. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--dg-font); color: var(--dg-body); background: var(--dg-card); font-size: 15px; line-height: 1.7; font-synthesis: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.lp-container { max-width: var(--dg-max); margin: 0 auto; padding: 0 24px; }
.lp-eyebrow { display: block; color: var(--dg-muted); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.lp-section { padding: 88px 0; }
.lp-section-alt { background: var(--dg-wash); border-top: 1px solid var(--dg-line); border-bottom: 1px solid var(--dg-line); }
.lp-section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.lp-section-heading h2 { font-size: 28px; line-height: 1.4; letter-spacing: -0.5px; color: var(--dg-ink); margin: 12px 0 12px; }
.lp-section-heading p { color: var(--dg-muted); font-size: 14px; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--dg-line); }
.lp-header-inner { max-width: var(--dg-max); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dg-ink); font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.lp-brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--dg-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.lp-nav { display: flex; gap: 26px; margin-right: auto; }
.lp-nav a { color: var(--dg-muted); font-size: 14px; padding: 6px 2px; }
.lp-nav a:hover { color: var(--dg-ink); }
.lp-header-actions { display: flex; gap: 10px; align-items: center; }
.lp-nav-mobile { display: none; margin-left: auto; position: relative; }
.lp-nav-mobile summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--dg-line); border-radius: var(--dg-radius-control); color: var(--dg-ink); font-size: 18px; }
.lp-nav-mobile summary::-webkit-details-marker { display: none; }
.lp-nav-drawer { position: absolute; right: 0; top: 48px; width: 220px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); box-shadow: var(--dg-shadow-card-hover); padding: 16px; display: grid; gap: 10px; }
.lp-nav-drawer nav { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--dg-line); }
.lp-nav-drawer nav a { padding: 9px 10px; border-radius: 8px; color: var(--dg-body); font-size: 14px; }
.lp-nav-drawer nav a:hover { background: var(--dg-wash); color: var(--dg-ink); }

/* Buttons */
.lp-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--dg-radius-control); background: var(--dg-primary); color: #fff; font-size: 14px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s; }
.lp-button:hover { background: var(--dg-primary-hover); }
.lp-button-quiet { background: var(--dg-card); color: var(--dg-ink); border-color: var(--dg-line); }
.lp-button-quiet:hover { background: var(--dg-wash); border-color: #d4d4d4; }
.lp-button-large { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.lp-button-white { background: #fff; color: var(--dg-primary); }
.lp-button-white:hover { background: var(--dg-primary-soft); }
.lp-button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.lp-button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Hero */
.lp-hero { padding: 80px 0 88px; background: var(--dg-wash); border-bottom: 1px solid var(--dg-line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.lp-hero h1 { font-size: 40px; line-height: 1.3; letter-spacing: -1px; color: var(--dg-ink); margin: 16px 0 16px; font-weight: 700; }
.lp-hero-lead { font-size: 15px; color: var(--dg-muted); max-width: 520px; }
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lp-hero-hint { margin-top: 16px; font-size: 13px; color: var(--dg-faint); }

/* Dashboard preview (sample data, badged) */
.lp-dash { position: relative; }
.lp-dash-window { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); box-shadow: var(--dg-shadow-card); overflow: hidden; }
.lp-dash-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--dg-line); background: var(--dg-wash); }
.lp-dash-dot { width: 8px; height: 8px; border-radius: 50%; }
.lp-dash-title { margin-left: 8px; font-size: 12px; color: var(--dg-muted); font-weight: 600; }
.lp-dash-badge { margin-left: auto; font-size: 11px; color: var(--dg-muted); border: 1px solid var(--dg-line); border-radius: 999px; padding: 2px 10px; background: var(--dg-card); white-space: nowrap; }
.lp-dash-body { padding: 16px; display: grid; gap: 12px; }
.lp-dash-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-dash-metric { border: 1px solid var(--dg-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.lp-dash-metric span { font-size: 11px; color: var(--dg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dash-metric strong { font-size: 22px; font-weight: 700; color: var(--dg-ink); letter-spacing: -0.5px; }
.lp-dash-metric small { font-size: 11px; }
.lp-dash-panel { border: 1px solid var(--dg-line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.lp-dash-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lp-dash-panel-title { font-size: 12px; font-weight: 600; color: var(--dg-ink); }
.lp-dash-panel-value { font-size: 14px; font-weight: 700; }
.lp-dash-chart { display: block; width: 100%; height: auto; }
.lp-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-dash-bars { display: grid; gap: 8px; }
.lp-dash-bar-row { display: grid; grid-template-columns: minmax(0, 108px) 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.lp-dash-bar-label { color: var(--dg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dash-bar-track { display: block; height: 8px; border-radius: 5px; background: var(--dg-surface); overflow: hidden; }
.lp-dash-bar-fill { display: block; height: 100%; border-radius: 5px; min-width: 4px; }
.lp-dash-bar-row b { text-align: right; font-weight: 600; color: var(--dg-ink); font-size: 11px; }
.lp-dash-citations { list-style: none; display: grid; gap: 8px; }
.lp-dash-citations li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--dg-line); }
.lp-dash-citations li:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-dash-citation-title { font-size: 12px; color: var(--dg-ink); font-weight: 600; }
.lp-dash-citation-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--dg-faint); }
.lp-dash-citation-meta code { font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-dash-citation-meta i { font-style: normal; white-space: nowrap; }

/* Live stats (real database counts, queried when this page is rendered) */
.lp-stats { padding: 44px 0 36px; border-bottom: 1px solid var(--dg-line); }
.lp-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lp-stat { display: grid; gap: 4px; padding-left: 20px; border-left: 1px solid var(--dg-line); align-content: start; }
.lp-stat-value { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; color: var(--dg-ink); font-variant-numeric: tabular-nums; }
.lp-stat-label { font-size: 13px; color: var(--dg-muted); }
.lp-stats-note { margin-top: 24px; font-size: 12px; color: var(--dg-faint); }

/* Growth loop */
.lp-loop { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp-loop-step { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); padding: 24px; display: grid; gap: 8px; align-content: start; }
.lp-loop-no { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; font-family: ui-monospace, Consolas, monospace; }
.lp-loop-step h3 { font-size: 16px; color: var(--dg-ink); }
.lp-loop-step p { font-size: 13px; color: var(--dg-muted); line-height: 1.8; }

/* Cards */
.lp-card { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); box-shadow: var(--dg-shadow-card); padding: 28px; transition: border-color 0.2s, box-shadow 0.2s; }
.lp-card:hover { border-color: #d4d4d4; box-shadow: var(--dg-shadow-card-hover); }
.lp-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lp-feature-card h3 { font-size: 17px; color: var(--dg-ink); margin: 16px 0 8px; }
.lp-feature-card p { font-size: 13px; color: var(--dg-muted); line-height: 1.8; }
.lp-feature-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.lp-feature-icon svg { width: 20px; height: 20px; }
.lp-feature-card ul, .lp-scenario-card ul { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.lp-feature-card li, .lp-scenario-card li { display: flex; align-items: baseline; gap: 9px; font-size: 13px; color: var(--dg-body); }
.lp-check { font-weight: 700; }

/* Flow */
.lp-flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.lp-flow-step { position: relative; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); padding: 20px 14px 18px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.lp-flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--dg-faint); font-size: 14px; z-index: 1; }
.lp-flow-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.lp-flow-label { font-size: 13px; font-weight: 600; color: var(--dg-ink); line-height: 1.5; }

/* Capability bar */
.lp-capability { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-capability-group { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); padding: 24px; }
.lp-capability-group h3 { font-size: 14px; color: var(--dg-ink); margin-bottom: 14px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { background: var(--dg-wash); border: 1px solid var(--dg-line); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--dg-muted); }

/* Scenarios */
.lp-scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-scenario-card h3 { font-size: 16px; color: var(--dg-ink); margin-bottom: 8px; }
.lp-scenario-card p { font-size: 13px; color: var(--dg-muted); line-height: 1.8; }

/* CTA */
.lp-cta { border: 1px solid var(--dg-line); border-radius: var(--dg-radius-card); padding: 56px 40px; text-align: center; background: linear-gradient(150deg, #2b85ff 0%, var(--dg-primary) 45%, var(--dg-primary-active) 100%); color: #fff; }
.lp-cta h2 { font-size: 26px; letter-spacing: -0.5px; }
.lp-cta p { margin: 12px auto 0; max-width: 480px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.lp-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
.lp-footer { border-top: 1px solid var(--dg-line); padding: 36px 0 44px; background: var(--dg-wash); }
.lp-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.lp-footer-brand p { margin-top: 12px; font-size: 13px; color: var(--dg-muted); max-width: 420px; }
.lp-footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--dg-muted); }
.lp-footer-links a:hover { color: var(--dg-ink); }
.lp-footer-icp { margin: 22px 0 0; font-size: 12px; color: var(--dg-faint); }

@media (max-width: 1000px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-flow-step:not(:last-child)::after { content: none; }
  .lp-capability { grid-template-columns: 1fr; }
  .lp-scenario-grid { grid-template-columns: 1fr; }
  .lp-dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-nav, .lp-header-actions { display: none; }
  .lp-nav-mobile { display: block; }
  .lp-section { padding: 56px 0; }
  .lp-section-heading { margin-bottom: 32px; }
  .lp-section-heading h2, .lp-cta h2 { font-size: 22px; }
  .lp-hero { padding: 48px 0 56px; }
  .lp-hero h1 { font-size: 27px; }
  .lp-hero-lead { font-size: 14px; }
  .lp-loop { grid-template-columns: 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr; gap: 18px; }
  .lp-stats { padding: 36px 0 28px; }
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-flow { grid-template-columns: 1fr 1fr; }
  .lp-card { padding: 22px; }
  .lp-dash-metrics { grid-template-columns: 1fr 1fr; }
  .lp-dash-badge { white-space: normal; text-align: right; }
  .lp-cta { padding: 40px 24px; }
  .lp-cta-actions .lp-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
