/* ==========================================================================
   webNpro demo - gandalf.webnpro.com
   Brand tokens: /opt/sven/fleet/brand/design-tokens.json (2026-08-19)
   Palette: blue #379AE6 (primary), coral #FD5859 (CTA accent only),
            white, dark neutral #16232E. Type: Bruno Ace + Exo 2.
   ========================================================================== */

:root {
  /* brand */
  --blue: #379AE6;
  --coral: #FD5859;
  --white: #FFFFFF;
  --dark: #16232E;

  /* derived surfaces (dark neutral, layered) */
  --bg: #0E1720;          /* page base: dark neutral deepened */
  --bg-2: #16232E;        /* brand dark: raised sections */
  --bg-3: #1C2C3A;        /* elevated cards */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.62);
  --blue-soft: rgba(55, 154, 230, 0.14);

  /* fluid type scale (official clamp values from design-tokens.json) */
  --fs-hero: clamp(2.5rem, calc(1.972rem + 2.254vw), 4rem);
  --fs-h1: clamp(2rem, calc(1.648rem + 1.502vw), 3rem);
  --fs-h2: clamp(1.5rem, calc(1.324rem + 0.751vw), 2rem);
  --fs-h3: clamp(1.25rem, calc(1.162rem + 0.376vw), 1.5rem);
  --fs-cta: clamp(1.125rem, calc(1.081rem + 0.188vw), 1.25rem);

  --font-display: 'Bruno Ace', 'Exo 2', sans-serif;
  --font-body: 'Exo 2', system-ui, sans-serif;

  /* spacing tokens (4px base) */
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  --radius-btn: 8px;
  --radius-card: 12px;
  --container: 72.5rem; /* 1160px */
}

*, *::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-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }

::selection { background: var(--blue); color: var(--white); }

/* --- focus ring: 2px component-color inner + 2px white gap + 2px outer (token recipe) --- */
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--blue),
    0 0 0 4px var(--bg),
    0 0 0 6px var(--white);
  border-radius: var(--radius-btn);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 var(--sp-4);
}

/* small 2x2 pixel cluster used as a section mark */
.pix {
  flex: none;
  width: 14px;
  height: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.pix i { background: var(--blue); }
.pix i:nth-child(2) { background: rgba(55, 154, 230, 0.45); }
.pix i:nth-child(3) { background: rgba(55, 154, 230, 0.25); }
.pix i:nth-child(4) { background: var(--coral); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--raised { background: var(--bg-2); border-block: 1px solid var(--line); }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-cta);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(253, 88, 89, 0.28);
}
.btn--primary:hover {
  background: #ff6b6c;
  box-shadow: 0 12px 34px rgba(253, 88, 89, 0.38);
}
.btn--primary:focus-visible {
  box-shadow:
    0 0 0 2px var(--coral),
    0 0 0 4px var(--bg),
    0 0 0 6px var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 23, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

/* Official lockup in the header (owner decision, 2026-08-20). The file is 1000x250;
   clear space >= the cursor-icon height (~30% of logo height) is given by the nav bar. */
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(180px, 18vw, 232px); height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
/* 18.72px bold: white on coral passes WCAG large-text contrast (3.13:1 >= 3:1) */
.nav__cta { margin-left: 0.5rem; min-height: 40px; padding: 0.45rem 1.15rem; font-size: 1.17rem; }

@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }
}
/* below 520px the logo and the CTA no longer share a row; the hero repeats the CTA right there */
@media (max-width: 520px) {
  .nav__cta { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(55, 154, 230, 0.14), transparent 60%),
    var(--bg);
}

#pixelfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  margin-block: auto;
  padding-block: 8rem 3rem;
  pointer-events: none;
}
.hero__inner a, .hero__inner .btn { pointer-events: auto; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(55, 154, 230, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: var(--sp-8);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
  font-size: var(--fs-hero);
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--blue); }

.hero__lead {
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--text-dim);
  margin-top: var(--sp-6);
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--sp-8);
}

.hero__hint {
  position: absolute;
  right: 2rem;
  bottom: 10.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  pointer-events: none;
}
.hero__hint svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 1100px) { .hero__hint { display: none; } }

