/* ==========================================================================
   taqi.io — Taqwatch Systems LLC
   Self-hosted fonts, zero third-party requests, zero JavaScript.
   ========================================================================== */

/* ---------- Fonts (Space Grotesk, SIL OFL — see assets/fonts/OFL.txt) ----- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700; /* variable wght axis */
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------- */

:root {
  color-scheme: dark;

  --bg: oklch(0.15 0.008 265);
  --surface: oklch(0.19 0.008 265);
  --surface-raised: oklch(0.22 0.01 265);

  --border: oklch(0.26 0.008 265);
  --border-soft: oklch(0.24 0.008 265);
  --border-strong: oklch(0.32 0.008 265);

  --text: oklch(0.96 0.005 265);
  --text-muted: oklch(0.74 0.01 265);
  --text-dim: oklch(0.68 0.01 265);
  --text-faint: oklch(0.62 0.01 265);

  --accent: oklch(0.68 0.19 28);
  --accent-hover: oklch(0.76 0.16 30);
  --accent-ink: oklch(0.15 0.008 265);

  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;

  --shell: 1240px;
  --gutter: 32px;
  --radius: 20px;
  --radius-sm: 11px;

  --step-h1: clamp(2.375rem, 1.05rem + 5.9vw, 4.625rem); /* 38 → 74px */
  --step-h2: clamp(1.875rem, 1.29rem + 2.6vw, 2.75rem); /* 30 → 44px */
  --step-h3: clamp(1.25rem, 1.13rem + 0.5vw, 1.4375rem); /* 20 → 23px */
  --step-lead: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem); /* 17 → 20px */
}

/* ---------- Base --------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: oklch(0.68 0.19 28 / 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Anchor targets clear the sticky header */
[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--accent-ink);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography helpers ------------------------------------------ */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Header / nav ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: oklch(0.15 0.008 265 / 0.72);
  border-bottom: 1px solid oklch(0.28 0.008 265 / 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.brand:hover {
  color: var(--text);
}

.brand .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 132px 120px;
  overflow: clip;
}

.hero-watermark {
  position: absolute;
  right: -140px;
  top: 20px;
  width: 640px;
  height: 640px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero h1 {
  font-size: var(--step-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.034em;
  margin: 0 0 28px;
  text-wrap: balance;
}

.hero .lead {
  max-width: 600px;
}

/* ---------- Section scaffolding ----------------------------------------- */

.section {
  padding-block: 110px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2,
.section h2 {
  font-size: var(--step-h2);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.05;
  margin: 0 0 18px;
  text-wrap: balance;
}

.section-head p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Accelerators ------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.card h3 {
  font-size: var(--step-h3);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.card p {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Services ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

.split p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.feature-list li {
  font-size: 1.0625rem;
  font-weight: 500;
  border-top: 1px solid var(--border);
  padding-block: 16px;
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.split-visual {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: radial-gradient(
    120% 120% at 30% 20%,
    oklch(0.24 0.01 265),
    oklch(0.17 0.008 265)
  );
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual img {
  width: 180px;
  height: 180px;
}

/* ---------- Company panel ----------------------------------------------- */

.panel {
  background: linear-gradient(
    135deg,
    oklch(0.22 0.02 30),
    oklch(0.18 0.008 265)
  );
  border: 1px solid oklch(0.3 0.02 30);
  border-radius: 26px;
  padding: 72px 56px;
  text-align: center;
}

.panel .section-label {
  margin-bottom: 18px;
}

.panel h2 {
  margin-bottom: 22px;
}

.panel p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.panel .btn-row {
  justify-content: center;
}

/* ---------- Contact ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-aside p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.contact-direct {
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin: 0;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.field .optional {
  color: var(--text-faint);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: oklch(0.4 0.008 265);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid oklch(0.68 0.19 28 / 0.35);
  outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.form .btn {
  width: 100%;
}

.form-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 16px 0 0;
  text-align: center;
}

/* Netlify honeypot — must stay in the DOM but never be seen or focusable */
.hp {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}

.footer-brand .brand {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 260px;
  margin: 0;
}

.footer-col h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.875rem;
}

.footer-col a {
  color: var(--text-dim);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-legal {
  padding-block: 0 40px;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ---------- Long-form / legal pages ------------------------------------- */

.prose {
  max-width: 760px;
  padding-block: 72px 96px;
}

.prose h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin: 0 0 48px;
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- Error page -------------------------------------------------- */

.center-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 96px;
}

.center-page h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.center-page p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-grid {
    gap: 44px;
  }

  .hero-watermark {
    width: 460px;
    height: 460px;
    right: -120px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    padding-block: 84px 76px;
  }

  .section {
    padding-block: 76px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-visual {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .split-visual img {
    width: 132px;
    height: 132px;
  }

  .panel {
    padding: 56px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  [id] {
    scroll-margin-top: 120px;
  }

  .nav {
    justify-content: center;
    gap: 14px;
    padding-block: 12px;
  }

  .nav-links {
    gap: 20px;
    font-size: 0.875rem;
    justify-content: center;
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-watermark {
    width: 320px;
    height: 320px;
    right: -110px;
    top: 8px;
  }

  .card,
  .form {
    padding: 26px;
  }

  .panel {
    padding: 44px 24px;
    border-radius: 20px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .prose {
    padding-block: 52px 72px;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 16px;
    font-size: 0.8125rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand p {
    max-width: none;
  }
}
