/* FixedLab — mobile-first styles. Brand tokens from the Brand & UI Kit. */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/LICENSE-*.txt) */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --lime: #9AF20D;
  --lime-hover: #B3FF3A;
  --bg: #080A09;
  --surface: #131614;
  --surface-2: #181C19;
  --graphite: #252A27;
  --muted: #9CA39D;
  --white: #F5F6F4;

  /* TODO: swap for the brand fonts from Tomo */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 12px;
  --container: 1160px;
  --header-h: 64px;
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("../img/circuit.svg");
  background-size: 1400px 1400px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.lime { color: var(--lime); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ico { transition: transform .2s; }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-secondary { background: rgba(8,10,9,.6); color: var(--white); border-color: rgba(245, 246, 244, .5); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover .ico { transform: translateX(3px); }
  .btn-primary:hover { background: var(--lime-hover); box-shadow: 0 8px 28px rgba(154, 242, 13, .28); }
  .btn-secondary:hover { border-color: var(--lime); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 10, 9, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--graphite); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 34px; width: auto; }

.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--graphite); color: var(--white); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; display: flex; flex-direction: column;
  background: var(--bg); border-bottom: 1px solid var(--graphite); padding: 8px 16px 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.open { opacity: 1; transform: none; visibility: visible; }
.nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--graphite); font-size: 18px; font-weight: 500; }
.nav-cta { margin-top: 18px; min-height: 52px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 40px; overflow: hidden; }
.hero-grid-bg { display: none; }
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: 50%; top: -60px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(154,242,13,.14), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-badge { position: relative; width: 148px; aspect-ratio: 1; filter: drop-shadow(0 0 40px rgba(154,242,13,.22)); }
.badge-ring { width: 100%; height: 100%; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-mark { position: absolute; width: 54%; height: 54%; left: 23%; top: 23%; object-fit: contain; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--graphite); background: var(--surface); padding: 6px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(30px, 8.6vw, 76px); font-weight: 700; letter-spacing: -.035em; margin: 16px 0 14px; line-height: 1.04; }
.h1-line { display: block; white-space: nowrap; }
.lead { font-size: 17px; color: #c3c9c4; max-width: 560px; margin: 0 auto; }
.hero-actions { display: grid; gap: 12px; margin: 26px 0 20px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; position: relative; }
.section-alt { background: rgba(19, 22, 20, .72); border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); }
.section-alt .svc, .section-alt .contact-card { background: rgba(8, 10, 9, .7); }
.section-alt .svc:active { background: var(--bg); }
.section-head { margin-bottom: 24px; }
.kicker { font-family: var(--font-display); font-size: 16px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 8vw, 50px); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 10px; }
.inline-link { color: var(--lime); font-weight: 600; border-bottom: 1px solid rgba(154,242,13,.4); }

/* Services — list rows on phone */
.svc-list { display: grid; gap: 10px; }
.svc {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--graphite); border-radius: var(--radius);
  padding: 14px; min-height: 76px;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.svc:active { border-color: var(--lime); background: var(--surface-2); }
.svc-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(154,242,13,.08); border: 1px solid rgba(154,242,13,.25);
}
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-ico.brand img { width: 24px; height: 24px; }
.svc-text { flex: 1; min-width: 0; }
.svc-text strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.svc-text span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.svc-go { color: var(--lime); width: 20px; height: 20px; }
.svc-other { border-style: dashed; }
@media (hover: hover) {
  .svc:hover { border-color: var(--lime); background: var(--surface-2); box-shadow: 0 0 28px rgba(154,242,13,.12); }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--graphite); border-radius: var(--radius); background: var(--surface); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--bg); background: var(--lime);
}
.step h3 { font-size: 18px; margin: 2px 0 4px; }
.step p { color: var(--muted); font-size: 15px; }


/* FAQ page */
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 10vw, 64px); font-weight: 700; letter-spacing: -.03em; }
.section-faq { padding-top: 24px; }
.faq-page, .page-hero .container { max-width: 868px; }
.faq-cta { margin-top: 32px; padding: 24px; border: 1px solid rgba(154,242,13,.4); border-radius: 18px; background: var(--surface); text-align: center; }
.faq-cta h2 { font-size: 24px; }
.faq-cta p { color: var(--muted); margin-top: 6px; }
.faq-cta-actions { display: grid; gap: 10px; margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--graphite); border-radius: 12px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(154,242,13,.6); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px; font-weight: 600; font-size: 16px; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--lime); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* Contact */

