/* ============================================================
   Landing page (index.html) — original design, offline.
   ============================================================ */

body.tone-landing {
  overflow-x: hidden;
}

nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

nav.site-nav .wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  font-size: 12.5px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 6px 15px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover {
  background: #0972d9;
  opacity: 0.96;
}

.nav-cta:active {
  transform: scale(0.98);
}

/* ---------- HERO ---------- */
header.hero {
  padding: 100px 0 30px;
  text-align: center;
  position: relative;
}

.hero-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.hero-badge:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.badge-cup {
  font-size: 14px;
  line-height: 1;
}

.badge-text {
  color: var(--ink-soft);
}

.badge-arrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

h1.hero-headline {
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--ink);
}

.hero-subtitle {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-statement-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.05);
  border: 1px solid rgba(10, 132, 255, 0.14);
  margin: 0 auto 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.hero-statement-card .statement-prefix {
  color: var(--ink-soft);
}

.hero-statement-card .statement-strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary.hero-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 550;
  padding: 13px 26px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.28);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary.hero-btn-main:hover {
  background: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.38);
}

.btn-secondary.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary.hero-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--ink);
}

/* ---------- ROUTING DIAGRAM ---------- */
.diagram {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram svg text {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.node-label {
  font-size: 12.5px;
  fill: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.node-sub {
  font-size: 10.5px;
  fill: var(--ink-soft);
}

.node-gateway-title {
  font-size: 13px;
  font-weight: 600;
  fill: #ffffff;
  letter-spacing: -0.015em;
}

.node-gateway-sub {
  font-size: 11px;
  font-weight: 500;
  fill: #e5e5ea;
  letter-spacing: 0.01em;
}

.flow-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.flow-dot {
  fill: var(--accent);
}

/* Modern smooth CSS offset-path animations (hides SMIL if supported) */
@supports (offset-path: path("M 0 0 L 1 1")) {
  .flow-dot.smil { display: none; }

  @keyframes flowMove {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
  }

  .flow-dot-1 { offset-path: path("M 90 178 C 160 178, 180 178, 250 178"); animation: flowMove 2.6s linear infinite; }
  .flow-dot-2 { offset-path: path("M 320 178 C 400 178, 420 33, 500 33"); animation: flowMove 2.8s linear infinite 0.2s; }
  .flow-dot-3 { offset-path: path("M 320 178 C 400 178, 420 91, 500 91"); animation: flowMove 2.4s linear infinite 0.4s; }
  .flow-dot-4 { offset-path: path("M 320 178 C 400 178, 420 149, 500 149"); animation: flowMove 2.5s linear infinite 0.5s; }
  .flow-dot-5 { offset-path: path("M 320 178 C 400 178, 420 207, 500 207"); animation: flowMove 2.6s linear infinite 0.6s; }
  .flow-dot-6 { offset-path: path("M 320 178 C 400 178, 420 265, 500 265"); animation: flowMove 2.5s linear infinite 0.8s; }
  .flow-dot-7 { offset-path: path("M 320 178 C 400 178, 420 323, 500 323"); animation: flowMove 2.9s linear infinite 1s; }
}

@supports not (offset-path: path("M 0 0 L 1 1")) {
  .flow-dot:not(.smil) { display: none; }
}

.diagram-link {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 16px;
}

.diagram-link:hover {
  text-decoration: underline;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 120px 0;
  scroll-margin-top: 68px;
}

.statement-section {
  padding: 100px 0;
  background: var(--bg);
}

.statement-wrap {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statement-wrap .eyebrow-free-label {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: inline-block;
  text-align: center;
}

.statement-wrap h2 {
  font-size: clamp(48px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
  text-align: center;
}

.statement-wrap p {
  font-size: clamp(21px, 2.5vw, 25px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-align: center;
}

/* ---------- FEATURE ROW + CODE ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-text .eyebrow-free-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.feature-text h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 400px;
}

.feature-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.code-block {
  background: #1d1d1f;
  border-radius: 14px;
  padding: 22px 24px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #f5f5f7;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}

.code-block .c1 {
  color: #8e8e93;
}

.code-block .c2 {
  color: #ff9f0a;
}

.code-block .c3 {
  color: #64d2ff;
}

.code-block .c4 {
  color: #30d158;
}

/* ---------- CTA ---------- */
section.cta {
  text-align: center;
  padding: 140px 0;
}

section.cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

section.cta p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.signup-form input:focus {
  border-color: var(--accent);
}

.signup-form button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.signup-form button:hover {
  background: #000;
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- FOOTER ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-links {
  display: flex;
  gap: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

footer .foot-links a:hover {
  color: var(--ink);
}

footer .copyright {
  font-size: 12.5px;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  nav.site-nav .wrap {
    padding: 0 12px;
  }
  .logo span {
    display: none;
  }
  .nav-links {
    display: flex !important;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
  }
  .nav-cta {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 10px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  section {
    padding: 80px 0;
  }
}
