/* ============================================================
   BreakPoint N.V — Global Stylesheet
   Design language: dark "debugger" aesthetic — aurora glows,
   grain, mono accents, bento grids, editor motifs.
   ============================================================ */

:root {
  --bg: #05070b;
  --bg-soft: #090c12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #3b9dff;
  --accent-2: #7dd0ff;
  --accent-strong: #1479e8;
  --accent-soft: rgba(59, 157, 255, 0.12);
  --bp-signal: #4ade80;
  --text: #eef2f7;
  --muted: #8b95a5;
  --radius: 18px;
  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

/* ---------- Scrollbars ----------
   The OS default is a wide light bar with stepper arrows, which reads as a
   Windows widget bolted onto a dark page.

   `scrollbar-width` only offers thin (10px) or auto (15px) — no value in
   between — and Chrome ignores the ::-webkit- rules on any element where it
   is set. So Firefox gets the standard properties here, and the @supports
   block below hands Chrome/Safari back to the pseudo-elements, where the
   width is an exact number. */
html,
body,
textarea,
[class*="scroll"],
.example-overlay {
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

@supports selector(::-webkit-scrollbar) {
  html,
  body,
  textarea,
  [class*="scroll"],
  .example-overlay {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  ::-webkit-scrollbar {
    width: 18px;
    height: 18px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  /* The transparent border plus content-box clip is what makes the thumb read
     as a floating pill rather than a full-width slab. */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
  }

  /* Neutral lift on hover — no accent colour. */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
    background-clip: content-box;
  }

  /* Stepper arrows. Chrome hides these once ::-webkit-scrollbar is styled,
     so they have to be drawn back in — chevrons rather than the OS triangles. */
  ::-webkit-scrollbar-button:single-button {
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border-radius: 5px;
  }

  ::-webkit-scrollbar-button:single-button:hover {
    background-color: rgba(255, 255, 255, 0.07);
  }

  ::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E");
  }

  ::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }

  ::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E");
  }

  ::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
  }

  ::-webkit-scrollbar-corner {
    background: transparent;
  }

  /* The dropdown panel is small: keep it slim and arrow-free. */
  .bp-select-menu::-webkit-scrollbar-button {
    display: none;
  }
}

body {
  position: relative;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aurora backdrop + faint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(59, 157, 255, 0.14), transparent 60%),
    radial-gradient(800px 600px at 90% 5%, rgba(125, 208, 255, 0.07), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(59, 157, 255, 0.08), transparent 65%);
  pointer-events: none;
}

