:root {
  --blue: #229ed9;
  --blue-dark: #1687bd;
  --blue-soft: #eaf7fd;
  --ink: #17212b;
  --muted: #5f6f7a;
  --line: #dceaf2;
  --surface: #ffffff;
  --surface-soft: #f6fbff;
  --shadow: 0 20px 55px rgba(23, 33, 43, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(234, 247, 253, 0.9) 0, rgba(255, 255, 255, 0) 410px),
    var(--surface);
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 234, 242, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.brand-mark svg path + path {
  fill: rgba(255, 255, 255, 0.78);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--blue);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle span:not(.sr-only) + span {
  margin-top: 6px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.download-actions {
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.download-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.06);
  font-weight: 750;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 158, 217, 0.35);
  box-shadow: 0 14px 30px rgba(23, 33, 43, 0.11);
}

.download-button.primary {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.download-button.primary:hover,
.download-button.primary:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button-icon,
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-links {
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
}

.platform-links a {
  border-bottom: 1px solid transparent;
}

.platform-links a:hover,
.platform-links a:focus-visible {
  border-color: currentColor;
}

.phone-scene {
  width: min(360px, 92vw);
  position: relative;
}

.phone-scene::before {
  content: "";
  position: absolute;
  inset: auto 12% -14px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 33, 43, 0.16);
  filter: blur(12px);
}

.phone {
  position: relative;
  width: min(286px, 82vw);
  aspect-ratio: 0.56;
  margin: 0 auto;
  border: 10px solid #132433;
  border-radius: 38px;
  background: #132433;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #132433;
  transform: translateX(-50%);
}

.app-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4fbff 0, #ffffff 42%),
    #ffffff;
}

.chat-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 14px;
  color: #ffffff;
  background: var(--blue);
  text-align: left;
}

.chat-topbar strong {
  display: block;
  font-size: 15px;
}

.chat-topbar span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.avatar-group {
  display: flex;
  min-width: 54px;
}

.avatar-group span {
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #99d7f2;
}

.avatar-group span + span {
  margin-left: -12px;
}

.avatar-group span:nth-child(2) {
  background: #65c2ec;
}

.avatar-group span:nth-child(3) {
  background: #d7f0fb;
}

.message-list {
  padding: 22px 16px;
  display: grid;
  gap: 12px;
}

.message {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  border-radius: 18px;
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.08);
}

.message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.message-author {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.message.incoming {
  justify-self: start;
  color: var(--ink);
  background: #ffffff;
}

.message.outgoing {
  justify-self: end;
  color: #ffffff;
  background: var(--blue);
}

.message.media {
  width: 190px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #ffffff;
}

.message.media span {
  min-height: 52px;
  border-radius: 10px;
  background: var(--blue-soft);
}

.message.media span:first-child {
  grid-row: span 2;
}

.message.small {
  max-width: 72%;
}

.compose-bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.1);
}

.compose-bar span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #d8edf7;
}

.compose-bar strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 28px;
}

.section-heading {
  width: min(700px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.platform-band h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.news-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 33, 43, 0.05);
}

.news-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.news-date {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.news-card h3,
.feature-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.news-card p:not(.news-date),
.feature-card p,
.platform-band p,
.footer-brand p {
  color: var(--muted);
  line-height: 1.65;
}

.news-card p:not(.news-date) {
  margin: 12px 0 20px;
}

.news-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 800;
}

.news-card a:hover,
.news-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.feature-card {
  min-height: 236px;
  padding: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 158, 217, 0.34);
  box-shadow: 0 18px 38px rgba(23, 33, 43, 0.09);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p {
  margin: 12px 0 0;
}

.platform-band {
  width: min(1120px, calc(100% - 40px));
  margin: 72px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--surface-soft);
}

.platform-band div {
  width: min(690px, 100%);
}

.platform-band p:last-child {
  margin: 14px 0 0;
  font-size: 18px;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 80px auto 0;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
}

.footer-brand p {
  margin: 18px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue-dark);
}

.legal-nav {
  margin-left: auto;
}

.legal-hero {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 28px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(38px, 7vw, 58px);
}

.legal-hero p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.legal-content section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

:focus-visible {
  outline: 3px solid rgba(34, 158, 217, 0.36);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .platform-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: grid;
    align-content: center;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a,
  .nav-links .nav-cta {
    min-height: 46px;
    margin-left: 0;
    justify-content: center;
  }

  .hero,
  .section,
  .platform-band,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 42px 0 34px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

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

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .news-grid,
  .feature-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(246px, 82vw);
  }

  .section {
    padding-top: 68px;
  }

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

  .platform-band {
    margin-top: 58px;
    padding: 24px;
  }

  .legal-nav {
    position: static;
    display: flex;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .legal-content {
    width: min(100% - 28px, 900px);
    padding: 24px;
  }
}

@media (max-width: 410px) {
  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .phone {
    border-width: 8px;
    border-radius: 32px;
  }

  .message.media {
    width: 168px;
  }
}
