:root {
  --blue: #1878f3;
  --blue-strong: #0b66e4;
  --blue-soft: #e9f2ff;
  --green: #20b37e;
  --amber: #f2ad2e;
  --ink: #111827;
  --muted: #5c6676;
  --subtle: #8a95a6;
  --line: #e7ebf0;
  --panel: #ffffff;
  --wash: #f5f7fa;
  --wash-blue: #f1f6ff;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.11);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(var(--container) + 38px), calc(100% - 40px));
  height: 72px;
  margin: 16px auto 0;
  padding: 0 18px 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  transition:
    height 0.2s ease,
    width 0.28s ease,
    padding 0.28s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.site-header.is-scrolled {
  width: min(var(--container), calc(100% - 40px));
  height: 64px;
  border-color: rgba(231, 235, 240, 0.75);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

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

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0;
}

.site-header.is-scrolled .brand strong {
  color: var(--ink);
}

.site-header.is-scrolled .brand small {
  color: var(--subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.site-header.is-scrolled .site-nav {
  color: #354052;
}

.site-nav a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: #fff !important;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(24, 120, 243, 0.26);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.site-header.is-scrolled .nav-toggle {
  background: var(--wash-blue);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--blue);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 128px 20px clamp(72px, 12vh, 118px);
  overflow: hidden;
  color: #fff;
  background: #0d1a2c;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 13, 25, 0.68) 0%, rgba(5, 13, 25, 0.44) 38%, rgba(5, 13, 25, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 13, 25, 0.1), rgba(5, 13, 25, 0.32));
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cfe4ff;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 500px;
  margin: 0 0 16px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 36px rgba(24, 120, 243, 0.32);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 44px);
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.proof-item strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.proof-item em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head.narrow {
  max-width: 680px;
}

.section h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 60px;
  align-items: end;
}

.intro .section-head {
  margin-bottom: 0;
}

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

.stat-tile {
  min-height: 194px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.stat-tile span {
  color: var(--subtle);
  font-size: 13px;
}

.stat-tile strong {
  display: block;
  margin: 12px 0 18px;
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.stat-tile p {
  font-size: 14px;
}

.app-preview {
  width: 100%;
  max-width: none;
  padding: 106px max(20px, calc((100% - var(--container)) / 2));
  background: var(--wash);
}

.phone-showcase {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}

.phone {
  position: relative;
  width: min(100%, 330px);
  min-height: 594px;
  padding: 22px 18px 66px;
  border: 8px solid #111827;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.phone::after {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 92px;
  height: 4px;
  border-radius: 2px;
  background: #111827;
  content: "";
  transform: translateX(-50%);
  opacity: 0.22;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -18px 0;
  padding: 44px 18px 34px;
  color: #fff;
  border-radius: 0;
  background: var(--blue);
}

.phone-top span {
  font-size: 18px;
  font-weight: 800;
}

.phone-top small {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.16);
}

.phone-greeting {
  margin-top: -20px;
  color: #fff;
}

.phone-greeting small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.phone-greeting strong {
  display: block;
  max-width: 230px;
  font-size: 16px;
  line-height: 1.45;
}

.app-card,
.phone-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.07);
}

.intention-card {
  margin-top: 20px;
  padding: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: #f1f4f8;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.segmented span {
  padding: 6px 0;
  border-radius: var(--radius-sm);
}

.segmented .active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 24, 39, 0.08);
}

.intention-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 18px;
}

.intention-title strong,
.phone-list > strong {
  display: block;
  font-size: 18px;
}

.intention-title small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
}

.intention-title b {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.bar-stack {
  display: grid;
  grid-template-columns: 55fr 29fr 16fr;
  gap: 0;
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #edf1f6;
}

.bar-stack i {
  display: block;
}

.bar-blue,
.dot.blue {
  background: var(--blue);
}

.bar-green,
.dot.green {
  background: var(--green);
}

.bar-amber,
.dot.amber {
  background: var(--amber);
}

.legend-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.phone-list {
  margin-top: 18px;
  padding: 16px;
}

.phone-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.phone-list > div:last-child {
  border-bottom: 0;
}

.phone-list span {
  font-weight: 700;
}

.phone-list small {
  color: var(--subtle);
}

.flow-list {
  display: grid;
  gap: 16px;
}

.flow-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 800;
}

.flow-list h3,
.feature-card h3,
.scene-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.flow-list p,
.feature-card p,
.scene-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: normal;
  word-break: normal;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scene-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.scene-image {
  min-height: 210px;
  border-bottom: 1px solid var(--line);
}

.scene-card h3,
.scene-card p {
  padding: 0 22px;
}

.scene-card h3 {
  margin-top: 22px;
}

.scene-card p {
  margin-bottom: 24px;
  font-size: 15px;
}

.report-section {
  width: 100%;
  max-width: none;
  padding: 106px max(20px, calc((100% - var(--container)) / 2));
  background: #0e1726;
  color: #fff;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.report-layout p {
  color: rgba(255, 255, 255, 0.72);
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-line {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.report-line span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #b8d8ff;
  font-weight: 800;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 70px;
  align-items: start;
}

.security-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-grid li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px 24px 18px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
}

.security-grid li::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-size: 18px;
}

.site-footer p {
  margin: 2px 0 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--blue);
  font-weight: 700;
}

.legal-page {
  min-height: 100vh;
  background: var(--wash);
}

.legal-header {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.legal-header .brand strong {
  color: var(--ink);
}

.legal-header .brand small {
  color: var(--subtle);
}

.legal-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 88px;
}

.legal-card {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.legal-updated {
  margin: 0 0 34px;
  color: var(--subtle);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-card a {
  color: var(--blue);
  font-weight: 700;
}

.placeholder {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(135deg, #d9eaff, #f5f8fc);
}

.placeholder-insurance {
  background: url("./assets/images/scene-insurance.png") center / cover;
}

.placeholder-education {
  background: url("./assets/images/scene-education.png") center / cover;
}

.placeholder-saas {
  background: url("./assets/images/scene-saas.png") center / cover;
}

.placeholder-retail {
  background: url("./assets/images/scene-retail.png") center / cover;
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .site-header.is-scrolled {
    width: calc(100% - 40px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
    color: #354052;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 128px;
  }

  .intro,
  .phone-showcase,
  .report-layout,
  .security-grid {
    grid-template-columns: 1fr;
  }

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

  .phone {
    margin: 0 auto;
  }

}

@media (max-width: 700px) {
  .site-header {
    height: 62px;
    margin-top: 10px;
    padding: 0 10px 0 14px;
  }

  .site-header.is-scrolled {
    width: calc(100% - 32px);
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 118px 20px 64px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 13, 25, 0.44) 0%, rgba(5, 13, 25, 0.52) 58%, rgba(5, 13, 25, 0.68) 100%);
  }

  .hero-proof {
    margin-top: 28px;
  }

  .proof-item {
    justify-content: center;
  }

  .section,
  .app-preview,
  .report-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section {
    width: calc(100% - 32px);
  }

  .intro-grid,
  .feature-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .stat-tile {
    min-height: 150px;
  }

  .phone {
    min-height: 560px;
    border-width: 8px;
    border-radius: var(--radius-lg);
  }

  .flow-list article {
    grid-template-columns: 1fr;
  }

  .report-layout,
  .security-grid {
    gap: 32px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 32px);
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .legal-main {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .legal-card {
    padding: 26px;
  }
}