/* Absolute, not fixed: the grid is anchored to the document, so it scrolls
   with the page instead of trailing the viewport.

   One layer spans the whole document and the mask does the grading — full
   strength through the hero, then easing to a low floor it holds all the way
   down. A mask that stops short of zero is what keeps the grid faintly
   present while scrolling; a second, dimmer layer would drift out of phase
   with this one and moire. */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 440px,
    rgba(0, 0, 0, 0.3) 920px,
    rgba(0, 0, 0, 0.3) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 440px,
    rgba(0, 0, 0, 0.3) 920px,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem 0.6rem 0.7rem;
  background: rgba(9, 12, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-brand img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.nav-brand .brand-break { color: var(--text); }
.nav-brand .brand-point { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 600;
  margin-left: 0.4rem;
}

/* dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  list-style: none;
  background: rgba(9, 12, 18, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.45rem;
  display: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

/* keep hover alive over the gap between trigger and panel */
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(125, 208, 255, 0.25) inset, 0 10px 30px rgba(20, 121, 232, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(125, 208, 255, 0.4) inset, 0 14px 40px rgba(20, 121, 232, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6.5rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

/* Matches the breakpoint marker in the editor gutter — same dot, same size. */
.hero-tag .dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bp-signal);
  box-shadow: 0 0 10px var(--bp-signal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #9a6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 32rem;
  margin-bottom: 2.2rem;
}

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

/* ---------- Editor window ---------- */

.editor {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 21, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 157, 255, 0.05);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
}

.editor::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px 200px at 80% -20%, rgba(59, 157, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.editor-bar .light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.editor-bar .light:nth-child(1) { background: #ff5f57; }
.editor-bar .light:nth-child(2) { background: #febc2e; }
.editor-bar .light:nth-child(3) { background: #28c840; }

.editor-bar .filename {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.editor-body {
  padding: 1.1rem 0 1.3rem;
  overflow-x: auto;
}

.editor-body .line {
  display: flex;
  align-items: baseline;
  padding: 0 1.2rem 0 0;
  white-space: pre;
}

.editor-body .line .ln {
  width: 3.2rem;
  flex-shrink: 0;
  text-align: right;
  padding-right: 1.1rem;
  color: rgba(139, 149, 165, 0.45);
  user-select: none;
  position: relative;
}

.editor-body .line.bp {
  background: rgba(74, 222, 128, 0.07);
  box-shadow: inset 2px 0 0 var(--bp-signal);
}

.editor-body .line.bp .ln::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bp-signal);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.tok-kw { color: #79b8ff; }
.tok-fn { color: #b392f0; }
.tok-str { color: #85e89d; }
.tok-cm { color: #5a6577; font-style: italic; }
.tok-var { color: #ffab70; }
.tok-txt { color: #d7dee8; }

.editor .cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  transform: translateY(0.2em);
  background: var(--accent-2);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.editor-status {
  display: flex;
  gap: 1.4rem;
  padding: 0.5rem 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.72rem;
}

.editor-status .ok { color: #28c840; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 3.5rem;
  white-space: nowrap;
}

.marquee-inner span i {
  font-style: normal;
  color: var(--accent);
  padding-right: 3.5rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 3.2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Bento services ---------- */

/* Six tracks so cards can be thirds, halves or two-thirds and every row
   still ends flush with the container. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card.wide {
  grid-column: span 4;
}

.service-card.half {
  grid-column: span 3;
}

/* cursor spotlight (JS sets --mx / --my) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 320px at var(--mx, 50%) var(--my, 50%), rgba(59, 157, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(59, 157, 255, 0.45);
  transform: translateY(-4px);
}

.service-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 157, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Index badges ----------
   The small mono counters that label service cards, why-items and feature
   cards. One chip style so they read as the same device everywhere. */

.service-card .card-num,
.why-item .num,
.feature-item .feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 9px;
  /* Glass chip: a white fall-off over a cool tint reads as a lit surface, the
     inset highlight catches light on the top edge, the drop lifts it off the
     card. Keeps a trace of brand blue at rest so hover is a lift, not a hue
     change out of nowhere. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.022)),
    rgba(59, 157, 255, 0.07);
  border: 1px solid rgba(126, 173, 227, 0.17);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(198, 218, 242, 0.88);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.service-card:hover .card-num,
.why-item:hover .num,
.feature-item:hover .feature-num {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(59, 157, 255, 0.34), rgba(59, 157, 255, 0.12));
  border-color: rgba(59, 157, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 12px rgba(59, 157, 255, 0.28);
  color: #d8ecff;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.82rem;
}

.service-link::after {
  content: " ->";
  transition: letter-spacing 0.2s;
}

.service-card:hover .service-link::after {
  letter-spacing: 0.15em;
}

.service-card.mini-cta {
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 157, 255, 0.12), rgba(154, 107, 255, 0.08));
  border-color: rgba(59, 157, 255, 0.3);
}

.service-card.mini-cta h3 {
  font-size: 1.15rem;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.why-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: border-color 0.3s;
}

.why-item:hover {
  border-color: var(--border-strong);
}

/* Block-level so the margin below is exact — an inline-flex badge would pick
   up the parent's leading. The badge frame replaces the old [01] brackets. */
.why-item .num {
  display: flex;
  width: fit-content;
  margin-bottom: 0.95rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Process (debugger timeline) ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.6rem 0.4rem 0 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--border));
}

.process-step::after {
  counter-increment: step;
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(59, 157, 255, 0.6);
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border: 1px solid rgba(59, 157, 255, 0.35);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(59, 157, 255, 0.18), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(154, 107, 255, 0.12), transparent 60%),
    var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.cta-band .price-line {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.5rem;
}

.contact-info h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.contact-info h3 + p {
  margin-bottom: 1.6rem;
}

.contact-info p {
  color: var(--text);
  font-size: 1.02rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

/* A hair lighter than the card rather than darker, so the fields sit on the
   panel instead of punching holes through it. */
/* A hair lighter than the card rather than darker, so the fields sit on the
   panel instead of punching holes through it. The label sets mono/uppercase,
   so each control resets its own typography. */
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form .bp-select-trigger {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover,
.contact-form .bp-select-trigger:hover {
  border-color: var(--border-strong);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.contact-form .bp-select-trigger:focus-visible,
.contact-form .bp-select.is-open .bp-select-trigger {
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.15);
}

.contact-form ::placeholder {
  color: rgba(139, 149, 165, 0.65);
}

/* Autofilled fields.
   Chrome paints these with its own pale background through a UA rule that
   `background-color` can't touch, so we do two things: park the background
   transition ~3 years out (Chrome animates into the autofill colour, and a
   transition that never arrives means it never lands), and flood the field
   with an inset shadow in case a build applies the colour outright. The
   shadow has to be opaque, so #111317 is the field's own translucent fill
   already composited over the card — sampled, not guessed. */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form select:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px #111317 inset;
  box-shadow: 0 0 0 100px #111317 inset;
  transition: background-color 100000000s ease-in-out 0s, color 100000000s ease-in-out 0s;
}

/* Keep the focus ring visible over the flood shadow. */
.contact-form input:-webkit-autofill:focus,
.contact-form select:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #111317 inset, 0 0 0 3px rgba(59, 157, 255, 0.15);
  box-shadow: 0 0 0 100px #111317 inset, 0 0 0 3px rgba(59, 157, 255, 0.15);
}

/* Firefox / spec selector. */
.contact-form input:autofill,
.contact-form select:autofill,
.contact-form textarea:autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 100px #111317 inset;
  filter: none;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  justify-self: start;
}

/* ---------- Custom select ----------
   Replaces the OS option list, which can't be themed. main.js builds the
   listbox; the real <select> stays for form submission. */

.bp-select {
  position: relative;
}

/* Hidden from sight and from the tab order, but still submitted. */
.bp-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.bp-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.bp-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}

.bp-select.is-open .bp-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.bp-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 15.5rem;
  overflow-y: auto;
  background: #0c1017;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  /* Firefox. Same split as the global scrollbars: the @supports block hands
     Chrome/Safari to the pseudo-elements so this small panel can run a
     narrower bar than the page does. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

@supports selector(::-webkit-scrollbar) {
  .bp-select-menu {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  .bp-select-menu::-webkit-scrollbar {
    width: 8px;
  }

  .bp-select-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
  }

  .bp-select-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
  }

  .bp-select-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.34);
    background-clip: content-box;
  }
}

.bp-select.is-open .bp-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bp-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.bp-select-option.is-active {
  background: var(--accent-soft);
}

.bp-select-option.is-selected {
  color: var(--accent-2);
}

.bp-select-option.is-selected::after {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--tick) center / contain no-repeat;
  mask: var(--tick) center / contain no-repeat;
}

.bp-select-option {
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 0;
  background: rgba(9, 12, 18, 0.6);
}

/* Hairline of accent along the very top edge. */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 157, 255, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
  gap: 2rem 2.5rem;
  padding-bottom: 3.25rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 24rem;
  margin-top: 0.9rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid rgba(59, 157, 255, 0.35);
  padding-bottom: 0.2rem;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}

.footer-cta:hover {
  gap: 0.7rem;
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text);
  font-size: 0.93rem;
  opacity: 0.78;
  transition: color 0.2s, opacity 0.2s;
}

.footer-col a:hover {
  color: var(--accent-2);
  opacity: 1;
}

/* Contact column: a small mono label above each value. */
.footer-contact ul {
  gap: 1.05rem;
}

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 149, 165, 0.7);
  margin-bottom: 0.2rem;
}

