:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667389;
  --soft: #eef4fb;
  --line: #dbe4f0;
  --blue: #315bc3;
  --blue-soft: #6d91ee;
  --deep: #16233b;
  --paper: #f8fbff;
  --surface: #ffffff;
  --shadow: 0 22px 54px rgba(45, 58, 88, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 56px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(219, 228, 240, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 20px;
  font-weight: 780;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.site-header nav {
  gap: 30px;
  color: #4c5870;
  font-size: 15px;
  font-weight: 650;
}

.site-header nav a {
  transition: color 160ms ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.site-header nav .nav-cta:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  min-height: 820px;
  padding: 140px clamp(22px, 5vw, 56px) 68px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 44%, rgba(236, 244, 249, 0.78) 100%),
    url("/assets/screenshots/intro/home-feed.png") right 7% top 44% / 680px auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  animation: rise-in 650ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 3px;
  background: var(--blue-soft);
  border-radius: 99px;
}

h1 {
  max-width: 610px;
  font-size: clamp(56px, 5.7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 span {
  color: var(--blue);
}

.hero__lead {
  max-width: 560px;
  margin-top: 26px;
  color: #47536a;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.7;
  font-weight: 520;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

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

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

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(49, 91, 195, 0.22);
}

.button--secondary {
  color: var(--blue);
  border: 1px solid #c9d7f5;
  background: rgba(255, 255, 255, 0.72);
}

.hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin-top: 62px;
}

.hero__points div {
  padding-top: 18px;
  border-top: 1px solid #cfd9e8;
}

.hero__points strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.hero__points span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero__visual {
  position: relative;
  z-index: 2;
  min-height: 620px;
  animation: float-in 780ms 120ms ease both;
}

.phone {
  position: absolute;
  overflow: hidden;
  width: 330px;
  height: 675px;
  border: 10px solid #121722;
  border-radius: 48px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(41, 58, 92, 0.26);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.phone:hover {
  box-shadow: 0 32px 72px rgba(41, 58, 92, 0.3);
}

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

.phone--main {
  right: 86px;
  top: 8px;
}

.phone--secondary {
  right: 374px;
  top: 112px;
  width: 280px;
  height: 574px;
  opacity: 0.96;
  transform: rotate(-3deg);
}

.phone--secondary:hover {
  transform: translateY(-4px) rotate(-3deg);
}

.phone--tertiary {
  right: -60px;
  top: 170px;
  width: 255px;
  height: 524px;
  opacity: 0.92;
  transform: rotate(4deg);
}

.phone--tertiary:hover {
  transform: translateY(-4px) rotate(4deg);
}

.section {
  padding: clamp(80px, 8vw, 112px) clamp(22px, 5vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
  background: #fff;
}

.section__copy {
  max-width: 670px;
}

h2 {
  max-width: 720px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section__copy p,
.screenshots__heading > p,
.final-cta p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.feature-lines {
  display: grid;
  gap: 26px;
  padding-top: 6px;
}

.feature-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.feature-line > span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 790;
}

.feature-line p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.screenshots {
  background: var(--paper);
}

.screenshots__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 58px;
}

.screenshots__heading > p {
  max-width: 500px;
  margin-top: 0;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  contain: layout paint;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease;
}

.screen:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(45, 58, 88, 0.16);
}

.screen__media {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 1 / 1.78;
  background: #f2f6fb;
}

.screen__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.screen figcaption {
  flex: 1 1 auto;
  min-height: 154px;
  padding: 22px 24px 26px;
  border-top: 1px solid #e5ebf4;
}

.screen strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.screen span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  min-height: 45px;
}

.pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(42px, 6vw, 70px);
  align-items: center;
  color: #fff;
  background: var(--deep);
}

.pro .eyebrow,
.pro h2 {
  color: #fff;
}

.pro .eyebrow::before {
  background: var(--blue-soft);
}

.pro .section__copy p {
  color: #c8d2e4;
}

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

.pro-grid div {
  min-height: 126px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.pro-grid strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.pro-grid span {
  display: block;
  margin-top: 10px;
  color: #c8d2e4;
  font-size: 15px;
  line-height: 1.5;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  background: #fff;
}

.final-cta h2 {
  max-width: 760px;
}

.mini-code {
  width: 226px;
  padding: 22px;
  border: 1px solid #d5dfef;
  border-radius: 32px;
  background: #f6f9fd;
}

.mini-code img {
  width: 100%;
  height: auto;
}

.mini-code figcaption {
  margin-top: 12px;
  color: #4c5870;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  }

  .phone--main {
    right: 54px;
  }

  .phone--secondary {
    right: 300px;
  }

  .phone--tertiary {
    right: -96px;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 104px;
    background: #f8fbff;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__points {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .hero__visual {
    height: 620px;
    min-height: 0;
    margin-top: 44px;
  }

  .phone--main {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .phone--main:hover {
    transform: translateX(-50%) translateY(-4px);
  }

  .phone--secondary,
  .phone--tertiary {
    display: none;
  }

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

  .screenshots__heading {
    display: block;
  }

  .screenshots__heading > p {
    margin-top: 22px;
  }

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

  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .brand {
    font-size: 18px;
  }

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

  .nav-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    padding: 96px 18px 54px;
  }

  .hero,
  .section {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero__copy,
  .section__copy,
  .screenshots__heading,
  .final-cta > div {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .eyebrow::before {
    width: 26px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 52px);
    max-width: calc(100vw - 36px);
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .hero__points strong {
    font-size: 17px;
  }

  .hero__visual {
    height: 590px;
  }

  .phone {
    width: min(326px, calc(100vw - 44px));
    height: min(668px, calc((100vw - 44px) * 2.05));
    border-width: 9px;
    border-radius: 42px;
  }

  .section {
    padding: 72px 18px;
  }

  h2 {
    font-size: clamp(34px, 10vw, 42px);
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
  }

  h3 {
    font-size: 24px;
  }

  .section__copy p,
  .screenshots__heading > p,
  .final-cta p {
    font-size: 17px;
  }

  .feature-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-line p {
    font-size: 16px;
  }

  .screenshots__heading {
    margin-bottom: 36px;
  }

  .screen {
    border-radius: 26px;
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .screen figcaption {
    padding: 18px 20px 22px;
  }

  .pro-grid {
    grid-template-columns: 1fr;
  }

  .mini-code {
    width: 210px;
  }
}

@media (max-width: 380px) {
  .site-header nav {
    gap: 0;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .hero__visual {
    height: 530px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
