/* =========================================================
   SOLOS · Design System
   Premium dark · engineering · precision
   ========================================================= */

/* Geist & Geist Mono now loaded via <link rel="stylesheet"> in HTML head (non-blocking, async pattern) */
:root {
  /* === Colors === */
  --bg: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --ink: #f5f5f4;
  --ink-2: rgba(245, 245, 244, 0.72);
  --ink-3: rgba(245, 245, 244, 0.55);
  --ink-4: rgba(245, 245, 244, 0.52);

  --accent: #1FBFA8;
  --accent-h: #38d4be;
  --accent-d: #168575;
  --accent-soft: rgba(31, 191, 168, 0.12);

  /* === Type === */
  --f-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* === Geometry === */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);
  --maxw: 1440px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

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

/* === Type Scale === */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(46px, 7.2vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1 {
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.body-l {
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.mono.upper {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  height: 50px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .2s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }
.btn-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.btn:hover .btn-arrow svg { transform: translate(2px, -2px); }

/* === Layout === */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.section + .section { padding-top: 0; }
.section-divider { border-top: 1px solid var(--line); }

/* === Hairline grid background helpers === */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* === Section label (numbered) === */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 4vw, 72px);
}
.section-head .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 8px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* === Cards === */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); }

/* === Utility === */
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-accent { color: var(--accent); }
.text-ink { color: var(--ink); }
.text-dim { color: var(--ink-2); }
.text-muted { color: var(--ink-3); }
.fade-in { animation: fadeIn .8s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* === Brandmark pattern (for subpage backdrops / accent surfaces) === */
.brand-pattern {
  background-color: var(--accent);
  -webkit-mask-image: url('assets/brand-pattern.svg');
  mask-image: url('assets/brand-pattern.svg');
  -webkit-mask-size: 280px 163px;
  mask-size: 280px 163px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.brand-pattern-mono {
  background-color: var(--ink);
  -webkit-mask-image: url('assets/brand-pattern.svg');
  mask-image: url('assets/brand-pattern.svg');
  -webkit-mask-size: 280px 163px;
  mask-size: 280px 163px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

/* === Accessible focus + selection === */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #050505; }

/* === Skip-to-content link (keyboard a11y) === */
.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--accent);
  color: #050505;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #050505;
  outline-offset: 2px;
}

/* === Global focus-visible — keyboard a11y, consistent indicator === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Buttons get a tighter ring (their own border already implies a frame) */
.btn:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}
/* Inputs invert: the field has a visible frame; the focus replaces border */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* === Form: success state, consent checkbox === */
.cta-form-success {
  padding: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.cta-consent {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}
.cta-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cta-consent .body { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cta-consent a { color: var(--accent); }

/* === Inline links inside body copy === */
a.inline-link, .legal-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: opacity .15s ease;
}
a.inline-link:hover, .legal-body a:hover { opacity: 0.75; }

/* === Footer + contact email/phone links inherit but get subtle underline on hover === */
.footer-col a, .footer-brand-col a { transition: color .15s ease; }
.footer-brand-col a:hover { color: var(--accent); }
