/* ============================================================
   WIPLash Limited — dark & technical theme
   ============================================================ */
:root {
  --bg: #0e0b20;
  --bg-alt: #131028;
  --panel: rgba(23, 19, 58, 0.55);
  --text: #e8e4ff;
  --muted: #a6a0c8;
  --faint: #6f6a92;
  --accent: #7a5cff;
  --accent-brand: #5b3df5;
  --accent-2: #ffb020;
  --border: rgba(232, 228, 255, 0.14);
  --border-accent: rgba(122, 92, 255, 0.5);
  --glow: rgba(91, 61, 245, 0.22);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(122, 92, 255, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- background texture ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 228, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 228, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.bg-glow-hero {
  width: 640px; height: 480px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(91, 61, 245, 0.22), rgba(255, 176, 32, 0.07) 55%, transparent 75%);
}

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 900; margin: 18px 0 22px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent-2); letter-spacing: 0.14em; text-transform: uppercase;
}
.arrow { color: var(--accent-2); font-family: var(--font-mono); font-weight: 500; }
.h1-dim { color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section-lede { color: var(--muted); max-width: 60ch; margin-bottom: 44px; }
.accent { color: var(--accent); }
strong { color: #fff; font-weight: 700; }

.placeholder-mark {
  color: var(--accent-2);
  border-bottom: 1px dashed var(--accent-2);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(14, 11, 32, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; }
.logo { height: 30px; width: auto; }
.logo-footer { height: 26px; opacity: 0.92; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #7a5cff, var(--accent-brand));
  color: #fff;
  box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 32px rgba(122, 92, 255, 0.4); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(232, 228, 255, 0.04); }
.btn-ghost:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { padding: 190px 0 90px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 52px;
}
.hero-chips li {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  background: rgba(23, 19, 58, 0.5);
}

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px;
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(122, 92, 255, 0.12);
}
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-icon { color: var(--accent); width: 30px; height: 30px; }
.card-icon svg { width: 100%; height: 100%; }
.card-cta {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(122, 92, 255, 0.12), transparent 55%),
    var(--panel);
  border-color: var(--border-accent);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.card-cta .btn { margin-top: 18px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 44px; }
.step {
  border-top: 1px solid var(--border); padding-top: 22px; position: relative;
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.step-num {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.about-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px;
}
.about-panel-title {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.checklist { list-style: none; display: grid; gap: 13px; }
.checklist li {
  color: var(--muted); font-size: 0.95rem; padding-left: 28px; position: relative;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field label {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.form-field .optional { color: var(--faint); text-transform: none; letter-spacing: 0; }
.form-field input, .form-field textarea {
  background: rgba(14, 11, 32, 0.7); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: var(--font-sans); font-size: 0.98rem;
  padding: 13px 15px; width: 100%; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.16);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: rgba(251, 113, 133, 0.5); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }

/* honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.cf-turnstile { margin: 2px 0 6px; }

.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: #34d399; }
.form-status.err { color: #fb7185; }

.contact-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 28px; position: sticky; top: 96px;
}
.contact-list dt {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-top: 20px;
}
.contact-list dt:first-of-type { margin-top: 6px; }
.contact-list dd { margin: 4px 0 0; color: var(--text); font-size: 1rem; }
.contact-list a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-list a:hover { border-bottom-color: var(--accent); }
.address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--faint);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.footer-legal { font-size: 0.8rem; color: var(--faint); margin-top: 4px; }
.footer-copy { font-size: 0.8rem; color: var(--faint); }


/* ---------- photography ---------- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/img/hero-pcb.jpg") center 30% / cover no-repeat;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.6) 55%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.6) 55%, transparent 95%);
}
.band {
  position: relative; padding: 130px 0; overflow: hidden;
  background: url("../assets/img/band-laptop.jpg") center / cover fixed no-repeat;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg), rgba(14, 11, 32, 0.55) 28%, rgba(14, 11, 32, 0.55) 72%, var(--bg));
}
.band .container { position: relative; }
.band-quote {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.7rem); letter-spacing: 0.02em;
  text-align: center; color: var(--text);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}
.track-record {
  list-style: none; margin-top: 28px; display: grid; gap: 12px;
  border-left: 2px solid var(--border-accent); padding-left: 20px;
}
.track-record li { color: var(--muted); font-size: 0.95rem; }
.track-record strong { color: var(--text); }
.about-photo { margin: 0 0 24px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.about-photo img {
  display: block; width: 100%; height: 190px; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
@media (hover: none), (max-width: 900px) {
  .band { background-attachment: scroll; }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-panel { position: static; }
  .section { padding: 72px 0; }
  .hero { padding: 150px 0 70px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.3rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