.footer-static {
  font-size: 0.93rem;
  color: var(--text);
  opacity: 0.78;
}

/* status-bar strip */
.footer-bottom {
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.8);
  padding: 0.85rem 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  margin-right: 0.1rem;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-sep {
  color: rgba(139, 149, 165, 0.4);
}

.footer-tagline {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  /* JS reserves the finished width here so the row can't reflow mid-type. */
  justify-content: flex-end;
}

.type-accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(59, 157, 255, 0.45);
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 0.12em;
  background: var(--accent);
  transform: translateY(0.1em);
  opacity: 0;
}

/* Only shown once JS takes over the line. */
.footer-tagline.is-typing .type-caret,
.footer-tagline.is-typed .type-caret {
  opacity: 1;
  animation: caret-blink 1.05s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---------- Service detail pages ---------- */

.page-hero {
  position: relative;
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1.3rem;
}

.page-hero .breadcrumb a:hover {
  color: var(--accent-2);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 42rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

/* An accent rail on the left edge, drawn only on hover — replaces the
   coloured bullet that used to sit in front of every heading. */
.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--accent), rgba(59, 157, 255, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature-item:hover::before {
  transform: scaleY(1);
}

.feature-item .feature-num {
  display: flex;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.91rem;
}

/* ---------- Portfolio / projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 157, 255, 0.45);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(300px 160px at 70% 20%, rgba(59, 157, 255, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.91rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.project-tags span {
  font-family: var(--font-mono);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 157, 255, 0.25);
  color: var(--accent-2);
  font-size: 0.7rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Live example showcase ---------- */

.examples-lead {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 0.6rem;
  max-width: 560px;
}

/* One example per service: a browser window on the left, the pitch on the
   right. The window holds a scaled-down live iframe of the real prototype. */
.example-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  min-height: 480px;
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.example-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 72% 0%, rgba(59, 157, 255, 0.12), transparent 68%);
  pointer-events: none;
}

