:root {
  --bg: #f4efe6;
  --bg-strong: #fbf7f0;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #fffdf8;
  --surface-dark: #11202d;
  --text: #14212c;
  --text-soft: #576574;
  --line: rgba(20, 33, 44, 0.12);
  --cyan: #0d9bb5;
  --amber: #f28f3b;
  --red: #d95d39;
  --navy: #1e394d;
  --shadow-lg: 0 30px 80px -40px rgba(17, 32, 45, 0.42);
  --shadow-md: 0 24px 60px -42px rgba(17, 32, 45, 0.35);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13, 155, 181, 0.12), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(242, 143, 59, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f2e8 0%, #f4efe6 38%, #efe9de 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.8);
  border-bottom: 1px solid rgba(20, 33, 44, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 1rem;
  height: 2.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--red) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong,
.brand-text span {
  font-family: "Sora", "Instrument Sans", sans-serif;
  letter-spacing: 0.03em;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(20, 33, 44, 0.78);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
}

.nav-actions,
.hero-actions,
.integration-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--amber) 100%);
  color: #fffdf8;
  box-shadow: 0 18px 35px -24px rgba(217, 93, 57, 0.6);
}

.button-secondary {
  background: rgba(17, 32, 45, 0.08);
  border-color: rgba(17, 32, 45, 0.1);
  color: var(--text);
}

.button-muted {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(20, 33, 44, 0.1);
  color: var(--text);
}

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.eyebrow,
.section-kicker {
  font-family: "Sora", "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.hero h1,
.section-heading h2,
.subscriber-panel h2,
.integration-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: "Sora", "Instrument Sans", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  max-width: 13ch;
}