/* trust numbers strip anchored at hero bottom */
.trust {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(14, 23, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1.4rem;
}
.trust__item { text-align: left; }
.trust__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.trust__num em { font-style: normal; color: var(--blue); }
.trust__label { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.3rem; }
@media (max-width: 640px) {
  .trust__inner { grid-template-columns: 1fr; gap: 0.9rem; }
  .trust__item { display: flex; align-items: baseline; gap: 0.7rem; }
  .trust__label { margin-top: 0; }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */

.manifesto .container { max-width: 56rem; }
.manifesto h2 {
  font-size: var(--fs-h1);
  color: var(--white);
  text-wrap: balance;
}
.manifesto h2 .accent { color: var(--coral); }
.manifesto__body {
  margin-top: var(--sp-8);
  font-size: 1.125rem;
  color: var(--text-dim);
}
.manifesto__body strong { color: var(--text); font-weight: 600; }

.manifesto__sig {
  margin-top: var(--sp-8);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.manifesto__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, var(--blue), #1f6db0);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  flex: none;
}
.manifesto__sig b { display: block; font-size: 1.05rem; }
.manifesto__sig span { color: var(--text-dim); font-size: 0.9rem; }

/* ==========================================================================
   Services
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  align-items: stretch;
}
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 154, 230, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.card--featured { border-color: rgba(55, 154, 230, 0.55); }
.card__flag {
  position: absolute;
  top: -13px;
  left: var(--sp-8);
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}

.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid rgba(55, 154, 230, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-6);
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--blue); }

.card__price {
  /* Exo 2, not Bruno Ace: the display face is uppercase-only and banned under 24px */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: var(--sp-4) 0 0.35rem;
}
.card__price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.card__body { color: var(--text-dim); font-size: 0.975rem; flex: 1; }

.card__list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-size: 0.925rem;
  color: var(--text-dim);
}
.card__list li { display: flex; gap: 0.6rem; align-items: baseline; }
.card__list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--blue);
  transform: translateY(-1px);
}

.services__note {
  margin-top: var(--sp-8);
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: center;
}

/* ==========================================================================
   Process
   ========================================================================== */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: var(--sp-6) 0 0;
  border-top: 2px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.6rem;
}
.step::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 46px; height: 2px;
  background: var(--blue);
}
.step p { color: var(--text-dim); font-size: 0.95rem; }
.step__meta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
}

/* ==========================================================================
   Works
   ========================================================================== */

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}
@media (max-width: 940px) { .works { grid-template-columns: 1fr; } }

.work {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.work:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 154, 230, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

/* CSS-drawn browser mockup, strictly brand palette */
.mock {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.mock__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__bar i:first-child { background: var(--coral); }
.mock__url {
  margin-left: 8px;
  height: 14px;
  flex: 1;
  max-width: 150px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}
.mock__view { padding: 18px 18px 22px; display: grid; gap: 9px; }
.mock__hero { height: 54px; border-radius: 6px; background: linear-gradient(120deg, rgba(55, 154, 230, 0.55), rgba(55, 154, 230, 0.12)); position: relative; overflow: hidden; }
.mock__hero::after {
  content: "";
  position: absolute;
  left: 12px; top: 14px;
  width: 42%; height: 8px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  box-shadow: 0 14px 0 -4px rgba(255, 255, 255, 0.35);
}
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mock__cell { height: 34px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.mock__cta { width: 84px; height: 16px; border-radius: 8px; background: var(--coral); opacity: 0.9; }

.work__body { padding: var(--sp-6) var(--sp-8) var(--sp-8); }
.work__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.work__body h3 { margin-top: 0.5rem; }
.work__body p { color: var(--text-dim); font-size: 0.95rem; }
.work__metric {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.work__metric b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}
.work__metric span { font-size: 0.85rem; color: var(--text-dim); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.quote__stars { display: flex; gap: 3px; }
.quote__stars svg { width: 16px; height: 16px; fill: var(--blue); }
.quote__text { font-size: 1rem; color: var(--text); font-style: italic; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 0.85rem; }
.quote__ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1f6db0);
}
.quote:nth-child(2) .quote__ava { background: linear-gradient(135deg, #2c81c4, #174f80); }
.quote:nth-child(3) .quote__ava { background: linear-gradient(135deg, #4aa8ee, #2c81c4); }
.quote__who b { display: block; font-size: 0.95rem; }
.quote__who span { font-size: 0.82rem; color: var(--text-dim); }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(253, 88, 89, 0.16), transparent 65%),
    radial-gradient(900px 420px at 15% -30%, rgba(55, 154, 230, 0.12), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.cta .container { max-width: 52rem; text-align: center; }
.cta h2 { font-size: var(--fs-h1); color: var(--white); }
.cta p {
  margin-top: var(--sp-6);
  color: var(--text-dim);
  font-size: 1.125rem;
}
.cta__actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta__mail { font-size: 0.95rem; color: var(--text-dim); margin-top: var(--sp-6); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-block: var(--sp-16) var(--sp-10); }
.footer__logo { width: min(600px, 100%); margin-inline: auto; }
.footer__logo img { width: 100%; height: auto; }

.footer__tagline {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: var(--sp-6);
  letter-spacing: 0.04em;
}
.footer__meta {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Cursor glow (desktop, fine pointer only)
   ========================================================================== */

.cursor-glow {
  position: fixed;
  z-index: 40;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(253, 88, 89, 0.85);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  opacity: 0;
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-press { width: 16px; height: 16px; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__eyebrow .dot { animation: none; }
  .btn, .card, .work { transition: none; }
  .cursor-glow { display: none; }
}
