/* OMOX site styles. Tokens follow brand/coming-soon.html. No external requests (CSP: self only). */

/* ---------- Fonts (self-hosted, from @fontsource) ---------- */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/syne-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/syne-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/syne-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/space-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-mono-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0f0f12;
  --surface: #17171c;
  --surface-2: #1d1d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: #c4c4cc;
  --text-dim: #9a9aa5; /* 7.0:1 on --bg, passes WCAG AA */
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue) 45%, var(--cyan));
  --gradient-warm: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));

  --font-head: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max: 72rem;
  --gutter: 16px;
  --radius: 14px;
  color-scheme: dark;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Decorative background ---------- */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(at 0% 0%, var(--purple) 0%, transparent 50%),
    radial-gradient(at 100% 0%, var(--blue) 0%, transparent 50%),
    radial-gradient(at 100% 100%, var(--cyan) 0%, transparent 50%),
    radial-gradient(at 0% 100%, var(--pink) 0%, transparent 50%);
  opacity: 0.15;
  animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% { filter: blur(60px); transform: scale(1); }
  50% { filter: blur(80px); transform: scale(1.1) rotate(5deg); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* Page content sits above the mesh, below the grain. */
.site-header, main, .site-footer { position: relative; z-index: 10; }
main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand { display: inline-flex; padding: 0.25rem 0; }
.brand img {
  width: 104px;
  filter: brightness(0) invert(1);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* Narrow phones (320-379px): tighten so logo + three links fit in one row. */
@media (max-width: 379px) {
  .site-header .wrap { gap: 0.5rem; }
  .brand img { width: 84px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0.45rem 0.5rem; letter-spacing: 0.06em; font-size: 0.7rem; }
}

@media (min-width: 640px) {
  .brand img { width: 128px; }
  .site-nav ul { gap: 0.5rem; }
  .site-nav a { padding: 0.5rem 0.95rem; }
}

/* ---------- Shared type and components ---------- */
.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.gradient-text {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
}
.button::after { content: '\2192'; font-family: var(--font-body); }

.button-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
}
.button-ghost:hover { box-shadow: none; border-color: var(--text-dim); }
.button-ghost::after { content: none; }

.section { padding-block: 4.5rem; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  max-width: 34rem;
}

/* Generic content pages (about, privacy, 404) can reuse these. */
.page-head { padding-block: 4.5rem 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.25rem; }
.prose { max-width: 44rem; color: var(--text-muted); }
.prose h2 { font-size: 1.5rem; color: var(--text); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.1rem; color: var(--text); margin: 2rem 0 0.75rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose a { color: var(--text); text-decoration-color: var(--cyan); text-underline-offset: 3px; }

/* ---------- Home: hero ---------- */
.hero { padding-block: 5rem 4.5rem; }

.hero h1 {
  font-size: clamp(2.3rem, 7.2vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 1.75rem;
}
.hero h1 .gradient-text { padding-bottom: 0.08em; }

.hero .lede { margin-bottom: 2.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .hero { padding-block: 7.5rem 6rem; }
}

/* ---------- Home: what we do ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}
.card-sourcing::before { background: linear-gradient(90deg, var(--pink), var(--purple)); }

.card-index {
  display: block;
  margin-bottom: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.card p { color: var(--text-muted); }
.card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration-color: var(--cyan);
  text-underline-offset: 4px;
}
.card-link:hover { color: var(--cyan); }

@media (min-width: 640px) {
  .card { padding: 2.5rem 2.25rem; }
}

/* ---------- Home: flyWilco ---------- */
.product {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .product { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
}

.product-name {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.product-name span { color: var(--cyan); }

.product h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.product .lede { margin-bottom: 2rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  padding: 1.5rem;
}
.features li + li { border-top: 1px solid var(--line); }
.features .num {
  grid-row: span 2;
  font-size: 0.72rem;
  color: var(--purple);
  padding-top: 0.2rem;
}
.features h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.features p { color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Home: closing CTA ---------- */
.cta {
  position: relative;
  padding: 3rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  /* Gradient border */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.6;
}
.cta h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  max-width: 20ch;
  margin: 0 auto 1rem;
}
.cta .lede { margin: 0 auto 2rem; }

@media (min-width: 640px) {
  .cta { padding: 4.5rem 3rem; }
}

/* ---------- Content pages: about, contact, privacy, 404 ---------- */
.page-head .lede { margin-top: 0; }
.section-flush { padding-top: 1rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 1.5rem; }
.card-title { font-size: 1.6rem; margin-bottom: 1rem; }
.prose li + li { margin-top: 0.35rem; }
.prose strong { color: var(--text); }

.about-grid,
.contact-grid {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}
.about-grid > *, .contact-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
}
.contact-section { padding-top: 1rem; }

/* Facts panel (about company details, contact direct details) */
.details {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.details-title { font-size: 1.15rem; margin-bottom: 1.25rem; }
.details dl { margin: 0; }
.details dl > div { padding-block: 0.75rem; }
.details dl > div + div { border-top: 1px solid var(--line); }
.details dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.details dd { margin: 0.2rem 0 0; color: var(--text); overflow-wrap: anywhere; }
.details a { color: var(--text); text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.details address { font-style: normal; }

/* Contact form */
.contact-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .optional { text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--cyan); }
.field [aria-invalid="true"] { border-color: var(--pink); }
.field-error { font-size: 0.8rem; color: #f9a8d4; }
.field-error[hidden] { display: none; }
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }

.button:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.form-note { font-size: 0.8rem; color: var(--text-dim); }
.form-note a, .form-notice a { color: var(--text); text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.form-notice { margin-bottom: 1.5rem; color: var(--text-muted); }

.form-status:empty { display: none; }
.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  overflow-wrap: anywhere;
}
.form-status-error { border-color: rgba(236, 72, 153, 0.6); color: #fbcfe8; }
.form-status-success { border-color: rgba(6, 182, 212, 0.6); color: var(--text-muted); }
.form-status-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin-bottom: 0.4rem; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 404 */
.not-found { padding-block: 5rem 4rem; }
.not-found .error-code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(6rem, 25vw, 12rem);
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1rem;
}
.not-found h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.not-found .lede { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--text-dim);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer p { max-width: 48rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }

@media (min-width: 900px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mesh-bg, .status::before { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