.hero p {
  margin: 0;
  max-width: 41rem;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics article,
.workflow-card,
.platform-card,
.timeline-card,
.subscriber-list article,
.integration-stack,
.cta-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-metrics article {
  border-radius: 1.25rem;
  padding: 1rem 1rem 1.05rem;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.hero-metrics span {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
  min-height: 32rem;
}

.signal-panel {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1b2d3d 0%, #10202c 100%);
  color: #eef6f8;
  border-radius: 2rem;
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}

.panel-head,
.signal-bars,
.workflow-card ul,
.band-grid,
.operations-grid,
.subscriber-grid,
.integration-grid,
.footer-content {
  display: flex;
}

.panel-head {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 155, 181, 0.18);
  color: #7dd7ea;
  font-size: 0.84rem;
}

.signal-bars {
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.signal-bars div {
  flex: 1;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem;
}

.signal-bars span {
  display: block;
  color: rgba(238, 246, 248, 0.72);
  font-size: 0.82rem;
}

.signal-bars strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "Sora", "Instrument Sans", sans-serif;
  font-size: 1.4rem;
}

.topology-map {
  position: relative;
  min-height: 15rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(rgba(125, 215, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 215, 234, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(13, 155, 181, 0.24), transparent 42%);
  background-size: 26px 26px, 26px 26px, auto;
  overflow: hidden;
}

.node,
.line {
  position: absolute;
}

.node {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #8ae5f5;
  box-shadow: 0 0 0 7px rgba(138, 229, 245, 0.12);
  animation: pulse 3s infinite ease-in-out;
}

.node-a { top: 22%; left: 18%; }
.node-b { top: 60%; left: 34%; }
.node-c { top: 38%; right: 24%; }
.node-d { bottom: 16%; right: 14%; }

.line {
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(138, 229, 245, 0.35), rgba(242, 143, 59, 0.55));
}

.line-a {
  top: 26%;
  left: 20%;
  width: 31%;
  transform: rotate(31deg);
}

.line-b {
  top: 51%;
  left: 36%;
  width: 35%;
  transform: rotate(-14deg);
}

.line-c {
  top: 44%;
  left: 57%;
  width: 24%;
  transform: rotate(48deg);
}

.workflow-card {
  position: absolute;
  right: -1.5rem;
  bottom: 1.5rem;
  width: min(19rem, 100%);
  border-radius: 1.5rem;
  padding: 1.2rem;
}

.workflow-title {
  font-family: "Sora", "Instrument Sans", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.workflow-card ul {
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-card li {
  display: flex;
  gap: 0.75rem;
  color: var(--text-soft);
}

.workflow-card span,
.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(13, 155, 181, 0.12);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-band {
  padding: 1.5rem 0;
}

.band-grid {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.band-grid p {
  margin: 0;
  max-width: 43rem;
  font-weight: 600;
}

.band-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.band-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 33, 44, 0.08);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 47rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.subscriber-panel h2,
.integration-copy h2,
.cta-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.section-heading p,
.subscriber-panel p,
.integration-copy p,
.cta-card p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.platform-card,
.timeline-card,
.subscriber-list article {
  position: relative;
  border-radius: 1.7rem;
  padding: 1.5rem;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.4rem;
  border-radius: 1.7rem 0 0 1.7rem;
}

.accent-cyan::before { background: var(--cyan); }
.accent-amber::before { background: var(--amber); }
.accent-slate::before { background: var(--navy); }
.accent-red::before { background: var(--red); }

.platform-card h3,
.timeline-card h3,
.subscriber-list strong,
.cta-card h2 {
  margin: 0 0 0.7rem;
  font-family: "Sora", "Instrument Sans", sans-serif;
}

.platform-card p,
.timeline-card p,
.subscriber-list p {
  margin: 0;
  color: var(--text-soft);
}

.section-dark {
  background: linear-gradient(180deg, #183142 0%, #10202c 100%);
  color: #f4fafb;
}

.operations-grid {
  flex-direction: column;
  gap: 2rem;
}

.on-dark .section-kicker {
  color: #89dce9;
}

.on-dark p {
  color: rgba(235, 244, 246, 0.76);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.timeline-card p {
  color: rgba(235, 244, 246, 0.76);
}

.timeline-step {
  margin-bottom: 1rem;
  background: rgba(125, 215, 234, 0.12);
  color: #89dce9;
}

.subscriber-grid,
.integration-grid {
  align-items: start;
  gap: 2rem;
}

.subscriber-grid {
  justify-content: space-between;
}

.subscriber-panel {
  max-width: 28rem;
}

.subscriber-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.72) 0%, rgba(245, 239, 228, 0.92) 100%);
}

.integration-grid {
  justify-content: space-between;
}

.integration-copy {
  max-width: 32rem;
}

.integration-stack {
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 2rem;
  padding: 1.5rem;
}

.stack-column {
  flex: 1;
  min-width: 10rem;
}

.stack-label {
  display: block;
  margin-bottom: 0.8rem;
  font-family: "Sora", "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.stack-box,
.stack-core {
  border-radius: 1.2rem;
  padding: 1rem;
  text-align: center;
}

.stack-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 33, 44, 0.08);
}

.stack-box + .stack-box {
  margin-top: 0.8rem;
}

.stack-core {
  min-width: 12rem;
  background: linear-gradient(180deg, #173140 0%, #0d9bb5 100%);
  color: #f5fbfc;
  font-family: "Sora", "Instrument Sans", sans-serif;
  box-shadow: var(--shadow-md);
}

.cta-section {
  padding-top: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 2rem;
  padding: 2rem;
}

.footer {
  margin-top: auto;
  padding: 2rem 0 2.8rem;
  border-top: 1px solid rgba(20, 33, 44, 0.08);
}

.footer-content {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand span,
.footer-links a {
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .subscriber-grid,
  .integration-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-metrics,
  .platform-grid,
  .timeline,
  .subscriber-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-card {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .site-nav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .nav-wrapper {
    flex-wrap: wrap;
  }

  .timeline,
  .platform-grid,
  .subscriber-list,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .band-grid,
  .cta-card,
  .footer-content,
  .integration-stack {
    flex-direction: column;
    align-items: flex-start;
  }

  .integration-stack {
    width: 100%;
  }

  .stack-core {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.4rem));
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .signal-bars {
    flex-direction: column;
  }

  .signal-panel {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .topology-map {
    min-height: 12rem;
  }

  .cta-card {
    padding: 1.5rem;
  }
}
