/* ===== Tokens ===== */
:root{
  --black:#1D1D1F;
  --gray-900:#2B2E33;
  --gray-mid:#86868B;
  --gray-line:#D2D2D7;
  --gray-light:#F5F5F7;
  --white:#FFFFFF;
  --blue-dark:#708CB0;
  --blue-darker:#5A7495;
  --blue-light:#B1C3DA;
  --blue-pale:#E9EEF5;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.03em;
  margin:0;
}

p{margin:0;}

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

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

/* ===== Nav ===== */
#navbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(255,255,255,0.75);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.nav-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:14px;
  letter-spacing:-0.01em;
}
.nav-logo img{width:24px; height:24px; object-fit:contain; border-radius:6px;}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
  font-size:13px;
  color:var(--gray-900);
}
.nav-links a{opacity:0.8; transition:opacity 0.2s;}
.nav-links a:hover{opacity:1;}
.nav-cta{
  background:var(--black);
  color:var(--white) !important;
  padding:7px 16px;
  border-radius:100px;
  opacity:1 !important;
  transition:background 0.2s;
}
.nav-cta:hover{background:var(--blue-darker);}
#navToggle{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  padding:8px;
  cursor:pointer;
}
#navToggle span{width:20px; height:2px; background:var(--black); border-radius:2px;}
#navMobile{
  display:none;
  flex-direction:column;
  padding:8px 24px 20px;
  gap:16px;
  font-size:15px;
  border-top:1px solid rgba(0,0,0,0.06);
}
#navMobile.open{display:flex;}
#navMobile .nav-cta{align-self:flex-start;}

/* ===== Hero ===== */
.hero{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:140px 24px 80px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--blue-pale) 0%, rgba(233,238,245,0) 70%),
    var(--white);
}
.hero-content{max-width:760px;}
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue-darker);
  margin-bottom:18px;
}
.eyebrow-inv{color:var(--blue-light);}
.hero h1{
  font-size:clamp(34px, 5.6vw, 64px);
  line-height:1.08;
  color:var(--black);
}
.hero-sub{
  margin:26px auto 0;
  max-width:560px;
  font-size:19px;
  line-height:1.55;
  color:var(--gray-mid);
}
.hero-actions{
  margin-top:36px;
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:15px;
  font-weight:500;
  padding:12px 26px;
  border-radius:100px;
  transition:transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  border:none;
  cursor:pointer;
}
.btn-primary{
  background:var(--blue-dark);
  color:var(--white);
}
.btn-primary:hover{background:var(--blue-darker); transform:translateY(-1px);}
.btn-text{color:var(--black); padding:12px 4px;}
.btn-text .chev{color:var(--blue-dark); transition:transform 0.2s;}
.btn-text:hover .chev{transform:translateX(3px);}
.btn-full{width:100%; justify-content:center;}

/* Hero network graphic */
.hero-graphic{
  margin-top:64px;
  width:100%;
  max-width:760px;
}
.network-svg{width:100%; height:auto; display:block;}
.net-lines line{
  stroke-dasharray:6 6;
  animation:dash-flow 12s linear infinite;
}
@keyframes dash-flow{
  to{stroke-dashoffset:-240;}
}
.net-nodes circle{
  animation:node-glow 3.6s ease-in-out infinite;
  transform-origin:center;
  transform-box:fill-box;
}
.net-nodes circle:nth-child(1){animation-delay:0s;}
.net-nodes circle:nth-child(2){animation-delay:0.3s;}
.net-nodes circle:nth-child(3){animation-delay:0.6s;}
.net-nodes circle:nth-child(4){animation-delay:0.9s;}
.net-nodes circle:nth-child(5){animation-delay:1.2s;}
.net-nodes circle:nth-child(6){animation-delay:1.5s;}
.net-nodes circle:nth-child(7){animation-delay:1.8s;}
.net-nodes circle:nth-child(8){animation-delay:2.1s;}
@keyframes node-glow{
  0%,100%{opacity:0.7; transform:scale(1);}
  50%{opacity:1; transform:scale(1.2);}
}

/* ===== Sections ===== */
.section{
  padding:110px 24px;
}
.section-alt{background:var(--gray-light);}
.section-dark{
  background:var(--black);
  color:var(--white);
}
.section-dark .lede{color:rgba(255,255,255,0.68);}
.section-inner{
  max-width:var(--container);
  margin:0 auto;
  text-align:center;
}
.section-inner.narrow{max-width:680px;}
.section h2{
  font-size:clamp(28px, 4vw, 44px);
  line-height:1.15;
  margin-top:10px;
}
.lede{
  margin-top:22px;
  font-size:18px;
  line-height:1.6;
  color:var(--gray-mid);
}
.lede + .lede{margin-top:14px;}