/* The second selector outranks `.reveal.visible`, which otherwise pins the
   transform back to translateY(0) and swallows the lift. */
.example-showcase:hover,
.example-showcase.reveal.visible:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 157, 255, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.example-window {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #080b12;
  border-right: 1px solid var(--border);
}

.example-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
}

.chrome-dots {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.cdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.cdot.red    { background: #ff5f57; }
.cdot.yellow { background: #febc2e; }
.cdot.green  { background: #28c840; }

.chrome-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  overflow: hidden;
}

.chrome-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.chrome-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #28c840;
}

.chrome-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.75);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.example-preview {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Lays out at twice the container width so the prototype renders its desktop
   breakpoint, then scales back down to fit. */
.example-preview-frame {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}

.example-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 9, 16, 0.8));
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.example-showcase:hover .example-preview::after {
  opacity: 1;
}

.example-preview-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(59, 157, 255, 0.4);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}

.example-preview-hint svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.example-showcase:hover .example-preview-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.example-detail {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.example-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(59, 157, 255, 0.1);
  border: 1px solid rgba(59, 157, 255, 0.25);
  margin-bottom: 0.3rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s;
}

.example-icon svg {
  width: 26px;
  height: 26px;
}

.example-showcase:hover .example-icon {
  transform: translateY(-3px);
  border-color: rgba(59, 157, 255, 0.55);
}

.example-detail h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.example-detail p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.example-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 157, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.example-open-btn {
  align-self: flex-start;
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 157, 255, 0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, gap 0.2s;
}

.example-showcase:hover .example-open-btn {
  gap: 0.7rem;
  background: rgba(59, 157, 255, 0.18);
  border-color: rgba(59, 157, 255, 0.6);
}

.examples-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.5rem;
}

/* ---------- Example full-screen overlay ---------- */

.example-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: rgba(5, 7, 11, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.example-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Reads as real browser chrome: dots left, address centred, actions right. */
.overlay-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.15rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.overlay-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 157, 255, 0.45), transparent);
}

.overlay-dots {
  display: flex;
  gap: 0.4rem;
  justify-self: start;
  padding-left: 0.15rem;
}

.overlay-urlbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.overlay-lock {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #4ade80;
  opacity: 0.85;
}

.overlay-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(214, 226, 240, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
}

.overlay-new-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(59, 157, 255, 0.2), rgba(59, 157, 255, 0.07));
  border: 1px solid rgba(59, 157, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.overlay-new-tab svg {
  width: 14px;
  height: 14px;
}

.overlay-new-tab:hover {
  color: #d8ecff;
  border-color: rgba(59, 157, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 14px rgba(59, 157, 255, 0.3);
}

.overlay-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(214, 226, 240, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.overlay-close svg {
  width: 15px;
  height: 15px;
}

/* Red on hover, the way a window close button behaves. */
.overlay-close:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 77, 94, 0.3), rgba(255, 77, 94, 0.1));
  border-color: rgba(255, 77, 94, 0.45);
}

