/* ============================================================
   ATHERIT — Design tokens
   Palette grounded in infra/monitoring dashboards + terminal UI
   ============================================================ */
:root{
  --bg: #0B1220;
  --bg-soft: #0E1626;
  --surface: #121C2E;
  --surface-2: #162236;
  --border: rgba(231,236,243,0.09);
  --border-strong: rgba(231,236,243,0.16);
  --text: #E7ECF3;
  --muted: #8291A8;
  --muted-2: #5E6E88;
  --accent: #35D0BA;      /* signal cyan-teal — "uptime" color */
  --accent-dim: #1E8C7C;
  --accent-2: #F2A93B;    /* amber — CTA / alert */
  --accent-2-dim: #B9791F;
  --danger: #E5615A;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1180px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.15; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
.section{ padding:96px 0; position:relative; }
.section--tight{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  color:var(--accent);
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}
.eyebrow::before{
  content:'';
  width:7px; height:7px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(53,208,186,0.18);
}
.section-head h2{ font-size:clamp(28px,3.4vw,40px); margin-bottom:14px; }
.section-head p{ color:var(--muted); font-size:17px; max-width:560px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:8px;
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--accent);
  color:#03211D;
}
.btn-primary:hover{ background:#4EE3CC; }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border-strong);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-amber{
  background:var(--accent-2);
  color:#2B1B02;
}
.btn-amber:hover{ background:#FFC15E; }
.btn-block{ width:100%; }
.btn-lg{ padding:16px 30px; font-size:15.5px; }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(11,18,32,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-weight:600; font-size:19px; color:var(--text);
}
.brand-it{ color:var(--accent); }
.brand-mark{
  width:32px;height:32px;border-radius:8px;
  background:linear-gradient(145deg, var(--accent), var(--accent-dim));
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono); font-weight:700; color:#03211D; font-size:15px;
}
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:14.5px; color:var(--muted); font-weight:500;
  transition:color .15s ease; position:relative;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-26px; height:2px; background:var(--accent);
}
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--border-strong); border-radius:8px;
  width:40px; height:40px; color:var(--text); align-items:center; justify-content:center;
}

/* ---------- Hero ---------- */
.hero{
  padding:88px 0 40px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(53,208,186,0.16), transparent 60%),
    radial-gradient(500px 260px at 10% 0%, rgba(242,169,59,0.08), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  position:relative; z-index:1;
}
.hero-kicker{
  font-family:var(--font-mono); font-size:13px; letter-spacing:0.1em; color:var(--accent);
  text-transform:uppercase; margin-bottom:20px; display:flex; align-items:center; gap:10px;
}
.hero-kicker .bar{ width:24px; height:1px; background:var(--accent); }
.hero h1{
  font-size:clamp(36px,5vw,58px);
  margin-bottom:22px;
}
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero-sub{
  color:var(--muted); font-size:18px; max-width:520px; margin-bottom:34px;
}
.hero-cta{ display:flex; gap:14px; margin-bottom:48px; flex-wrap:wrap; }
.hero-stats{
  display:grid; grid-template-columns:repeat(4,auto); gap:28px;
  font-family:var(--font-mono);
}
.hero-stats .stat b{ display:block; font-size:20px; color:var(--text); }
.hero-stats .stat span{ font-size:11.5px; color:var(--muted-2); letter-spacing:0.06em; text-transform:uppercase; }

/* Pipeline signature graphic */
.pipeline-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:22px 22px 18px;
}
.pipeline-card__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px;
}
.pipeline-card__title{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted); }
.pipeline-dots{ display:flex; gap:6px; }
.pipeline-dots span{ width:8px;height:8px;border-radius:50%; background:var(--border-strong); }
.pipeline-dots span:nth-child(1){ background:#E5615A; }
.pipeline-dots span:nth-child(2){ background:var(--accent-2); }
.pipeline-dots span:nth-child(3){ background:var(--accent); }

.pipeline-svg{ width:100%; height:auto; display:block; }
.pl-line{
  stroke:var(--border-strong);
  stroke-width:2;
  fill:none;
}
.pl-flow{
  stroke:var(--accent);
  stroke-width:2;
  fill:none;
  stroke-dasharray:6 10;
  animation:flow 2.4s linear infinite;
}
@keyframes flow{ to{ stroke-dashoffset:-160; } }
.pl-node-bg{ fill:var(--surface-2); stroke:var(--border-strong); stroke-width:1.5; }
.pl-node-bg.is-active{ stroke:var(--accent); }
.pl-node-label{
  font-family:var(--font-mono); font-size:10.5px; fill:var(--muted); text-transform:uppercase; letter-spacing:.05em;
}
.pl-node-label.is-active{ fill:var(--accent); }
.pl-pulse{ fill:var(--accent); }
.pl-pulse circle{ animation:pulse-move 2.4s linear infinite; }
@keyframes pulse-move{
  0%{ opacity:0; }
  5%{ opacity:1; }
  95%{ opacity:1; }
  100%{ opacity:0; }
}
.pipeline-readout{
  display:flex; justify-content:space-between; margin-top:16px;
  font-family:var(--font-mono); font-size:11px; color:var(--muted-2); border-top:1px solid var(--border); padding-top:14px;
}
.pipeline-readout b{ color:var(--accent); font-weight:600; }

/* ---------- Logo / trust strip ---------- */
.trust-strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:34px 0;
}
.trust-strip .wrap{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
}
.trust-strip p{ font-family:var(--font-mono); font-size:12px; color:var(--muted-2); letter-spacing:.06em; text-transform:uppercase; }
.trust-tags{ display:flex; gap:28px; flex-wrap:wrap; }
.trust-tags span{ color:var(--muted); font-size:14px; font-weight:500; }

