/* =========================================================
   aiaii.nl landing page, by Spruce Electronics
   Plain CSS, no build step. Mobile-first.
   ========================================================= */

:root {
  --ink:        #0b1614;   /* deep spruce-black */
  --ink-2:      #12221f;
  --ink-3:      #1b302b;
  --spruce:     #1f7a5a;   /* primary green */
  --spruce-2:   #2fa37a;
  --mint:       #c9eedd;
  --paper:      #f6f8f7;
  --white:      #ffffff;
  --text:       #1a2421;
  --muted:      #5b6b66;
  --line:       #dfe6e3;
  --amber:      #f5a524;   /* warning */
  --red:        #ff5a5f;   /* oops */
  --blue:       #4c8dff;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(11,22,20,.06), 0 8px 24px rgba(11,22,20,.08);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.45);

  --font:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .9em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--spruce); color: var(--white); }
.btn--primary:hover { background: var(--spruce-2); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--small { padding: .45rem 1rem; font-size: .9rem; background: var(--spruce); color: var(--white); }
.btn--small:hover { background: var(--spruce-2); }
.btn--large { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--spruce);
  margin-bottom: .75rem;
}
.eyebrow--warn { color: var(--amber); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,22,20,.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em;
}
.nav__logo {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--amber); color: var(--ink);
  font-weight: 800;
}
.nav__tld { color: var(--amber); }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.75); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav__links a:not(.btn):hover { color: var(--white); }
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(255,90,95,.14), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(31,122,90,.25), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: 56px 0 48px;
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding: 96px 0 72px; } }

.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid; gap: 40px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.hero__title { margin-bottom: 1.25rem; }
.hero__subtitle {
  display: block;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.92);
  margin-top: 1.4rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* "Oeps." with magic smoke: the full stop is an overheating SMD part */
.oeps {
  position: relative; display: inline-block;
  font-size: clamp(4.5rem, 16vw, 9.5rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .9;
  color: var(--white);
}
.oeps__word {
  display: inline-block;
  animation: brownout 7s infinite;
}
.oeps__dot {
  position: relative;
  display: inline-block; vertical-align: baseline;
  width: .28em; height: .17em;
  margin-left: .06em;
  border-radius: .02em;
  /* silver end caps, black body */
  background: linear-gradient(90deg, #c9d1ce 0 20%, #1c1f1e 20% 80%, #c9d1ce 80%);
  animation: overheat 1.4s ease-in-out infinite alternate;
}
/* glowing hot spot in the middle of the part */
.oeps__dot::after {
  content: ""; position: absolute; left: 22%; right: 22%; top: 18%; bottom: 18%;
  border-radius: .02em;
  background: radial-gradient(circle, #ffe08a 0%, #ff8a2a 45%, #c2271f 100%);
  animation: hotspot 1.4s ease-in-out infinite alternate;
}
.smoke {
  position: absolute; left: 50%; bottom: 70%;
  width: .2em; height: .2em; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,228,225,.9), rgba(220,228,225,.35) 45%, rgba(220,228,225,0) 72%);
  opacity: 0;
  animation: smoke 3.6s ease-out infinite;
  pointer-events: none;
}
.s1 { --dx: .25em;  animation-delay: 0s; }
.s2 { --dx: -.18em; animation-delay: .9s; }
.s3 { --dx: .4em;   animation-delay: 1.8s; }
.s4 { --dx: .05em;  animation-delay: 2.7s; }

@keyframes smoke {
  0%   { transform: translate(-50%, 0) scale(.4); opacity: 0; }
  12%  { opacity: .95; }
  60%  { opacity: .45; }
  100% { transform: translate(calc(-50% + var(--dx)), -1.1em) scale(3); opacity: 0; }
}
@keyframes overheat {
  from { box-shadow: 0 0 .06em rgba(255,120,40,.5), 0 0 .25em rgba(255,90,95,.25); }
  to   { box-shadow: 0 0 .12em rgba(255,140,40,.9), 0 0 .45em rgba(255,90,95,.55); }
}
@keyframes hotspot {
  from { opacity: .55; filter: brightness(.9); }
  to   { opacity: 1;   filter: brightness(1.25); }
}
/* the word flickers like a failing supply rail */
@keyframes brownout {
  0%, 88%, 100% { opacity: 1; }
  89% { opacity: .35; }
  90% { opacity: 1; }
  91% { opacity: .55; }
  93% { opacity: 1; }
}

/* Terminal */
.terminal {
  background: #0a0f0e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #121a18;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.terminal__title {
  margin-left: 8px; font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.terminal__body {
  margin: 0; padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size: clamp(.68rem, 1.9vw, .86rem);
  line-height: 1.85;
  color: #d7e3df;
  white-space: pre-wrap; word-break: break-word;
}
.t-dim  { color: #6f807b; }
.t-ok   { color: #3ddc97; }
.t-warn { color: var(--amber); }
.t-err  { color: var(--red); font-weight: 600; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--amber); }
@keyframes blink { 50% { opacity: 0; } }

/* Lines reveal one by one */
.terminal .l { opacity: 0; animation: line-in .01s forwards; }
.l1 { animation-delay: .2s !important; }
.l2 { animation-delay: .7s !important; }
.l3 { animation-delay: 1.1s !important; }
.l4 { animation-delay: 1.5s !important; }
.l5 { animation-delay: 1.9s !important; }
.l6 { animation-delay: 2.6s !important; }
.l7 { animation-delay: 3.0s !important; }
.l8 { animation-delay: 3.4s !important; }
.l9 { animation-delay: 4.1s !important; }
.l10 { animation-delay: 4.5s !important; }
@keyframes line-in { to { opacity: 1; } }

/* Stats */
.stats {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--ink-2); padding: 22px 24px; }
.stat strong {
  display: block; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--amber);
}
.stat span { display: block; margin-top: .35rem; font-size: .92rem; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -.025em;
  max-width: 780px;
  margin-bottom: 1rem;
}
.section__lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 2.5rem; }

