:root {
  --navy-950: #04102a;
  --navy-900: #071a42;
  --navy-850: #0d2457;
  --navy-800: #143172;
  --blue-800: #092a82;
  --blue-700: #123fb9;
  --blue-600: #185ce8;
  --blue-500: #2f7dff;
  --soft-blue: #edf5ff;
  --cyan-400: #26c8ff;
  --violet-500: #7769ff;
  --white: #ffffff;
  --ice: #f6f9ff;
  --line: rgba(255,255,255,.16);
  --line-dark: rgba(9,25,67,.12);
  --text: #08122b;
  --muted: #63708a;
  --muted-light: #b9c7e8;
  --shadow: 0 28px 80px rgba(1, 12, 40, .28);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 125, 255, .12), transparent 30rem),
    radial-gradient(circle at 86% 12%, rgba(38, 200, 255, .14), transparent 25rem),
    var(--white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

section[id] {
  scroll-margin-top: 82px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--text);
  transition: background .2s ease, border-color .2s ease, min-height .2s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand img { width: 176px; height: auto; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover { color: var(--blue-700); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-menu {
  position: relative;
  display: flex;
}

.login-menu button {
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 4px;
}

.login-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 180px;
  display: none;
  padding: 8px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-menu button[aria-expanded="true"] + .login-links { display: grid; }
.login-links a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.login-links a:hover { background: var(--soft-blue); color: var(--blue-700); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 12px 36px rgba(47, 125, 255, .35);
}

.button-secondary {
  color: var(--blue-700);
  border-color: rgba(18, 63, 185, .2);
  background: rgba(255,255,255,.88);
}

.button-secondary-dark {
  color: var(--blue-700);
  border-color: rgba(22, 59, 177, .18);
  background: var(--white);
}

.button-light {
  color: var(--blue-700);
  background: var(--white);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 63, 185, .22);
  border-radius: 999px;
  background: var(--white);
  padding: 0;
  box-shadow: 0 10px 26px rgba(18, 63, 185, .12);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-800);
}

.mobile-nav {
  position: fixed;
  z-index: 19;
  top: 78px;
  left: 12px;
  right: 12px;
  display: none;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open { display: grid; }
.mobile-nav a {
  color: var(--text);
  padding: 14px;
  border-radius: 6px;
  font-weight: 800;
}

.section-dark,
.section-blue {
  color: var(--text);
  background: var(--white);
}

.section-light {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(420px, 680px);
  gap: clamp(24px, 3vw, 36px);
  justify-content: center;
  align-items: center;
  padding: 124px clamp(18px, 5vw, 72px) 70px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 249, 255, .96), rgba(255,255,255,.98)),
    radial-gradient(circle at 82% 22%, rgba(47, 125, 255, .18), transparent 30rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35vh;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(237, 245, 255, .9), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: .94;
  letter-spacing: -0.04em;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.hero-subtitle {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 38px;
  max-width: 100%;
}

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

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(14, 45, 113, .07);
}

.hero-metrics dt {
  color: var(--blue-800);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-suite {
  width: min(112%, 720px);
  filter: drop-shadow(0 26px 52px rgba(14, 45, 113, .16));
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  color: var(--text);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.logo-strip span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 12px;
  background: var(--white);
  color: var(--blue-800);
  font-weight: 900;
  font-size: 13px;
}

.platform,
.pricing,
.blog-shell {
  padding: clamp(68px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-intro.align-left {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: var(--max);
}

.section-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.platform-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(14, 45, 113, .08);
}

.feature {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
}
.feature:last-child { border-right: 0; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 52px;
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}
.feature p { color: var(--muted); margin-bottom: 0; }

.showcase {
  padding: clamp(72px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 12%, rgba(38,200,255,.18), transparent 26rem),
    linear-gradient(180deg, var(--soft-blue), var(--white));
}

.showcase-copy {
  max-width: var(--max);
  margin: 0 auto 40px;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.phone-slider {
  --slide-size: clamp(500px, 42vw, 620px);
  width: min(100%, 1080px);
  margin: 12px auto 0;
  position: relative;
}

.phone-row {
  display: flex;
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  overflow-x: auto;
  padding: 20px calc((100% - var(--slide-size)) / 2) 30px;
  margin: 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - var(--slide-size)) / 2);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.phone-row::-webkit-scrollbar {
  display: none;
}

.phone-row img {
  flex: 0 0 var(--slide-size);
  width: var(--slide-size);
  min-width: 0;
  max-width: none;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  filter: drop-shadow(0 26px 54px rgba(14, 45, 113, .2));
}

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.phone-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 63, 185, .22);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.phone-dots button.is-active {
  width: 24px;
  background: var(--blue-600);
}

.slider-arrow {
  position: absolute;
  top: 52%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(18, 63, 185, .18);
  border-radius: 999px;
  color: var(--blue-800);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 44px rgba(14, 45, 113, .12);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}

.slider-arrow-prev { left: 12px; }
.slider-arrow-next { right: 12px; }

.slider-arrow:hover {
  color: var(--white);
  background: var(--blue-600);
}

.ai-section {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.ai-media img {
  width: min(100%, 680px);
  margin-left: auto;
  filter: drop-shadow(0 26px 52px rgba(14, 45, 113, .14));
}

.ai-copy {
  max-width: 620px;
}

.ai-copy p:not(.eyebrow),
.check-list {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(38,200,255,.12);
}

.pricing-grid,
.blog-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card,
.blog-grid article {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(14, 45, 113, .07);
}

.price-card.featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(38,200,255,.18), transparent 45%),
    linear-gradient(180deg, var(--blue-700), var(--blue-800));
  border-color: transparent;
}

.plan-label,
.post-type {
  margin-bottom: 20px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.featured .plan-label { color: var(--cyan-400); }
.price-card p:not(.plan-label),
.blog-grid p:not(.post-type) {
  color: var(--muted);
}
.featured p:not(.plan-label) { color: var(--muted-light); }
.price-card .button { margin-top: auto; }

.blog-grid article {
  min-height: 250px;
}

.blog-grid h3 {
  font-size: 25px;
}

.blog-grid span {
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.final-cta {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 38px clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,.24), transparent 18rem),
    linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.final-cta img {
  width: 72px;
  border-radius: 18px;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.site-footer {
  color: var(--white);
  background: var(--navy-900);
  padding: 56px clamp(18px, 5vw, 72px) 28px;
  border-top: 1px solid var(--line);
}

.footer-brand,
.footer-columns,
.footer-bottom {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img { width: 184px; height: fit-content; }
.footer-brand p {
  max-width: 360px;
  color: var(--muted-light);
  text-align: right;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0;
}

.footer-columns h2 {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  color: var(--muted-light);
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .desktop-nav,
  .login-menu,
  .header-actions > .button { display: none; }
  .mobile-toggle { display: block; }
  .brand img { width: 156px; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 108px;
  }

  .hero-visual {
    min-height: auto;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .platform-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature:nth-child(2) { border-right: 0; }
  .feature { border-bottom: 1px solid var(--line-dark); }
  .feature:nth-child(3),
  .feature:nth-child(4) { border-bottom: 0; }

  .phone-slider {
    max-width: 100%;
    --slide-size: 220px;
  }

  .phone-row {
    gap: 18px;
    padding: 8px calc((100% - var(--slide-size)) / 2) 22px;
    margin: 0 -16px;
  }

  .slider-arrow {
    display: none;
  }
  .ai-section { grid-template-columns: 1fr; }
  .ai-media img { margin: 0 auto; }
  .final-cta { grid-template-columns: 56px 1fr; }
  .final-cta .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .site-header { min-height: 70px; padding: 12px 16px; }
  .mobile-nav { top: 70px; }
  .brand img { width: 144px; }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .09em;
  }
  h1 { font-size: clamp(40px, 13.4vw, 54px); }
  h2 { font-size: clamp(31px, 10vw, 42px); }

  .hero {
    padding: 98px 16px 48px;
  }

  .hero-copy,
  .hero-subtitle,
  .hero-actions,
  h1 {
    max-width: calc(100vw - 32px);
  }

  h1 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .hero-suite {
    width: min(112%, 440px);
    margin-top: 6px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logo-strip span:last-child { grid-column: 1 / -1; }

  .platform,
  .pricing,
  .blog-shell,
  .showcase,
  .ai-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .platform-grid,
  .pricing-grid,
  .blog-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .feature:nth-child(3) { border-bottom: 1px solid var(--line-dark); }
  .feature-icon { margin-bottom: 36px; }

  .phone-row img {
    flex-basis: var(--slide-size);
    width: var(--slide-size);
    scroll-snap-align: center;
  }

  .phone-row {
    --slide-size: min(70vw, 290px);
  }

  .price-card,
  .blog-grid article {
    min-height: 260px;
  }

  .footer-brand,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-brand p {
    text-align: left;
  }
}
