/* ─────────────────────────────────────────────
   ARCLO — Shared Design System
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400&display=swap');

/* ── Variables ── */
:root {
  --black:         #07070C;
  --black-2:       #0D0D14;
  --black-3:       #14141E;
  --black-4:       #1E1E2C;
  --white:         #F2F2F8;
  --white-2:       #D4D8EC;
  --gray:          rgba(255,255,255,0.62);
  --gray-d:        rgba(255,255,255,0.32);
  --green:         #22D066;
  --green-bright:  #4AFF8C;
  --green-dark:    #0E302E;
  --green-mid:     #16A34A;
  --green-dim:     rgba(34,208,102,0.10);
  --green-glow:    rgba(34,208,102,0.22);
  --rule:          rgba(255,255,255,0.08);

  --font:         'Inter', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --mono:         'IBM Plex Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  cursor: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Subtle noise grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9990;
}

/* Custom cursor — disabled */
#cur, #cur-r { display: none; }

/* ── Scroll Reveal ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
.rv-d4 { transition-delay: .32s; }
.rv-d5 { transition-delay: .40s; }

/* ── Sensible interactive transitions ── */
a, button { transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s, opacity .18s; }

@media (prefers-reduced-motion: reduce) { .rv { opacity:1; transform:none; } }

/* ── Light sections (alternate white background) ── */
.section-light {
  background: #F7F7FD !important;
  --white:   #08081A;
  --white-2: #252540;
  --gray:    rgba(8,8,26,.65);
  --gray-d:  rgba(8,8,26,.38);
  --rule:    rgba(8,8,26,.09);
  --black:   #F7F7FD;
  --black-2: #EEEEF8;
  --black-3: #E4E4F2;
  --black-4: #D8D8EC;
}
/* Cards using --black as base need slight elevation in light sections */
.section-light .svc-teaser-card { background: var(--black-2); }
.section-light .svc-teaser-card:hover { background: var(--black-3); }

/* ═══════════════════════════════════════════
   NAVIGATION — floating pill
═══════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 18px;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 64px); max-width: 1300px;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 13px 28px;
  background: rgba(14,14,22,.72);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  transition: all .4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 4px 32px rgba(0,0,0,.45);
}
.site-nav.scrolled {
  background: rgba(10,10,18,.88);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 6px 40px rgba(0,0,0,.55);
}

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; cursor: pointer; }
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity .2s;
}
.nav-logo:hover .nav-logo-img { opacity: .85; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: var(--white); letter-spacing: .06em;
}

/* Nav links */
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a {
  font-family: var(--font); font-size: 14px; font-weight: 500;
  letter-spacing: -.01em; text-transform: none;
  color: var(--gray); text-decoration: none;
  position: relative; transition: color .2s; cursor: pointer;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

/* Nav CTA — outlined style (matches brand guide) */
.nav-cta-btn {
  font-family: var(--font); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
  padding: 10px 24px; border-radius: 4px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.nav-cta-btn:hover {
  background: var(--green); color: var(--black);
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(34,208,102,.35);
}

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: all .3s; }

/* Mobile menu */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(7,7,12,.98);
  z-index: 490; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; color: var(--white); text-decoration: none; cursor: pointer;
  letter-spacing: -.02em; transition: color .2s;
}
.mobile-nav a:hover { color: var(--green); }
.mobile-nav-close { position: absolute; top: 28px; right: 28px; background: none; border: none; color: var(--white); cursor: pointer; }
.mobile-nav-cta {
  font-family: var(--font); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--green); color: var(--black); border: none;
  padding: 17px 40px; border-radius: 8px; cursor: pointer; margin-top: 8px;
}