/* ---------- Risks ---------- */
.risks { display: grid; gap: 20px; }
@media (min-width: 640px)  { .risks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .risks { grid-template-columns: repeat(3, 1fr); } }

.risk {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.risk:hover { transform: translateY(-3px); border-color: var(--spruce-2); }
.risk__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--spruce);
  margin-bottom: 1rem;
}
.risk__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.risk h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.risk p { color: var(--muted); font-size: .96rem; margin: 0; }
.risk em { font-style: normal; color: var(--text); font-weight: 600; }
.risk code { background: var(--paper); padding: .1em .35em; border-radius: 4px; color: var(--text); }

/* ---------- Cases ---------- */
.cases { display: grid; gap: 20px; }
@media (min-width: 640px)  { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(4, 1fr); } }

.case {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case__meta {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: 1rem;
  font-family: var(--mono); font-size: .75rem; color: var(--muted);
}
.case h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .75rem; }
.case p { font-size: .93rem; color: var(--muted); flex: 1; }
.case__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; color: var(--spruce); text-decoration: none;
  margin-top: .5rem;
}
.case__link:hover { color: var(--spruce-2); text-decoration: underline; text-underline-offset: 3px; }
.case__source { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: .35rem; }

.tag {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.tag--red   { background: #ffe4e5; color: #b4232a; }
.tag--amber { background: #fff1d6; color: #8a5a00; }
.tag--green { background: var(--mint); color: #145a41; }
.tag--blue  { background: #e2ecff; color: #1f4fb3; }

/* ---------- Help ---------- */
.help { display: grid; gap: 48px; }
@media (min-width: 980px) { .help { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }
.help__intro p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.help__intro strong { color: var(--white); }
.help__intro .btn { margin-top: 1rem; white-space: normal; text-align: center; }
@media (min-width: 980px) { .help__intro { position: sticky; top: 100px; } }

.strike { position: relative; color: rgba(255,255,255,.55); white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 55%;
  height: .12em; background: var(--red); transform: rotate(-4deg);
}

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service {
  display: flex; gap: 18px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease, background-color .2s ease;
}
.service:hover { border-color: var(--spruce-2); background: var(--ink-3); }
.service__num { font-family: var(--mono); font-weight: 600; color: var(--amber); font-size: .9rem; padding-top: .15rem; }
.service h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.service p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: #070e0c; color: rgba(255,255,255,.6); padding: 32px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-direction: column; gap: .25rem; }
@media (min-width: 768px) { .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer p { margin: 0; }
.footer strong { color: var(--white); }
.footer a { color: var(--white); }
.footer__small { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .terminal .l { opacity: 1; }
  .smoke { display: none; }
  .oeps__dot { box-shadow: 0 0 .1em rgba(255,130,40,.8), 0 0 .35em rgba(255,90,95,.45); }
}
