/* ============================================================
   AlloyTechs — tokens & primitives
   Mirrors /var/www/alloy-automotive/src/styles/global.css so the two
   properties read as one brand. There is no build step and no shared
   import here, so the two files are kept in sync BY HAND. If you change
   a token there, change it here too.
   Display + spec labels: Manrope · Body: Open Sans. No third face.
   ============================================================ */

:root {
  /* palette — identical to Alloy Automotive Partners */
  --ink:        #0E1619;
  --slate:      #16242A;
  --slate-2:    #1E323A;
  --slate-3:    #26424C;
  --teal:       #2CE6B8;
  --teal-deep:  #12C79A;
  --steel:      #93A9B0;
  --steel-dim:  #6C838B;
  --paper:      #F4F6F6;
  --ink-paper:  #14232A;

  --line:        rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.20);

  /* type */
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-label:   "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:target { scroll-margin-top: 92px; }
section[id] { scroll-margin-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: #EAF2F1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

::selection { background: var(--teal); color: var(--ink); }

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

/* ---------- eyebrow / spec label (signature type device) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
  flex: none;
}
.eyebrow--plain::before { display: none; }

/* ---------- headings scale ---------- */

.h-display { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.98; }
.h-1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h-2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--steel);
  max-width: 60ch;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease),
              box-shadow 0.35s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(44, 230, 184, 0.6); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #EAF2F1;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--teal);
  box-shadow: none;
  color: #fff;
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- accessibility ---------- */

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--teal); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 8px;
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 700;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