/* ═══════════════════════════════════════════
   PAGE HERO (shared pattern for inner pages)
═══════════════════════════════════════════ */
.page-hero {
  min-height: 56vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 80px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 60%, black 0%, transparent 100%);
}
.page-hero-glow {
  position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,208,102,.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero-label {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--green); margin-bottom: 24px; display: block;
}
.page-hero-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -.025em;
  color: var(--white); margin-bottom: 28px;
}
.page-hero-h1 .grad {
  background: linear-gradient(100deg, #22D066 0%, #4AFF8C 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero-sub {
  font-family: var(--font); font-weight: 300;
  font-size: 16px; color: var(--gray); line-height: 1.9; max-width: 520px;
}

/* ═══════════════════════════════════════════
   SECTION TOKENS
═══════════════════════════════════════════ */
.s-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--green); display: block; margin-bottom: 20px;
}
.s-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06; letter-spacing: -.022em; color: var(--white);
}
.s-h2 .a { color: var(--green); }
.s-body {
  font-family: var(--font); font-weight: 300;
  font-size: 15px; color: var(--gray); line-height: 1.9;
}
.s-body strong { color: var(--white-2); font-weight: 500; }
.s-body p + p { margin-top: 18px; }
.divider-line {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--gray-d); letter-spacing: .12em; text-align: center;
  padding: 20px 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-green {
  font-family: var(--font); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--green); color: var(--black); border: none;
  padding: 14px 32px; border-radius: 7px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.btn-green:hover {
  background: var(--green-bright); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,208,102,.38);
}

/* Keep .btn-solid as alias */
.btn-solid {
  font-family: var(--font); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--green); color: var(--black); border: none;
  padding: 14px 32px; border-radius: 7px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.btn-solid:hover {
  background: var(--green-bright); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,208,102,.38);
}

.btn-outline {
  font-family: var(--font); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 13px 30px; border-radius: 7px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-ghost {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gray); background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: color .2s;
}
.btn-ghost .arr { transition: transform .2s; display: inline-block; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover .arr { transform: translateX(6px); }

/* ═══════════════════════════════════════════
   PILLS / TAGS
═══════════════════════════════════════════ */
.pill {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray); background: var(--black-3);
  border: 1px solid var(--rule); padding: 5px 12px; border-radius: 6px;
  transition: color .2s, border-color .2s, background .2s; cursor: default;
}
.pill:hover { color: var(--green); border-color: rgba(34,208,102,.28); background: var(--green-dim); }

.accent-pill {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--green); background: var(--green-dim);
  border: 1px solid rgba(34,208,102,.22); padding: 4px 11px; border-radius: 6px;
}

.tech-tag {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-d); border: 1px solid var(--rule);
  padding: 3px 9px; border-radius: 4px;
}

/* ═══════════════════════════════════════════
   NUMBERS STRIP
═══════════════════════════════════════════ */
.nums-strip {
  background: var(--black-3);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 72px 80px;
}
.nums-row { display: flex; align-items: center; justify-content: space-between; }
.num-item { flex: 1; text-align: center; }
.num-sep { width: 1px; height: 60px; background: var(--rule); flex-shrink: 0; }
.num-value {
  font-family: var(--font-display); font-weight: 700; font-size: 52px;
  color: var(--green); letter-spacing: -.03em;
  display: block; line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.num-label {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--gray-d);
}

/* ═══════════════════════════════════════════
   CTA SECTION (shared across pages)
═══════════════════════════════════════════ */
.cta-section {
  background: var(--black-2); padding: 140px 80px;
  position: relative; overflow: hidden; text-align: center;
}
.cta-glow {
  position: absolute; bottom: -250px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(34,208,102,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04; letter-spacing: -.025em; color: var(--white); margin-bottom: 24px;
}
.cta-sub {
  font-family: var(--font); font-weight: 300;
  font-size: 16px; color: var(--gray); line-height: 1.85; margin-bottom: 44px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   TICKER
═══════════════════════════════════════════ */
.ticker-strip {
  background: var(--black-4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 14px 0; overflow: hidden; position: relative;
}
.ticker-strip::before, .ticker-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker-strip::before { left: 0; background: linear-gradient(90deg, var(--black-4), transparent); }
.ticker-strip::after { right: 0; background: linear-gradient(-90deg, var(--black-4), transparent); }
.ticker-inner { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-strip:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick-item {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gray-d); padding: 0 28px;
}
.tick-dot { color: var(--green); opacity: .6; padding: 0 4px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--rule);
  padding: 72px 80px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid var(--rule); margin-bottom: 36px;
}
.footer-tagline {
  font-family: var(--font); font-weight: 300;
  font-size: 13.5px; color: var(--gray); line-height: 1.8;
  max-width: 230px; margin-top: 18px;
}
.footer-col-label {
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--gray-d); margin-bottom: 24px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-links a {
  font-family: var(--font); font-weight: 300; font-size: 13.5px;
  color: var(--gray); text-decoration: none; transition: color .2s; cursor: pointer;
}
.footer-links a:hover { color: var(--green); }
.footer-socials { display: flex; gap: 10px; margin-bottom: 18px; }
.footer-social-btn {
  width: 38px; height: 38px; background: var(--black-3); border: 1px solid var(--rule);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--gray); text-decoration: none; transition: all .2s; cursor: pointer;
}
.footer-social-btn:hover { color: var(--green); border-color: rgba(34,208,102,.35); background: var(--green-dim); }
.footer-email { font-family: var(--mono); font-size: 9.5px; color: var(--gray-d); word-break: break-all; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--gray-d); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: var(--mono); font-size: 10px; color: var(--gray-d);
  text-decoration: none; transition: color .2s; cursor: pointer;
}
.footer-legal a:hover { color: var(--white-2); }

