:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-soft: #0a1020;
  --panel: #0d1320;
  --panel-2: #111827;
  --raised: #172033;
  --border: #263244;
  --border-soft: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --orange: #f97316;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-page,
.app-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.13), transparent 24rem),
    linear-gradient(180deg, #070b12 0%, #0a1020 54%, #070b12 100%);
}

.site-topbar,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(38, 50, 68, 0.78);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.52);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2563eb, #0f172a 62%, #f97316);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand em {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav,
.account-actions,
.hero-actions,
.trust-strip,
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--text);
}

main,
.site-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 64px 0 74px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.75);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin-top: 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-strip {
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-strip span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(38, 50, 68, 0.95);
  border-radius: 999px;
  background: rgba(13, 19, 32, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 22px;
}

.hero-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(38, 50, 68, 0.9);
  border-radius: var(--radius);
  background: rgba(13, 19, 32, 0.62);
}

.hero-metrics strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-visual {
  position: relative;
  min-width: 0;
  padding: 22px;
}

.hero-product-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.preview-window {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(13, 19, 32, 0.9)),
    var(--panel);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.preview-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent 32%, rgba(249, 115, 22, 0.12));
  pointer-events: none;
}

.preview-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.64);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dim);
}

.preview-bar span:first-child {
  background: var(--red);
}

.preview-bar span:nth-child(2) {
  background: var(--yellow);
}

.preview-bar span:nth-child(3) {
  background: var(--green);
}

.preview-bar strong {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: var(--muted);
  font: 12px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 454px;
}

.preview-grid aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
}

.preview-grid aside i {
  display: block;
  height: 44px;
  border-radius: var(--radius);
  background: var(--raised);
}

.preview-grid aside i.active {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
}

.preview-grid section {
  min-width: 0;
  padding: 22px;
}

.preview-title,
.preview-metrics b,
.video-pane,
.preview-table span {
  display: block;
  border-radius: var(--radius);
  background: var(--raised);
}

.preview-title {
  width: min(360px, 82%);
  height: 30px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-metrics b {
  height: 86px;
}

.preview-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.video-pane {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.26), transparent),
    repeating-linear-gradient(45deg, #172033, #172033 12px, #111827 12px, #111827 24px);
}

.video-pane--after {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.22), transparent),
    repeating-linear-gradient(45deg, #172033, #172033 12px, #111827 12px, #111827 24px);
}

.preview-table {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.42fr;
  gap: 10px;
  margin-top: 18px;
}

.preview-table span {
  height: 18px;
  background: #1e293b;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: var(--radius);
  background: rgba(13, 19, 32, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.floating-card strong {
  color: var(--text);
  font-size: 13px;
}

.floating-card span {
  color: var(--muted);
  font-size: 12px;
}

.floating-card--one {
  top: 70px;
  right: 0;
}

.floating-card--two {
  bottom: 70px;
  left: 0;
  border-color: rgba(249, 115, 22, 0.42);
}

.audience-section,
.feature-section,
.route-section,
.pricing-section {
  padding: 82px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2,
.route-copy h2,
.app-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-grid,
.pricing-grid,
.tool-entry-grid,
.app-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.audience-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(38, 50, 68, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 44%),
    rgba(13, 19, 32, 0.78);
}

.audience-grid strong {
  color: var(--text);
  font-size: 21px;
}

.audience-grid p {
  color: var(--muted);
}

.feature-card,
.plan-card,
.tool-entry,
.panel,
.account-panel {
  min-width: 0;
  border: 1px solid rgba(38, 50, 68, 0.95);
  border-radius: var(--radius);
  background: rgba(13, 19, 32, 0.84);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.04);
}

.feature-card {
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: 20px;
}

.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(38, 50, 68, 0.86);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.feature-card:hover,
.tool-entry:hover,
.plan-card--pro {
  border-color: rgba(96, 165, 250, 0.72);
}

.feature-card span,
.tool-entry b,
.plan-card > span {
  width: fit-content;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3,
.tool-entry h2,
.plan-card h3 {
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.feature-card p,
.audience-grid p,
.tool-entry p,
.plan-card p,
.route-copy p,
.app-hero p,
.panel p {
  color: var(--muted);
}

.route-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 34px;
  align-items: center;
}

.route-copy {
  display: grid;
  gap: 16px;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.route-steps div {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.82);
}

.route-steps strong {
  font-size: 18px;
}

.route-steps span {
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.plan-card--pro {
  border-color: rgba(249, 115, 22, 0.72);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 42%),
    rgba(13, 19, 32, 0.92);
}

.plan-card strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 34px 0 48px;
  border-top: 1px solid rgba(38, 50, 68, 0.72);
  color: var(--muted);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.site-footer__row a {
  color: var(--muted);
}

.site-footer__row a:hover {
  color: var(--text);
}

.site-footer__divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
}

.site-footer__note {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(38, 50, 68, 0.52);
}

.site-footer strong {
  flex: 0 0 auto;
  color: var(--text);
}

.btn,
.profile-chip,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--text);
  font-weight: 850;
}

.btn:hover,
.profile-chip:hover,
.icon-button:hover {
  border-color: var(--primary-2);
}

.btn--primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.26);
}

.btn--orange {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: white;
}

.btn--ghost {
  background: rgba(13, 19, 32, 0.56);
  color: var(--text);
}

.btn--soft {
  background: rgba(23, 32, 51, 0.86);
  color: var(--text);
}

.btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn--lg {
  min-height: 50px;
  padding: 0 20px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.app-topbar {
  position: sticky;
}

.app-shell {
  padding: 42px 0 72px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
}

.app-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 19, 32, 0.84);
}

.account-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 24px;
}

.account-panel span,
.account-panel em {
  color: var(--muted);
  font-style: normal;
}

.account-panel strong {
  overflow-wrap: anywhere;
  font-size: 26px;
}

.tool-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.tool-entry {
  display: grid;
  gap: 10px;
  min-height: 166px;
  padding: 20px;
}

.tool-entry b {
  color: var(--orange);
}

.app-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
}

.panel {
  padding: 20px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel h2 {
  margin-top: 8px;
  font-size: 22px;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-list span {
  max-width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(3, 7, 18, 0.72);
}

.auth-modal,
.payment-modal {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 42%),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.payment-modal {
  width: min(520px, calc(100vw - 32px));
}

.auth-modal h2,
.payment-modal h2 {
  margin-top: 14px;
  font-size: 28px;
}

.auth-modal p,
.payment-modal p {
  margin-top: 8px;
  color: var(--muted);
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.auth-tabs button.is-active {
  background: var(--raised);
  color: var(--text);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
}

input::placeholder {
  color: var(--dim);
}

.status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.status--success {
  color: var(--green);
}

.status--error {
  color: var(--red);
}

.qr-box {
  display: grid;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  margin: 22px auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

code {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1020px) {
  .site-topbar,
  .app-topbar {
    padding: 0 20px;
  }

  .hero,
  .route-section,
  .audience-grid,
  .app-hero,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .product-visual {
    padding: 0;
  }

  .feature-grid,
  .tool-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .site-topbar,
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav,
  .account-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    display: none;
  }

  main,
  .site-footer {
    width: min(100vw - 28px, 1180px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .route-steps,
  .pricing-grid,
  .pricing-grid--compact,
  .tool-entry-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-image {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  .floating-card {
    position: static;
    margin-top: 12px;
  }

  .site-footer {
    display: grid;
  }

  .feature-section,
  .audience-section,
  .route-section,
  .pricing-section {
    padding: 52px 0;
  }
}