/* ===== About ===== */
.about-wrap{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:60px;
  align-items:center;
}
.about-copy{text-align:left;}
.about-copy h2{margin-top:10px;}
.about-graphic{
  display:flex;
  justify-content:center;
}
.about-graphic svg{width:100%; max-width:320px; height:auto;}
.orbit-ring{
  transform-origin:200px 200px;
  animation:spin 22s linear infinite;
}
.orbit-ring-2{
  transform-origin:200px 200px;
  animation:spin-rev 16s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes spin-rev{ to{ transform:rotate(-360deg); } }

/* ===== Visual break ===== */
.visual-break{
  position:relative;
  height:60vh;
  min-height:420px;
  max-height:640px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.visual-break-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.visual-break::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(13,17,22,0.35) 0%, rgba(13,17,22,0.55) 100%);
}
.visual-break-overlay{
  position:relative;
  z-index:1;
  text-align:center;
  color:var(--white);
  padding:0 24px;
  max-width:640px;
}
.visual-break-overlay h2{
  font-size:clamp(26px, 3.6vw, 40px);
  line-height:1.2;
  margin-top:12px;
}

/* ===== Cards ===== */
.cards-grid{
  max-width:var(--container);
  margin:56px auto 0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  padding:0 24px;
}
.card{
  background:var(--gray-light);
  border-radius:20px;
  padding:32px 26px;
  text-align:left;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 40px rgba(0,0,0,0.06);
}
.card-icon{
  width:40px; height:40px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  margin-bottom:20px;
  position:relative;
}
.card-icon span{
  position:absolute; inset:0;
  margin:auto;
  width:14px; height:14px;
  background:var(--white);
  border-radius:50%;
}
.card h3{font-size:19px; margin-bottom:10px;}
.card p{font-size:15px; line-height:1.55; color:var(--gray-mid);}

/* ===== Process ===== */
.process-row{
  max-width:var(--container);
  margin:64px auto 0;
  padding:0 24px;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
  position:relative;
}
.process-line{
  position:absolute;
  top:15px;
  left:calc(10% + 24px);
  right:calc(10% + 24px);
  height:1px;
  background:var(--gray-line);
  z-index:0;
}
.process-step{
  position:relative;
  z-index:1;
  text-align:left;
}
.p-node{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px; height:30px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--blue-dark);
  color:var(--blue-darker);
  font-family:var(--font-mono);
  font-size:11px;
  margin-bottom:18px;
}
.process-step h4{font-size:16px; margin-bottom:8px;}
.process-step p{font-size:14px; line-height:1.5; color:var(--gray-mid);}

/* ===== Testimonials ===== */
.testimonials-empty h2{color:var(--gray-mid);}

/* ===== Contact ===== */
.contact-wrap{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:start;
}
.contact-copy{text-align:left;}
.contact-copy h2{margin-top:10px;}
.email-link{
  display:inline-block;
  margin-top:28px;
  font-size:16px;
  color:var(--blue-light);
  border-bottom:1px solid rgba(177,195,218,0.4);
  padding-bottom:2px;
  transition:border-color 0.2s;
}
.email-link:hover{border-color:var(--blue-light);}

.contact-form{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:20px;
  padding:32px;
}
.field{margin-bottom:18px;}
.field label{
  display:block;
  font-size:13px;
  color:rgba(255,255,255,0.6);
  margin-bottom:6px;
}
.field input, .field textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:var(--white);
  font-family:var(--font-body);
  font-size:15px;
  resize:vertical;
  transition:border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--blue-light);
  background:rgba(255,255,255,0.09);
}
.form-note{
  margin-top:14px;
  font-size:13px;
  color:var(--blue-light);
  text-align:center;
  min-height:16px;
}

/* ===== Footer ===== */
.footer{
  background:var(--black);
  border-top:1px solid rgba(255,255,255,0.08);
  padding:32px 24px 40px;
}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  align-items:center;
  justify-content:space-between;
  color:rgba(255,255,255,0.5);
  font-size:13px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,0.8);
  font-weight:600;
  font-size:13px;
}
.footer-brand img{width:18px; height:18px;}
.footer a{color:rgba(255,255,255,0.5); transition:color 0.2s;}
.footer a:hover{color:var(--blue-light);}

/* ===== Scroll reveal ===== */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* ===== Responsive ===== */
@media (max-width:900px){
  .cards-grid{grid-template-columns:repeat(2, 1fr);}
  .process-row{grid-template-columns:repeat(1, 1fr); gap:28px;}
  .process-line{display:none;}
  .contact-wrap{grid-template-columns:1fr; gap:48px;}
  .about-wrap{grid-template-columns:1fr; gap:36px; text-align:center;}
  .about-copy{text-align:center;}
  .about-graphic svg{max-width:220px;}
  .nav-links{display:none;}
  #navToggle{display:flex;}
}
@media (max-width:520px){
  .cards-grid{grid-template-columns:1fr;}
  .hero{padding:120px 20px 60px;}
  .section{padding:80px 20px;}
}