@media (max-width: 760px) {
  .overlay-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.6rem 0.8rem;
  }

  .overlay-dots {
    display: none;
  }

  .overlay-new-tab span {
    display: none;
  }

  .overlay-new-tab {
    padding: 0.48rem 0.7rem;
  }
}

.overlay-iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: #fff;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.example-overlay.is-open .overlay-iframe {
  transform: none;
}

/* ---------- Pricing ---------- */

.page-tabs {
  display: flex;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 3rem;
}

.page-tabs button {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.page-tabs button:hover {
  color: var(--text);
}

.page-tabs button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 6px 20px rgba(20, 121, 232, 0.35);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* monthly / yearly toggle */
.billing-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.billing-toggle button:hover {
  color: var(--text);
}

.billing-toggle button.active {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: calc(0.5rem - 1px) calc(1.2rem - 1px);
}

.save-badge {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(40, 200, 64, 0.12);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.3);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* dual price display driven by the toggle */
.price .p-m,
.price .p-y {
  display: block;
}

.price .p-y {
  display: none;
}

.yearly .price .p-m {
  display: none;
}

.yearly .price .p-y {
  display: block;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.8rem;
  max-width: 780px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1.35rem;
  transition: border-color 0.25s;
}

.faq details:hover,
.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.7rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

/* Two tiers would leave a hole in a three-track grid, so they take half each
   and the row stays flush. Capped so the cards don't stretch absurdly wide. */
.pricing-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
}

.pricing-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.3s, transform 0.3s;
}

.price-card:hover {
  border-color: rgba(59, 157, 255, 0.45);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: rgba(59, 157, 255, 0.5);
  background:
    radial-gradient(400px 220px at 50% 0%, rgba(59, 157, 255, 0.14), transparent 65%),
    var(--surface);
}

.price-card .plan-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 157, 255, 0.3);
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card .price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-top: 0.3rem;
}

.price-card > p {
  color: var(--muted);
  font-size: 0.93rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  flex-grow: 1;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--text);
  font-size: 0.92rem;
  opacity: 0.9;
}

.check-list li::before {
  content: "✓";
  color: #28c840;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.price-card .btn {
  justify-content: center;
}

.pricing-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-inner,
  .hero-tag .dot,
  .editor .cursor {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 950px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Two-up: every card is half a row, wide cards take the whole one. */
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .service-card.half {
    grid-column: span 1;
  }

  .service-card.wide {
    grid-column: span 2;
  }

  .feature-list,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stack the showcase; the preview keeps its 2x-and-scale-down trick, so a
     16/9 box is about one screen of the prototype. */
  .example-showcase {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .example-window {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .example-preview {
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .why-grid,
  .process-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Brand spans the top row, the three link columns sit under it. */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .pricing-grid,
  .pricing-grid.cols-2,
  .pricing-grid.cols-3,
  .pricing-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(9, 12, 18, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: none;
    padding: 0.8rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    text-align: center;
  }

  /* dropdown becomes an inline list inside the mobile menu */
  .dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0.4rem;
  }

  .dropdown a {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.4rem 0.85rem;
  }

  .has-dropdown > a::after {
    content: "";
  }

  .has-dropdown::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .bento,
  .feature-list,
  .projects-grid,
  .why-grid,
  .process-grid,
  .stats-strip,
  .pricing-grid,
  .pricing-grid.cols-2,
  .pricing-grid.cols-3,
  .pricing-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.wide,
  .service-card.half {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom .container {
    justify-content: flex-start;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .cta-band {
    padding: 2.5rem 1.75rem;
  }

  /* tabs and billing toggle must never push the page sideways */
  .page-tabs,
  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .page-tabs button {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.5rem;
    font-size: 0.76rem;
    white-space: normal;
    line-height: 1.3;
  }

  .billing-toggle button {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    white-space: normal;
  }

  .billing-toggle button.active {
    padding: calc(0.5rem - 1px) calc(0.6rem - 1px);
  }

  .save-badge {
    font-size: 0.56rem;
    padding: 0.1rem 0.35rem;
  }
}