.contact-cards { display: grid; gap: 12px; margin-top: 24px; max-width: 820px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--graphite); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.contact-card:active { border-color: var(--lime); }
.cc-ico { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--lime); color: var(--bg); }
.cc-ico .ico { width: 26px; height: 26px; stroke-width: 2; }
.cc-text { flex: 1; min-width: 0; }
.cc-text span { display: block; font-size: 13px; color: var(--muted); }
.cc-text strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 640px) { .cc-text strong { overflow-wrap: normal; white-space: nowrap; font-size: 18px; } }
.cc-go { color: var(--lime); }
@media (hover: hover) {
  .contact-card:hover { border-color: var(--lime); box-shadow: 0 0 28px rgba(154,242,13,.12); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--graphite); padding-top: 56px; background: rgba(8,10,9,.85); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.site-footer .footer-top { padding-bottom: 44px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand img { height: 36px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; }
.socials-mobile { margin-top: 18px; }
.socials.socials-desktop { display: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--graphite); border-radius: 10px; display: grid; place-items: center; background: var(--surface); transition: border-color .2s, color .2s; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col:last-child { align-items: flex-end; text-align: right; }
.footer-col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.site-footer .footer-bottom { padding-top: 28px; padding-bottom: 24px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--graphite); }
.footer-bottom { position: relative; display: flex; flex-direction: column; gap: 18px; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .socials a:hover { border-color: var(--lime); color: var(--lime); }
  .footer-col a:hover { color: var(--lime); }
}

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,10,9,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--graphite);
  transition: transform .25s;
}
.action-bar .btn { min-height: 50px; padding: 0 12px; }
.action-bar.hide { transform: translateY(110%); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .hero-actions { display: flex; justify-content: center; width: auto; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1.25fr; }
  .faq-cta-actions { display: flex; justify-content: center; }
  .footer-top { display: flex; align-items: flex-start; gap: clamp(48px, 7vw, 112px); }
  .footer-brand + .footer-col { min-width: 210px; }
  .footer-brand { margin-right: auto; }
  .footer-col:last-child { align-items: flex-start; text-align: left; }
  .site-footer { padding-top: 64px; }
  .site-footer .footer-top { padding-bottom: 48px; }
  .site-footer .footer-bottom { padding-top: 28px; padding-bottom: 28px; }
  .footer-bottom::before { left: 24px; right: 24px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .socials.socials-mobile { display: none; }
  .socials.socials-desktop { display: flex; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .brand img { height: 40px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 30px; padding: 0;
    background: none; border: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav > a:not(.btn) { padding: 0; border: 0; font-size: 15px; color: var(--muted); transition: color .2s; }
  .nav > a:not(.btn):hover { color: var(--white); }
  .nav-cta { margin-top: 0; min-height: 44px; }

  .hero { padding: 80px 0 96px; }
  .hero::after { left: auto; right: 6%; top: 40px; transform: none; width: 560px; height: 560px; }
  .hero-inner { flex-direction: row-reverse; text-align: left; justify-content: space-between; gap: 56px; }
  .hero-copy { flex: 1.3; min-width: 0; }
  .hero h1 { font-size: clamp(42px, 4.6vw, 64px); }
  .hero-badge { width: clamp(280px, 28vw, 360px); flex-shrink: 0; }
  .lead { font-size: 19px; margin: 0; }
  .hero-actions { justify-content: flex-start; margin: 34px 0 26px; }
  
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 44px; max-width: 680px; }
  .kicker { font-size: 19px; margin-bottom: 14px; }
  .section-sub { font-size: 18px; }
  .svc-list { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .svc { flex-direction: column; align-items: flex-start; padding: 22px; min-height: 200px; gap: 16px; }
  .svc-go { display: none; }
  .svc-ico { width: 56px; height: 56px; }
  .svc:hover { transform: translateY(-3px); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 24px; flex-direction: column; }
  .page-hero { padding: 80px 0 8px; }
  .faq-cta { padding: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
