/* ============================================================
   Detail Tech — Homepage styles
   Plain CSS, structured for an easy Elementor rebuild later.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --blue: #00ABDF;
  --blue-bright: #34CEF6;
  --blue-deep: #0089b4;
  --blue-glow: rgba(0, 171, 223, 0.35);

  --bg: #0A0A0A;
  --bg-alt: #0A0A0A;
  --surface: #111111;
  --surface-2: #161618;
  --surface-3: #1E1E20;

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --white: #FFFFFF;
  --text: #EAECEE;
  --muted: #9BA1A8;
  --muted-2: #6E747B;

  --maxw: 1340px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 78px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

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

  --ff-display: "Outfit", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 6vw, 84px); position: relative; }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.h-xl {
  font-family: var(--ff-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.6vw, 5.25rem);
  line-height: 0.85;
  letter-spacing: -1px;
}
.h-lg {
  font-family: var(--ff-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -1px;
}
.h-md {
  font-family: var(--ff-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -1px;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -1px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.text-blue { color: var(--blue); }
.section-head { max-width: 720px; }
.section-head .h-lg { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 0.85fr; gap: 28px 48px; align-items: end; }
.section-head--split .h-lg { margin-top: 18px; }
.section-head--split .lead { margin-top: 0; padding-bottom: 6px; max-width: 46ch; }
@media (max-width: 760px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-head--split .lead { padding-bottom: 0; }
}
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-body);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 10px;
  min-height: 52px;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--blue);
  color: #000;
  box-shadow: 0 8px 30px -10px var(--blue-glow);
}
.btn--primary:hover { background: var(--white); color: #000; transform: translateY(-2px); box-shadow: 0 14px 38px -14px rgba(255,255,255,0.18); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--white); transform: translateY(-2px); }
.btn--solid-dark {
  background: var(--surface-2);
  color: var(--white);
  border: 1px solid var(--line);
}
.btn--solid-dark:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 0.78rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.005em;
  color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px),
    var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--muted-2);
  overflow: hidden;
  min-height: 200px;
}
.ph::after {
  content: "Image";
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.02em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 7px; border-radius: 3px;
  opacity: 0.7;
}
.ph__label {
  font-family: var(--ff-body);
  font-size: 0.86rem; line-height: 1.4;
  padding: 28px;
  max-width: 30ch;
}
.ph__label strong { display: block; color: var(--text); font-family: var(--ff-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.ph__icon { width: 34px; height: 34px; margin: 0 auto 12px; opacity: 0.5; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* surface section bg */
.bg-alt { background: var(--bg-alt); }
.hairline-top { border-top: 1px solid var(--line); }
