/* OzoneWash · base: real brand tokens from ozone-wash-app/src/utils/constants.ts
   (dark glassmorphism, electric cyan). Reset, type, buttons, nav, footer. */

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

:root {
  --bg: #0B0C18;
  --surface: #12131E;
  --surface-elevated: #181926;
  --primary: #2DD4BF;
  --primary-deep: #1FA895;
  --foreground: #F1F2F8;
  --muted: #8A8FA8;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --success: #4ADE80;
  --warning: #FBBF24;
  --danger: #F87171;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --space-section: clamp(4.5rem, 3.5rem + 5vw, 9rem);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

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

/* subtle noise so the near-black canvas doesn't band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--primary); color: var(--bg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--primary); color: var(--bg); padding: 0.6rem 1rem;
  border-radius: 8px; font-weight: 600; transition: top 200ms var(--ease);
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--primary); }
p { margin: 0 0 1em; }

.section { padding: var(--space-section) var(--pad-x); position: relative; }
.section-inner { max-width: 74rem; margin: 0 auto; }
.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.1rem; display: block;
}
.body-lg { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); max-width: 46ch; }

.text-link {
  color: var(--primary); font-weight: 600; border-bottom: 1px solid rgba(45, 212, 191, 0.4);
  transition: border-color 200ms;
}
.text-link:hover { border-color: var(--primary); }

/* ---------- badge ---------- */
.patent-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08); padding: 0.35rem 0.75rem; border-radius: 999px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 50px; padding: 0 1.7rem; border-radius: 12px; border: 0;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem; line-height: 1;
  cursor: pointer; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #04231e;
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(45, 212, 191, 0.4); }
.btn-ghost {
  background: transparent; color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.85rem var(--pad-x); border-bottom: 1px solid transparent;
  transition: background 300ms, border-color 300ms;
}
.nav.scrolled {
  background: rgba(11, 12, 24, 0.85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner { max-width: 74rem; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, #4EEBD6, var(--primary) 60%, var(--primary-deep));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.5);
}
.wordmark { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 0.4rem; margin-left: auto; }
.nav-links a {
  font-size: 0.92rem; color: var(--muted); padding: 0.5rem 0.9rem; border-radius: 8px;
  transition: color 200ms, background 200ms;
}
.nav-links a:hover { color: var(--foreground); background: rgba(255,255,255,0.05); }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 3.5rem var(--pad-x) 4.5rem; background: var(--surface); }
.foot-grid { max-width: 74rem; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 2.5rem; }
.foot-brand p { color: var(--muted); margin-top: 1rem; max-width: 30ch; }
.foot-links { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-links a { color: var(--muted); transition: color 200ms; }
.foot-links a:hover { color: var(--primary); }
.foot-meta { color: var(--muted); font-size: 0.92rem; }
.foot-meta p { margin-bottom: 0.4rem; }

@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- reveal motion ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
