/* ---------- Tokens ---------- */
:root {
  --black: #0b0b0c;
  --near-black: #17181a;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --gray-100: #ececea;
  --gray-300: #cfcdc9;
  --gray-500: #7c7a76;
  --gray-700: #4a4947;
  --orange: #ff5a1f;
  --orange-dark: #d6470f;
  --orange-light: #ffe6da;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;

  --radius: 0;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
* { border-radius: 0 !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--gray-700); }

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-outline {
  background: transparent;
  color: var(--near-black);
  border-color: var(--near-black);
}
.btn-outline:hover { background: var(--near-black); color: var(--white); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--gray-100);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; color: var(--orange); }
.brand-name em { font-style: normal; color: var(--orange); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
.nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--gray-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--near-black); border-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--near-black);
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--near-black);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { top: 12px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 26px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--off-white); border-bottom: 1px solid var(--gray-100); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 76px 24px 64px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 18px;
  padding: 6px 12px;
  background: var(--orange-light);
  border: 1px solid var(--orange);
}

.eyebrow-center { display: block; width: fit-content; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow-light { background: transparent; border-color: var(--orange); color: var(--orange); }

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 22px;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.bridge-svg { width: 100%; height: auto; max-width: 560px; }

.bridge-tower { fill: var(--near-black); }
.bridge-deck { fill: var(--near-black); }
.bridge-deck-posts rect { fill: var(--near-black); }
.bridge-water { stroke: var(--gray-300); stroke-width: 2; }
.bridge-cable { fill: none; stroke: var(--orange); stroke-width: 2.5; }
.bridge-cables line { stroke: var(--orange); stroke-width: 1.6; opacity: .85; }
.bridge-dot {
  fill: var(--orange-dark);
  offset-path: path('M75 262 L525 262');
  offset-rotate: 0deg;
  animation: travel 4.2s linear infinite;
  filter: drop-shadow(0 0 4px var(--orange));
}
.dot-trail { opacity: .45; filter: none; }
.d1.dot-lead { animation-delay: 0s; }
.d1.dot-trail { animation-delay: .16s; }
.d2.dot-lead { animation-delay: 1.4s; }
.d2.dot-trail { animation-delay: 1.56s; }
.d3.dot-lead { animation-delay: 2.8s; }
.d3.dot-trail { animation-delay: 2.96s; }

@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-dot, .span-dot { animation: none; }
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--near-black); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 24px;
  gap: 18px;
}
.stat { text-align: center; border-left: 1px solid rgba(255,255,255,.12); padding-left: 18px; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 4px;
}
.stat-label { display: block; font-size: .82rem; color: var(--gray-300); letter-spacing: .01em; }

/* ---------- Sections generic ---------- */
section { padding: 96px 0; }

.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; max-width: 44ch; margin-left: auto; margin-right: auto; }
.section-sub { text-align: center; max-width: 60ch; margin: 0 auto 56px; font-size: 1.05rem; }

.section-title-light { color: var(--white); }
.section-sub-light { color: var(--gray-300); }

/* ---------- Features ---------- */
.features { background: var(--white); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}

.feature-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background-color .15s ease;
}
.feature-card:hover { background: var(--off-white); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--orange);
  color: var(--orange);
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: .95rem; }

/* ---------- How it works / bridge diagram ---------- */
.how-it-works { background: var(--off-white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

.bridge-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.bridge-node {
  background: var(--white);
  border: 2px solid var(--near-black);
  padding: 30px 26px;
  width: 260px;
  flex-shrink: 0;
  text-align: center;
}
.bridge-node-center { border-color: var(--orange); background: var(--near-black); color: var(--white); }
.bridge-node-center h3 { color: var(--white); }
.bridge-node-center p { color: var(--gray-300); }

.bridge-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--orange);
}
.bridge-node-center .bridge-node-icon { color: var(--orange); }
.bridge-node-icon svg { width: 26px; height: 26px; }

.bridge-node h3 { font-size: 1.05rem; margin-bottom: 8px; }
.bridge-node p { font-size: .9rem; margin-bottom: 0; }

.bridge-span { width: 90px; flex-shrink: 0; align-self: center; }
.span-svg { width: 100%; height: 60px; overflow: visible; }
.span-deck { stroke: var(--near-black); stroke-width: 3; }
.span-cable { fill: none; stroke: var(--orange); stroke-width: 2; }
.span-cable-line { stroke: var(--orange); stroke-width: 1.4; opacity: .8; }
.span-dot { fill: var(--orange-dark); offset-path: path('M0 40 L200 40'); animation: travel-span 2.4s linear infinite; }
.span-dot-1 { animation-delay: 0s; }
.span-dot-2 { animation-delay: 1.2s; }

@keyframes travel-span {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- Security ---------- */
.security { background: var(--near-black); color: var(--white); }

.security-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}

.security-copy .section-title,
.security-copy .section-sub { text-align: left; margin-left: 0; }

.security-list { display: flex; flex-direction: column; gap: 22px; }
.security-list li { display: flex; gap: 16px; align-items: flex-start; }

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
}

.security-list h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 4px; }
.security-list p { color: var(--gray-300); font-size: .92rem; margin-bottom: 0; }

.security-visual { display: flex; align-items: center; justify-content: center; }
.security-visual svg { width: 100%; max-width: 220px; color: var(--orange); }

/* ---------- Integrations ---------- */
.integrations { background: var(--white); }

.providers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}

.provider-node {
  background: var(--off-white);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gray-500);
  font-size: 1.1rem;
  transition: background-color .15s ease, color .15s ease;
}
.provider-node:hover { background: var(--near-black); color: var(--orange); }

.provider-node-more {
  background: var(--orange);
  color: var(--white);
}
.provider-node-more:hover { background: var(--orange-dark); color: var(--white); }

/* ---------- Pricing ---------- */
.pricing { background: var(--orange-light); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.pricing-inner { text-align: center; }
.pricing .section-sub { margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact { background: var(--near-black); color: var(--white); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-copy .section-title,
.contact-copy .section-sub { text-align: left; margin: 0 0 8px; max-width: 42ch; }
.contact-copy .section-title { margin-bottom: 14px; }

.contact-email {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 4px;
  flex-shrink: 0;
  transition: color .15s ease, border-color .15s ease;
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid rgba(255,255,255,.1); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner .brand-mark { color: var(--orange); }
.footer-inner .brand-name { color: var(--white); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--gray-300); font-size: .9rem; font-weight: 600; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy { color: var(--gray-500); font-size: .85rem; margin: 0; width: 100%; text-align: center; order: 3; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { order: -1; }
  .security-inner { grid-template-columns: 1fr; }
  .security-visual { order: -1; max-width: 160px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .providers-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-actions .btn-sm { display: none; }
  .bridge-diagram { flex-direction: column; align-items: center; }
  .bridge-node { width: 100%; max-width: 340px; }
  .bridge-span { width: 4px; height: 50px; background: var(--orange); align-self: center; }
  .bridge-span .span-svg { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner .brand { margin: 0 auto; }
  .footer-nav { justify-content: center; width: 100%; }
}
