/* LocalSwarm.ai — shared design system. Section files build on these tokens and components; they never redefine them. */

:root {
  /* Surfaces */
  --ink: #0B0E1A;            /* hero, AI section, button text, headlines on light */
  --ink-2: #111421;          /* footer */
  --stage: #08131A;          /* pricing stage — matches the mosquito video's edges */
  --navy: #1E3A5F;           /* blueprint navy */
  --navy-2: #2A4F7A;         /* card on navy */
  --navy-3: #132C54;
  --paper: #F7F8FA;          /* light section */
  --paper-2: #F5F6F8;        /* FAQ */
  --white: #FFFFFF;

  /* Accents */
  --yellow: #F7C600;         /* the ONE accent */
  --yellow-dark: #D9AE00;    /* hover */
  --yellow-soft: rgba(247, 198, 0, .10);
  --bp-fill: #2A6496;        /* blueprint-text fill */
  --bp-line: rgba(120, 190, 240, .25);
  --glow-blue: #2563EB;
  --cyan: #4A9FD5;
  --red: #E53E3E;
  --red-soft: rgba(220, 38, 38, .10);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, .13);

  /* Text */
  --text: #0B0E1A;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-4: #94A0B3;
  --on-dark: #FFFFFF;
  --on-dark-2: #C8CEDF;
  --on-dark-3: #8A90A8;

  /* Lines */
  --line-light: rgba(0, 0, 0, .08);
  --line-dark: rgba(255, 255, 255, .08);
  --line-yellow: rgba(247, 198, 0, .15);

  /* Type */
  --f-display: 'Anton', 'Impact', sans-serif;          /* ALWAYS weight 400 — Anton has one weight; bold fakes it */
  --f-display-2: 'Bebas Neue', 'Anton', sans-serif;
  --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-code: 'Orbitron', 'Barlow Condensed', sans-serif;

  /* Layout */
  --bar-h: 38px;
  --nav-h: 86px;
  --header-h: calc(var(--bar-h) + var(--nav-h));
  --container: 1100px;
  --container-wide: 1200px;
  --gutter: 24px;
  --section-pad: 100px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 900px) {
  :root { --nav-h: 54px; --bar-h: 44px; --section-pad: 64px; --gutter: 20px; }
}
@media (max-width: 600px) {
  :root { --section-pad: 52px; --gutter: 16px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--ink); padding: 10px 18px;
  font: 700 14px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { position: relative; padding: var(--section-pad) 0; overflow: hidden; }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--stage { background: var(--stage); color: var(--on-dark); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--yellow { background: var(--yellow); color: var(--ink); }
.section > .container { position: relative; z-index: 1; }

/* ---------- Blueprint backgrounds (absolute layers; put inside a .section) ---------- */
.bp-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bp-grid--dark {   /* hero / ink sections — hairline white 3.5% at 46px */
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
}
.bp-grid--stage {  /* pricing stage — cyan 4% at 46px so it matches the robots' world */
  background-image:
    linear-gradient(rgba(120, 190, 240, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 240, .045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.bp-grid--navy {   /* classic blueprint paper — yellow 4% at 60px */
  background-image:
    linear-gradient(rgba(245, 200, 0, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 200, 0, .04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bp-grid--yellow { /* engineering paper on yellow — black 6% at 40px */
  background-image:
    linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bp-grid--light {  /* optional faint grid for paper sections */
  background-image:
    linear-gradient(rgba(30, 58, 95, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.bp-glow {         /* light source from the top centre */
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1200px; max-width: 160vw; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, .30) 0%, rgba(37, 99, 235, .10) 40%, transparent 72%);
}

/* ---------- Type ---------- */
.section-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font: 700 12px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--yellow);
}
.section-label::before { content: ''; display: block; width: 32px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.section-label--center { justify-content: center; }
.section-label--on-light { color: var(--navy); }          /* yellow text fails contrast on white */
.section-label--on-yellow { color: rgba(0, 0, 0, .7); }
.section-label--on-yellow::before { background: var(--ink); }

.section-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px, 6vw, 80px); line-height: 1.05; letter-spacing: -.005em;
  text-transform: uppercase; margin-bottom: 24px;
}
.section-title--center { text-align: center; }
.section-title .hl { color: var(--yellow); }               /* yellow word swap — dark sections only */
.section-title .hl-marker {                                /* light sections: highlighter stroke */
  background: linear-gradient(transparent 64%, rgba(247, 198, 0, .55) 64%, rgba(247, 198, 0, .55) 92%, transparent 92%);
  padding: 0 .06em;
}
.section-body { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 680px; }
.section-body--center { margin-left: auto; margin-right: auto; text-align: center; }
.section--ink .section-body, .section--stage .section-body, .section--navy .section-body { color: var(--on-dark-3); }
.section-body strong { color: var(--text); }
.section--ink .section-body strong, .section--stage .section-body strong, .section--navy .section-body strong { color: var(--on-dark); }

.model-code {   /* VXA-01 style spec code */
  font: 800 11px/1 var(--f-code); letter-spacing: .24em; text-transform: uppercase;
}

/* ---------- Signature highlight: letters filled with blueprint graph paper ---------- */
.blueprint-text {
  display: inline-block; position: relative;
  color: transparent; -webkit-text-fill-color: transparent;
  background:
    repeating-linear-gradient(0deg, var(--bp-line) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, var(--bp-line) 0 1px, transparent 1px 14px),
    var(--bp-fill);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 2px #FFFFFF; paint-order: stroke fill;
  filter: drop-shadow(0 0 10px rgba(74, 159, 213, .4));
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);   /* paints over the clear fill → deeper, inked letters */
  font-weight: 400;
}
@media (max-width: 900px) { .blueprint-text { -webkit-text-stroke-width: 1.25px; } }
@media (max-width: 600px) { .blueprint-text { -webkit-text-stroke-width: .9px; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); } }

/* ---------- Neon: flat yellow letters, uneven flicker, bolts that flicker out of sync ---------- */
.electric-text {
  position: relative; display: inline-block; color: var(--yellow);
  text-shadow: 0 0 10px rgba(247, 198, 0, .4), 0 0 20px rgba(247, 198, 0, .2);
  animation: electricPulse 2s ease-in-out infinite;
}
.electric-text::before, .electric-text::after {
  content: ''; position: absolute; top: 50%; width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7C600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.electric-text::before { left: -40px; transform: translateY(-50%); animation: boltFlicker 1.5s ease-in-out infinite; }
.electric-text::after { right: -40px; transform: translateY(-50%) scaleX(-1); animation: boltFlickerMirror 1.5s ease-in-out .3s infinite; }
@keyframes electricPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(247, 198, 0, .3), 0 0 20px rgba(247, 198, 0, .15); }
  25% { text-shadow: 0 0 15px rgba(247, 198, 0, .6), 0 0 30px rgba(247, 198, 0, .3), 0 0 40px rgba(247, 198, 0, .1); }
  50% { text-shadow: 0 0 8px rgba(247, 198, 0, .2), 0 0 16px rgba(247, 198, 0, .1); }
  75% { text-shadow: 0 0 18px rgba(247, 198, 0, .7), 0 0 35px rgba(247, 198, 0, .35), 0 0 50px rgba(247, 198, 0, .15); }
}
@keyframes boltFlicker {
  0%, 100% { opacity: .3; transform: translateY(-50%) scale(.9); }
  20% { opacity: 1; transform: translateY(-50%) scale(1.1); }
  40% { opacity: .2; transform: translateY(-50%) scale(.95); }
  60% { opacity: .9; transform: translateY(-50%) scale(1.05); }
  80% { opacity: .4; transform: translateY(-50%) scale(1); }
}
@keyframes boltFlickerMirror {   /* keeps the right bolt flipped while it flickers */
  0%, 100% { opacity: .3; transform: translateY(-50%) scale(-.9, .9); }
  20% { opacity: 1; transform: translateY(-50%) scale(-1.1, 1.1); }
  40% { opacity: .2; transform: translateY(-50%) scale(-.95, .95); }
  60% { opacity: .9; transform: translateY(-50%) scale(-1.05, 1.05); }
  80% { opacity: .4; transform: translateY(-50%) scale(-1, 1); }
}
@media (max-width: 600px) {
  .electric-text::before, .electric-text::after { width: 20px; height: 20px; }
  .electric-text::before { left: -26px; }
  .electric-text::after { right: -26px; }
}

/* ---------- Buttons (square corners = industrial) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 18px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase;
  padding: 18px 40px; text-decoration: none; border: 0; border-radius: 0;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn--arrow::after { content: '→'; content: '→' / ''; font-size: 1.15em; transition: transform .2s var(--ease-out); }   /* empty alt: screen readers skip the arrow */
.btn--arrow:hover::after { transform: translateX(3px); }
.btn--lg { font-size: 20px; padding: 22px 48px; }
.btn--sm { font-size: 14px; padding: 12px 22px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212, 168, 0, .3); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0, 0, 0, .3); }
.btn--outline-dark { background: transparent; color: var(--on-dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--outline-dark:hover { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.btn--outline-light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 14, 26, .3); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.text-link {
  font: 600 14px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-2); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- Chips ---------- */
.chip {   /* square status chip with pulsing dot (hero badge style) */
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: rgba(247, 198, 0, .06); border: 1px solid var(--line-yellow);
  font: 400 13px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3);
}
.chip--dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex-shrink: 0;
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font: 700 10px/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase;
}
.pill--yellow { background: var(--yellow); color: var(--ink); }
.pill--soft { background: var(--yellow-soft); color: var(--yellow); }

/* ---------- Ticker (duplicate the item list once; track slides -50%) ---------- */
.ticker { position: relative; overflow: hidden; border: 1px solid var(--line-yellow); background: rgba(255, 255, 255, .05); padding: 14px 0; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ticker-edge, var(--ink)), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ticker-edge, var(--ink)), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font: 600 15px/1.3 var(--f-label); letter-spacing: .03em; color: var(--on-dark-3);
  padding: 0 36px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .1);
}
.ticker__item b { color: var(--on-dark-2); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Entrance + reveal ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }
.js [data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Reduced motion: everything settles, nothing loops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .electric-text { text-shadow: 0 0 12px rgba(247, 198, 0, .45), 0 0 26px rgba(247, 198, 0, .2); }
  .electric-text::before, .electric-text::after { opacity: .8; }
}