/* ---------- Stat band ---------- */
.stat-band{ padding:64px 0; }
.stat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden;
}
.stat-cell{ background:var(--bg); padding:30px 26px; }
.stat-cell b{
  font-family:var(--font-mono); font-size:clamp(24px,3vw,32px); color:var(--accent); display:block; margin-bottom:6px;
}
.stat-cell span{ color:var(--muted); font-size:13.5px; }

/* ---------- Service cards ---------- */
.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.svc-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 26px;
  transition:border-color .15s ease, transform .15s ease;
}
.svc-card:hover{ border-color:var(--border-strong); transform:translateY(-3px); }
.svc-tag{
  font-family:var(--font-mono); font-size:12px; color:var(--accent); margin-bottom:16px; display:block;
}
.svc-icon{
  width:42px; height:42px; border-radius:9px;
  background:var(--surface-2); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  color:var(--accent);
}
.svc-card h3{ font-size:19px; margin-bottom:10px; }
.svc-card p{ color:var(--muted); font-size:14.5px; margin-bottom:16px; }
.svc-card .svc-link{ font-size:13.5px; font-weight:600; color:var(--text); display:inline-flex; align-items:center; gap:6px; }
.svc-card .svc-link svg{ transition:transform .15s ease; }
.svc-card:hover .svc-link svg{ transform:translateX(3px); }

/* ---------- Process ---------- */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process-step{ padding:0 20px 0 0; position:relative; }
.process-step:not(:last-child)::after{
  content:''; position:absolute; top:22px; right:-2px; width:calc(100% - 44px); height:1px;
  background:repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
}
.process-num{
  font-family:var(--font-mono); font-size:13px; color:var(--accent);
  width:44px; height:44px; border-radius:50%; border:1px solid var(--accent);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px; background:var(--bg);
}
.process-step h3{ font-size:17px; margin-bottom:10px; }
.process-step p{ color:var(--muted); font-size:14px; }

/* ---------- Why / feature list ---------- */
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.why-list{ display:flex; flex-direction:column; gap:26px; }
.why-item{ display:flex; gap:16px; }
.why-item .ico{
  width:34px; height:34px; flex:none; border-radius:8px; background:rgba(53,208,186,0.12); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.why-item h4{ font-size:16px; margin-bottom:6px; }
.why-item p{ color:var(--muted); font-size:14px; }
.why-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px;
}
.why-panel .metric-row{ display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--border); font-family:var(--font-mono); font-size:13.5px; }
.why-panel .metric-row:last-child{ border-bottom:none; }
.why-panel .metric-row b{ color:var(--accent); }

/* ---------- Testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testi-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px;
}
.testi-quote{ font-size:15px; color:var(--text); margin-bottom:22px; line-height:1.65; }
.testi-who{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(145deg, var(--accent-2), var(--accent-2-dim));
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:700; color:#2B1B02; font-size:13px;
}
.testi-who b{ display:block; font-size:14px; }
.testi-who span{ display:block; font-size:12.5px; color:var(--muted-2); }

/* ---------- CTA banner ---------- */
.cta-band{
  background:linear-gradient(135deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  border-radius:20px;
  padding:56px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(24px,3vw,32px); max-width:480px; }
.cta-band p{ color:var(--muted); margin-top:10px; max-width:460px; }
.cta-band-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:64px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px;
}
.footer-brand p{ color:var(--muted); font-size:14px; margin:16px 0 20px; max-width:280px; }
.footer-col h5{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; color:var(--muted-2); text-transform:uppercase; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ color:var(--muted); font-size:14px; transition:color .15s ease; }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:26px; border-top:1px solid var(--border);
  font-size:13px; color:var(--muted-2); flex-wrap:wrap; gap:14px;
}
.social-row{ display:flex; gap:14px; }
.social-row a{
  width:34px; height:34px; border:1px solid var(--border-strong); border-radius:8px;
  display:flex; align-items:center; justify-content:center; color:var(--muted);
}
.social-row a:hover{ color:var(--accent); border-color:var(--accent); }

