/* ==========================================================================
   UNDETECTABLE UGC — BASE
   Design system shared by all three pages of the funnel.

   Concept: forensic video-analysis lab. Near-black ground, acid lime for
   "reads as human", alert red for "detected as AI", technical mono labels
   and face-detection brackets as the recurring visual motif.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Ground */
  --ink:        #08080A;
  --ink-raised: #101014;
  --ink-card:   #131318;
  --ink-line:   #24242C;
  --ink-line-2: #35353F;

  /* Type */
  --paper:      #F4F4F0;
  --paper-dim:  #A0A0AC;
  --paper-mute: #6E6E7C;

  /* Signal */
  --lime:       #D4FF3F;
  --lime-deep:  #A9D317;
  --lime-glow:  rgba(212, 255, 63, 0.16);
  --alert:      #FF4D3D;
  --alert-glow: rgba(255, 77, 61, 0.14);

  /* Type families */
  --display: "Anton", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body:    "Sora", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Rhythm */
  --gut:      clamp(1.25rem, 5vw, 2rem);
  --section:  clamp(4.5rem, 11vw, 9rem);
  --max:      1180px;
  --max-text: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

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

::selection { background: var(--lime); color: var(--ink); }

@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;
  }
}

/* --------------------------------------------------------------------------
   3. ATMOSPHERE — grain + scanline, fixed over the whole page
   -------------------------------------------------------------------------- */

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.16) 3px 4px
  );
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

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

.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--section); position: relative; }

.section--hairline { border-top: 1px solid var(--ink-line); }

.stack > * + * { margin-top: 1.15em; }

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.d-xl { font-size: clamp(2.75rem, 9.5vw, 6.5rem); }
.d-lg { font-size: clamp(2.25rem, 6.4vw, 4.25rem); }
.d-md { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
.d-sm { font-size: clamp(1.25rem, 2.4vw, 1.625rem); }

/* The lime word — carries the brand promise wherever it appears */
.hl { color: var(--lime); }
.hl-alert { color: var(--alert); }

/* Outlined display text, used to break up long headline runs */
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-line-2);
}

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: var(--max-text);
  font-weight: 300;
}

.dim  { color: var(--paper-dim); }
.mute { color: var(--paper-mute); }

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--paper-mute);
}

/* --------------------------------------------------------------------------
   6. MONO LABEL — the technical readout that ties the brand together
   -------------------------------------------------------------------------- */

.tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.tag::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.tag--bare::before { display: none; }
.tag--lime  { color: var(--lime-deep); }
.tag--alert { color: var(--alert); }

/* Pill readout, e.g. [ DETECTION: 4% — HUMAN ] */
.readout {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.95em;
  border: 1px solid var(--ink-line-2);
  border-radius: 100px;
  color: var(--paper-dim);
  background: rgba(255, 255, 255, 0.015);
}

.readout--lime {
  color: var(--lime);
  border-color: rgba(212, 255, 63, 0.35);
  background: var(--lime-glow);
}

.readout .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}

/* --------------------------------------------------------------------------
   7. DETECTION BRACKETS — the signature motif
   -------------------------------------------------------------------------- */

.brackets { position: relative; }

.brackets::before,
.brackets::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--lime);
  pointer-events: none;
}

.brackets::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}

.brackets::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}

.brackets--alert::before,
.brackets--alert::after { border-color: var(--alert); }

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.15em 2.1em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.28s var(--ease);
  box-shadow: 0 0 0 rgba(212, 255, 63, 0);
}

/* Sweep of light on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px -8px rgba(212, 255, 63, 0.45);
}

.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--block { width: 100%; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border: 1px solid var(--ink-line-2);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* Reassurance line that sits under a CTA */
.btn-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 1.1rem;
}

.btn-note span { white-space: nowrap; }

.btn-note span + span::before {
  content: "·";
  margin-inline: 0.65em;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   9. CARD
   -------------------------------------------------------------------------- */

.card {
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover { border-color: var(--ink-line-2); }

/* --------------------------------------------------------------------------
   10. SCROLL REVEAL — progressive enhancement, content is visible without JS
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   11. UTILITIES
   -------------------------------------------------------------------------- */

.center      { text-align: center; }
.center .lede, .center .fine { margin-inline: auto; }
.hidden      { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   12. FOOTER — shared across all three pages
   -------------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--ink-line);
  padding-block: 3.5rem 4rem;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.foot__mark {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.foot__mark span { color: var(--lime); }

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot__links a {
  color: var(--paper-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot__links a:hover { color: var(--lime); }

.foot__legal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  max-width: 78ch;
}

/* Digistore24 trusted badge. Their script injects its own markup, which is
   built for a light page — the panel below keeps it from sitting directly on
   the near-black ground and looking like a rendering bug. */
.badge {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: flex-start;
}

.badge__panel {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  line-height: 0;
  max-width: 100%;
  overflow-x: auto;
}

.badge__panel img { display: inline-block; }

@media (max-width: 640px) {
  .badge { justify-content: center; }
}
