:root {
  --bg: #edf4f8;
  --paper: #ffffff;
  --paper-soft: #f7fafc;
  --ink: #17212b;
  --muted: #667887;
  --line: #d6e1ea;
  --blue: #229ed9;
  --blue-deep: #1477ad;
  --mint: #31c48d;
  --amber: #e7a326;
  --rose: #e54866;
  --cyan: #1d9ba8;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.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: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(214, 225, 234, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(23, 33, 43, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img,
.site-footer img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  background: #eef7fb;
  color: var(--ink);
}

.site-nav .nav-action {
  background: var(--ink);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px max(24px, calc((100vw - var(--max)) / 2)) 86px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(237, 244, 248, 0.92), rgba(237, 244, 248, 0.56) 42%, rgba(255, 255, 255, 0.2)),
    url("assets/relaygo-icon.png") right 11vw top 16vh / min(30vw, 360px) auto no-repeat,
    #edf4f8;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, var(--bg), rgba(237, 244, 248, 0));
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-stage {
  position: absolute;
  inset: 100px max(18px, calc((100vw - 1250px) / 2)) 44px;
  z-index: -1;
  pointer-events: none;
}

.device-stack {
  position: absolute;
  right: 0;
  top: 7%;
  width: min(44vw, 570px);
  min-width: 520px;
  height: 620px;
}

.phone-shell {
  position: absolute;
  background: #111820;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-shell::before {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 94px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #111820;
  content: "";
  z-index: 2;
}

.phone-main {
  inset: 0 auto auto 138px;
  width: 300px;
  height: 610px;
  padding: 38px 13px 13px;
  transform: rotate(3deg);
}

.phone-side {
  left: 0;
  top: 78px;
  width: 250px;
  height: 510px;
  padding: 35px 11px 12px;
  transform: rotate(-9deg);
  opacity: 0.96;
}

.phone-bar,
.chat-list,
.message-thread,
.composer,
.bottom-tabs {
  background: var(--paper);
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.phone-bar strong {
  color: var(--mint);
  font-size: 12px;
}

.phone-bar.compact {
  min-height: 48px;
  font-size: 14px;
}

.chat-list {
  height: 434px;
  padding: 8px 0;
}

.chat-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid #e9f0f5;
}

.chat-row.active {
  background: #eef8fd;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.avatar.mint {
  background: var(--mint);
}

.avatar.amber {
  background: var(--amber);
}

.avatar.rose {
  background: var(--rose);
}

.chat-row strong,
.chat-row p,
.chat-row em {
  display: block;
  margin: 0;
}

.chat-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.chat-row p,
.chat-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.bottom-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 74px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.bottom-tabs span,
.bottom-tabs strong {
  display: grid;
  place-items: center;
}

.bottom-tabs strong {
  color: var(--blue);
}

.message-thread {
  height: 357px;
  padding: 20px 13px;
  background: linear-gradient(180deg, #f8fbfd, #eaf2f8);
}

.bubble {
  width: fit-content;
  max-width: 82%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.08);
}

.bubble.inbound {
  background: var(--paper);
}

.bubble.outbound {
  margin-left: auto;
  background: var(--blue);
  color: #ffffff;
}

.media-bubble {
  border: 1px solid #d9edf6;
}

.voice-bubble {
  min-width: 150px;
}

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.composer b {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
}

.floating-card,
.status-strip {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(23, 33, 43, 0.12);
  backdrop-filter: blur(16px);
}

.floating-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 11px;
  width: 235px;
  padding: 13px;
}

.floating-card .panel-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e9fbf3;
  color: #118456;
  font-size: 12px;
  font-weight: 900;
}

.floating-card .panel-icon.lock {
  background: #fff0f3;
  color: var(--rose);
}

.floating-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.floating-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.card-one {
  right: 34%;
  bottom: 13%;
}

.card-two {
  right: 0;
  top: 28%;
}

.card-two .panel-icon {
  background: #fff4dc;
  color: #9a6500;
}

.status-strip {
  right: 4%;
  bottom: 2%;
  display: flex;
  gap: 14px;
  padding: 13px 15px;
}

.status-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-strip b {
  color: var(--ink);
  font-size: 18px;
}

.hero-copy {
  width: min(510px, 100%);
  padding-top: 52px;
}

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

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.9;
  font-weight: 950;
}

.hero-lede {
  max-width: 500px;
  margin: 22px 0 0;
  color: #314454;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.25;
  font-weight: 780;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(34, 158, 217, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(214, 225, 234, 0.88);
  color: var(--ink);
}

.hero-cue {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.product-section {
  padding-top: 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  font-weight: 940;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.section-heading p,
.interface-copy p,
.privacy-text p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

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

.feature-card,
.workflow-list li,
.privacy-grid article,
.faq-list details,
.link-grid a,
.legal-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.06);
}

.feature-card {
  min-height: 250px;
  padding: 20px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 8px;
  background: #e7f7fa;
  color: var(--cyan);
  font-weight: 950;
}

.feature-card:nth-child(2) .feature-icon {
  background: #fff4dc;
  color: #986300;
}

.feature-card:nth-child(3) .feature-icon {
  background: #e9fbf3;
  color: #118456;
}

.feature-card:nth-child(4) .feature-icon {
  background: #fff0f3;
  color: var(--rose);
}

.feature-card p,
.workflow-list p,
.privacy-grid p,
.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.interface-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2));
  background: #17212b;
  color: #ffffff;
}

