:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --wash: #f5f8fc;
  --blue: #0066ff;
  --blue-dark: #0047c2;
  --mint: #12b886;
  --teal: #14b8a6;
  --coral: #ff5a5f;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --shadow: 0 24px 80px rgba(21, 34, 56, 0.14);
  --soft-shadow: 0 16px 45px rgba(21, 34, 56, 0.1);
  --radius: 8px;
  --content: min(1160px, calc(100vw - 40px));
  --font-sans:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 184, 166, 0.035) 1px, transparent 1px),
    #fbfdff;
  background-size: 56px 56px;
  font-family: var(--font-sans);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(251, 253, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--content);
  height: 72px;
  margin: 0 auto;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(21, 34, 56, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #475467;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(0, 102, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 600;
  background: rgba(0, 102, 255, 0.07);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 128px);
  padding: 56px max(20px, calc((100vw - 1160px) / 2)) 64px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 72% 20%, rgba(18, 184, 134, 0.15), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(245, 158, 11, 0.15), transparent 26%),
    linear-gradient(130deg, #ffffff 0%, #f3f8ff 48%, #f8fffb 100%);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 52%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(590px, 100%);
  padding-top: min(7vh, 70px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lede {
  max-width: 540px;
  margin: 28px 0 0;
  color: #344054;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 34px rgba(0, 102, 255, 0.28);
}

.button.ghost {
  color: #1d2939;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(102, 112, 133, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 38px 0 0;
}

.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid rgba(102, 112, 133, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.hero-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hero-metrics dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 650;
}

.hero-stage {
  position: absolute;
  inset: 28px max(14px, calc((100vw - 1160px) / 2)) auto auto;
  width: min(620px, 50vw);
  height: min(720px, calc(100svh - 80px));
  min-height: 540px;
  z-index: 1;
}

.phone {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 28px 74px rgba(21, 34, 56, 0.18),
    0 0 0 1px rgba(102, 112, 133, 0.12);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
}

.phone-main {
  top: 24px;
  right: 88px;
  width: min(320px, 28vw);
  aspect-ratio: 1206 / 2622;
  animation: phoneFloat 6.4s ease-in-out infinite;
}

.phone-side {
  width: min(230px, 20vw);
  aspect-ratio: 1206 / 2622;
  opacity: 0.96;
  filter: saturate(1.05);
}

.phone-ai {
  top: 120px;
  right: 0;
  transform: rotate(7deg);
}

.phone-stats {
  right: 300px;
  bottom: 6px;
  transform: rotate(-8deg);
}

.ticker {
  display: flex;
  gap: 12px;
  width: var(--content);
  margin: 0 auto;
  padding: 18px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  padding-top: 86px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 70px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.workflow h2,
.privacy h2,
.cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.intro p,
.section-heading p,
.workflow-copy p,
.cta-copy p {
  margin: 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.9;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 420px;
}

.feature-band {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1160px) / 2));
  padding-left: max(20px, calc((100vw - 1160px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 248, 252, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(17, 24, 39, 0.035) 32px);
}

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

.feature-card {
  min-height: 242px;
  padding: 24px;
  border: 1px solid rgba(102, 112, 133, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(21, 34, 56, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.24);
  box-shadow: 0 22px 58px rgba(21, 34, 56, 0.1);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--coral);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card:nth-child(2n) .feature-index {
  color: var(--mint);
}

.feature-card:nth-child(3n) .feature-index {
  color: var(--amber);
}

.feature-card h3,
.privacy-grid h3,
.flow-list strong {
  margin: 0;
  color: #101828;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 650;
}

.feature-card p,
.privacy-grid p,
.flow-list p,
.screen-copy p {
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.78;
}

.workflow {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

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

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  padding: 22px;
  border: 1px solid rgba(102, 112, 133, 0.15);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(21, 34, 56, 0.07);
}

.flow-list span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.flow-list li:nth-child(2) span {
  background: var(--teal);
}

.flow-list li:nth-child(3) span {
  background: var(--blue);
}

.screens {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1160px) / 2));
  padding-left: max(20px, calc((100vw - 1160px) / 2));
  background: #101828;
  color: #fff;
}

.screens .section-kicker,
.screens .section-heading p {
  color: #a7c9ff;
}

.screens .section-heading h2 {
  color: #fff;
}

.screen-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  gap: 44px;
  align-items: center;
}

.screen-copy {
  min-height: 430px;
  padding: 0;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.screen-tab {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.screen-tab.is-active {
  color: #101828;
  background: #fff;
}

.screen-copy h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.screen-copy p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.screen-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.screen-points span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #d9e8ff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 14px;
  font-weight: 600;
}

.screen-phone {
  position: relative;
  justify-self: center;
  width: min(360px, 76vw);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  aspect-ratio: 1206 / 2622;
}

.screen-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  padding: 44px;
  border: 1px solid rgba(102, 112, 133, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.92)),
    linear-gradient(90deg, rgba(18, 184, 134, 0.08), rgba(0, 102, 255, 0.06));
  box-shadow: var(--soft-shadow);
}

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

.privacy-grid article {
  min-height: 174px;
  padding: 20px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}

.privacy-grid article:nth-child(2) {
  border-left-color: var(--mint);
}

.privacy-grid article:nth-child(3) {
  border-left-color: var(--amber);
}

.privacy-grid article:nth-child(4) {
  border-left-color: var(--coral);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  padding: 68px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 102, 255, 0.95), rgba(20, 184, 166, 0.9)),
    repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(255, 255, 255, 0.14) 37px);
  box-shadow: var(--shadow);
}

.cta .section-kicker,
.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-copy {
  max-width: 650px;
}

.cta .button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 38px;
  color: #667085;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

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

  .hero-copy {
    width: 100%;
    max-width: 640px;
    padding-top: 0;
  }

  .hero-stage {
    position: relative;
    inset: auto;
    width: min(680px, 100%);
    height: 560px;
    margin: 42px auto 0;
  }

  .phone-main {
    right: 50%;
    width: 300px;
    transform: translateX(50%);
    animation: none;
  }

  .phone-ai {
    right: 18px;
    width: 210px;
  }

  .phone-stats {
    right: auto;
    left: 18px;
    width: 210px;
  }

  .intro-layout,
  .workflow,
  .privacy-panel,
  .screen-showcase {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-copy {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100vw - 28px, 1160px);
  }

  .site-header {
    min-height: 64px;
  }

  .site-header-inner {
    height: 64px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .header-action {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero {
    position: relative;
    min-height: calc(100svh - 116px);
    padding-bottom: 34px;
  }

  .hero-copy {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 76px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 238px;
  }

  .hero-stage {
    position: absolute;
    top: 48px;
    right: -108px;
    width: 292px;
    height: 380px;
    min-height: 0;
    margin: 0;
    opacity: 0.34;
    pointer-events: none;
  }

  .phone-main {
    top: 16px;
    right: 74px;
    width: 174px;
  }

  .phone-ai {
    top: 74px;
    right: 0;
    width: 124px;
  }

  .phone-stats {
    bottom: 38px;
    left: 0;
    width: 124px;
  }

  .section {
    padding: 62px 0;
  }

  .intro-layout {
    gap: 24px;
  }

  .intro h2,
  .section-heading h2,
  .workflow h2,
  .privacy h2,
  .cta h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

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

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

  .feature-index {
    margin-bottom: 24px;
  }

  .screen-tabs {
    gap: 6px;
    margin-bottom: 30px;
  }

  .screen-tab {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .privacy-panel,
  .cta {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 28px;
  }
}

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