/* ---------- Page header (inner pages) ---------- */
.page-hero{ padding:64px 0 48px; border-bottom:1px solid var(--border); }
.page-hero .eyebrow{ margin-bottom:18px; }
.page-hero h1{ font-size:clamp(30px,4.4vw,46px); margin-bottom:16px; }
.page-hero p{ color:var(--muted); font-size:17px; max-width:600px; }
.breadcrumb{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted-2); margin-bottom:22px; }
.breadcrumb a{ color:var(--muted-2); }
.breadcrumb a:hover{ color:var(--accent); }

/* ---------- About page bits ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.timeline{ display:flex; flex-direction:column; gap:0; }
.timeline-item{ display:grid; grid-template-columns:90px 1fr; gap:20px; padding:22px 0; border-bottom:1px solid var(--border); }
.timeline-item:last-child{ border-bottom:none; }
.timeline-item b{ font-family:var(--font-mono); color:var(--accent); font-size:14px; }
.timeline-item h4{ font-size:16px; margin-bottom:6px; }
.timeline-item p{ color:var(--muted); font-size:14px; }

.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.value-card{ border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; background:var(--surface); }
.value-card .ico{ color:var(--accent); margin-bottom:14px; }
.value-card h4{ font-size:15.5px; margin-bottom:8px; }
.value-card p{ color:var(--muted); font-size:13.5px; }

.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.team-card{ text-align:left; }
.team-avatar{
  width:100%; aspect-ratio:1; border-radius:14px; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
  font-family:var(--font-mono); font-size:26px; color:var(--accent);
}
.team-card h4{ font-size:15px; margin-bottom:2px; }
.team-card span{ color:var(--muted-2); font-size:13px; }

/* ---------- Services page detail rows ---------- */
.svc-detail{
  display:grid; grid-template-columns:340px 1fr; gap:48px; padding:52px 0; border-bottom:1px solid var(--border);
  align-items:start;
}
.svc-detail:last-child{ border-bottom:none; }
.svc-detail-head{ position:sticky; top:96px; }
.svc-detail-head .svc-tag{ margin-bottom:14px; }
.svc-detail-head h3{ font-size:24px; margin-bottom:12px; }
.svc-detail-head p{ color:var(--muted); font-size:14.5px; }
.svc-feature-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.svc-feature{
  border:1px solid var(--border); border-radius:var(--radius); padding:20px; background:var(--surface);
}
.svc-feature h5{ font-size:14.5px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.svc-feature h5::before{ content:'▹'; color:var(--accent); }
.svc-feature p{ color:var(--muted); font-size:13.5px; }
#loading-services{ font-family:var(--font-mono); color:var(--muted-2); font-size:13px; padding:20px 0; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-info-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px; margin-bottom:18px; }
.contact-info-card h4{ font-size:15px; margin-bottom:6px; }
.contact-info-card p, .contact-info-card a{ color:var(--muted); font-size:14.5px; }
.contact-info-row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.contact-info-row:last-child{ margin-bottom:0; }
.contact-info-row .ico{ color:var(--accent); flex:none; margin-top:2px; }

form.card-form{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:8px; font-weight:500; }
.field input, .field select, .field textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--border-strong); color:var(--text);
  border-radius:8px; padding:12px 14px; font-family:var(--font-body); font-size:14.5px;
  transition:border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--accent); outline:none; }
.field textarea{ resize:vertical; min-height:110px; }
.field-error{ color:var(--danger); font-size:12.5px; margin-top:6px; display:none; }
.field.has-error input, .field.has-error textarea{ border-color:var(--danger); }
.field.has-error .field-error{ display:block; }
.form-msg{
  margin-top:16px; padding:12px 14px; border-radius:8px; font-size:14px; display:none;
}
.form-msg.show{ display:block; }
.form-msg.success{ background:rgba(53,208,186,0.12); color:var(--accent); border:1px solid rgba(53,208,186,0.3); }
.form-msg.error{ background:rgba(229,97,90,0.12); color:var(--danger); border:1px solid rgba(229,97,90,0.3); }

/* ---------- Map placeholder ---------- */
.map-box{
  height:220px; border-radius:var(--radius-lg); border:1px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center; color:var(--muted-2); font-family:var(--font-mono); font-size:13px;
  margin-top:18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .why-grid, .split, .contact-grid{ grid-template-columns:1fr; }
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .stat-grid, .value-grid, .team-grid{ grid-template-columns:repeat(2,1fr); }
  .process-grid{ grid-template-columns:repeat(2,1fr); row-gap:36px; }
  .process-step:not(:last-child)::after{ display:none; }
  .testi-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .svc-detail{ grid-template-columns:1fr; }
  .svc-detail-head{ position:static; }
  .svc-feature-grid{ grid-template-columns:1fr; }
}
@media (max-width: 720px){
  .nav-links, .nav-actions .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
  .svc-grid, .stat-grid, .value-grid, .team-grid, .process-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
}

/* Mobile nav drawer */
.nav-drawer{
  position:fixed; inset:76px 0 0 0; background:var(--bg); z-index:99; padding:32px;
  transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease;
}
.nav-drawer.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
.nav-drawer a{ display:block; padding:16px 0; font-size:18px; border-bottom:1px solid var(--border); color:var(--text); }