/* ═══════════════════════════════════════════
   MODAL (contact popup — used sitewide)
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,7,12,.9); backdrop-filter: blur(24px);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--black-3); border: 1px solid rgba(34,208,102,.2);
  border-top: 3px solid var(--green); border-radius: 12px;
  padding: 56px 52px; width: 580px; max-width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
  transform: scale(.94) translateY(20px); opacity: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .35s;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); opacity: 1; }
.modal-close-btn {
  position: absolute; top: 22px; right: 22px;
  background: none; border: none; color: var(--gray); cursor: pointer;
  transition: color .2s; padding: 4px;
}
.modal-close-btn:hover { color: var(--white); }
.modal-title { font-family: var(--font); font-weight: 700; font-size: 22px; color: var(--white); margin-bottom: 7px; }
.modal-subtitle { font-family: var(--font); font-weight: 300; font-size: 13.5px; color: var(--gray); margin-bottom: 38px; }

.form-field { margin-bottom: 22px; }
.form-label {
  display: block; font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin-bottom: 9px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--black-4); border: 1px solid rgba(255,255,255,.09);
  color: var(--white); font-family: var(--font); font-size: 14px;
  padding: 13px 17px; border-radius: 7px; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-d); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim);
}
.form-input.err, .form-select.err, .form-textarea.err { border-color: #f87171; }
.form-select { cursor: pointer; } .form-select option { background: var(--black-3); }
.form-textarea { resize: vertical; min-height: 108px; }
.form-error { font-family: var(--mono); font-size: 9px; color: #f87171; margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-submit-btn {
  width: 100%; background: var(--green); color: var(--black);
  font-family: var(--font); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  border: none; padding: 16px; border-radius: 7px; cursor: pointer;
  transition: background .2s, box-shadow .2s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px;
}
.form-submit-btn:hover { background: var(--green-bright); box-shadow: 0 6px 24px rgba(34,208,102,.35); }
.form-submit-btn:disabled { opacity: .6; }
.btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(7,7,12,.3); border-top-color: var(--black); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-thank-you { display: none; text-align: center; padding: 28px 0; }
.modal-thank-you.show { display: block; }
.ty-icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--green-dim); border: 1px solid rgba(34,208,102,.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.ty-h { font-family: var(--font); font-weight: 700; font-size: 22px; color: var(--white); margin-bottom: 12px; }
.ty-body { font-family: var(--font); font-weight: 300; font-size: 14px; color: var(--gray); line-height: 1.75; margin-bottom: 20px; }
.ty-note { font-family: var(--mono); font-size: 10px; color: var(--gray-d); line-height: 1.7; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-nav { width: calc(100% - 40px); }
  .page-hero { padding-left: 44px; padding-right: 44px; }
  .nums-strip { padding: 60px 44px; }
  .cta-section { padding: 100px 44px; }
  .site-footer { padding-left: 44px; padding-right: 44px; }
}

@media (max-width: 768px) {
  .site-nav { width: calc(100% - 32px); top: 12px; padding: 11px 16px 11px 20px; border-radius: 0; }
  .nav-menu, .nav-cta-btn { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .page-hero { padding: 130px 24px 60px; }
  .page-hero-h1 { font-size: clamp(36px, 10vw, 56px); }

  .nums-strip { padding: 56px 24px; }
  .nums-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
  .num-sep { display: none; }
  .num-item:last-child { grid-column: 1 / -1; }
  .num-value { font-size: 40px; }

  .cta-section { padding: 80px 24px; }
  .cta-actions { flex-direction: column; align-items: center; }

  .site-footer { padding: 52px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .modal-box { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-h1 { font-size: 34px; }
  .s-h2 { font-size: 30px; }
}

/* ─── Focus ─── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