.interface-copy {
  max-width: 440px;
}

.interface-copy .section-kicker {
  color: #69d7ff;
}

.interface-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 20px;
}

.console-preview {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #eef4f8;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.preview-sidebar {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.mini-title,
.mini-row {
  border-radius: 6px;
  background: #e6eef5;
}

.mini-title {
  width: 70%;
  height: 22px;
  margin-bottom: 22px;
}

.mini-row {
  height: 58px;
  margin-bottom: 11px;
}

.mini-row.on {
  background: #dff3fb;
}

.mini-row.short {
  width: 82%;
}

.preview-main {
  padding: 22px;
  background: #eef4f8;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.summary-line strong,
.summary-line span {
  overflow-wrap: anywhere;
}

.summary-line span {
  color: var(--mint);
  font-weight: 900;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.preview-tabs span,
.preview-tabs strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.preview-tabs strong {
  background: var(--blue);
  color: #ffffff;
}

.thread-card {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.08);
}

.thread-card.inbound {
  width: 78%;
  background: var(--paper);
}

.thread-card.outbound {
  width: 72%;
  margin-left: auto;
  background: var(--blue);
  color: #ffffff;
}

.thread-card span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.75;
}

.thread-card p {
  margin: 7px 0 0;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.metric-row span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 8px;
  background: #e9fbf3;
  color: #118456;
  font-weight: 900;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-list li {
  position: relative;
  min-height: 258px;
  padding: 20px;
}

.workflow-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 950;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1fr);
  gap: 48px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.privacy-text p {
  margin-top: 20px;
}

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

.privacy-grid article {
  padding: 20px;
}

.privacy-grid strong {
  font-size: 18px;
}

.app-store-section {
  border-top: 1px solid var(--line);
}

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

.link-grid a {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.link-grid strong {
  font-size: 17px;
}

.link-grid span {
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.faq-section h2 {
  margin-bottom: 26px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--blue-deep);
}

.legal-main {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto;
  padding: 132px 0 80px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  font-weight: 950;
}

.legal-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.legal-card,
.support-card {
  padding: 24px;
  margin-top: 14px;
}

.legal-card h2,
.support-card h2 {
  font-size: 28px;
  line-height: 1.05;
}

.legal-card h3,
.support-card h3 {
  margin-top: 22px;
}

.legal-card p,
.legal-card li,
.support-card p,
.support-card li {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.legal-card a,
.support-card a {
  color: var(--blue-deep);
  font-weight: 900;
}

.legal-card ul,
.support-card ul {
  padding-left: 20px;
}

.contact-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: #e7f7fa;
  color: var(--ink);
  font-weight: 850;
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(23, 33, 43, 0.14);
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: 90svh;
    align-items: start;
    padding: 116px 22px 76px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(237, 244, 248, 0.96), rgba(237, 244, 248, 0.74) 45%, rgba(237, 244, 248, 0.9)),
      url("assets/relaygo-icon.png") right 20px top 118px / 210px auto no-repeat,
      #edf4f8;
  }

  .hero-stage {
    inset: 332px 0 40px;
  }

  .device-stack {
    right: 50%;
    top: 20px;
    transform: translateX(50%) scale(0.74);
    transform-origin: top center;
    min-width: 520px;
  }

  .card-one {
    left: 20px;
    right: auto;
    bottom: 38px;
  }

  .card-two {
    display: none;
  }

  .status-strip {
    right: 20px;
    bottom: 36px;
    flex-direction: column;
    gap: 4px;
  }

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

  .section-heading,
  .interface-band,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .workflow-list,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .console-preview {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 90svh;
    padding-inline: 18px;
  }

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

  .button {
    width: 100%;
  }

  .hero-stage {
    top: 346px;
  }

  .device-stack {
    transform: translateX(50%) scale(0.5);
  }

  .floating-card {
    width: calc(100% - 36px);
  }

  .card-one {
    bottom: 70px;
  }

  .status-strip {
    left: 18px;
    right: 18px;
    bottom: 14px;
    flex-direction: row;
    justify-content: space-between;
  }

  .status-strip span {
    font-size: 11px;
  }

  .status-strip b {
    font-size: 15px;
  }

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

  .product-section {
    padding-top: 24px;
  }

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

  .feature-card,
  .workflow-list li {
    min-height: 0;
  }

  .feature-icon,
  .workflow-list span {
    margin-bottom: 24px;
  }

  .interface-band {
    padding: 62px 18px;
  }

  .console-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .summary-line,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .summary-line {
    display: grid;
  }

  .metric-row {
    display: grid;
  }

  .thread-card.inbound,
  .thread-card.outbound {
    width: 100%;
  }

  .privacy-section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

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

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

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