/* ==========================================================================
   BestWebDev — bestwebdev.uk
   Static one-page site. Vanilla CSS, no frameworks.
   --------------------------------------------------------------------------
   Contents
   01. Design tokens (custom properties)
   02. Reset & base
   03. Typography & links
   04. Layout: containers, sections, grids
   05. Buttons
   06. Section headers, eyebrows, chips
   07. Header & navigation
   08. Hero & app-window visual
   09. Problems section
   10. Services section
   11. What we build (dark section)
   12. Technologies & capabilities
   13. How we work (process)
   14. About
   15. CTA band
   16. Contact & form
   17. Footer
   18. Reveal-on-scroll animations
   19. Sub-pages (privacy, terms, Command Center, thanks)
   20. Motion & accessibility preferences
   ========================================================================== */

/* Self-hosted fonts (latin subset, SIL Open Font License) — no requests to Google */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   01. Design tokens
   --------------------------------------------------------------------------
   Palette: deep navy ink for text and dark sections, one electric blue as
   the primary accent with a violet partner used only in gradients. Light,
   slightly cool backgrounds keep the consultancy feel.
   -------------------------------------------------------------------------- */

:root {
  /* Ink (dark navy scale) */
  --ink-950: #060c18;
  --ink-900: #0b1526;
  --ink-800: #101e33;
  --ink-700: #182b47;
  --ink-600: #22395c;

  /* Text on light */
  --text: #33415c;
  --text-strong: #101e33;
  --text-muted: #5d6d87;

  /* Text on dark */
  --text-on-dark: #ccd9ec;
  --text-on-dark-strong: #f1f5fc;
  --text-on-dark-muted: #97a9c6;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft-2: #edf2f9;
  --bg-on-dark: rgba(255, 255, 255, 0.04);

  /* Lines & borders */
  --line: #e2e9f3;
  --line-strong: #ccd6e4;
  --line-on-dark: rgba(255, 255, 255, 0.09);

  /* Accent */
  --accent: #2563eb;
  --accent-strong: #1b4fd8;
  --accent-soft: #e9effd;
  --accent-on-dark: #8fb2ff;
  --violet: #7c3aed;
  --violet-soft: #f0eafd;
  --grad-accent: linear-gradient(135deg, #2563eb 0%, #6d3ff0 100%);

  /* Status */
  --success: #0e9f6e;

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", "Inter", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.05),
    0 2px 8px rgba(11, 21, 38, 0.06);
  --shadow-md: 0 4px 10px rgba(11, 21, 38, 0.06),
    0 12px 32px rgba(11, 21, 38, 0.1);
  --shadow-lg: 0 8px 20px rgba(11, 21, 38, 0.08),
    0 24px 60px rgba(11, 21, 38, 0.16);

  /* Rhythm */
  --container: 1140px;
  --gutter: 24px;
  --section-pad: clamp(4rem, 9vw, 6.5rem);
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
}

/* --------------------------------------------------------------------------
   03. Typography & links
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw + 1rem, 3.9rem);
}

h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.9rem, 2.6rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  max-width: 66ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: rgba(126, 166, 255, 0.7);
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   04. Layout: containers, sections, grids
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

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

.section--alt {
  background: var(--bg-soft);
}

.section--dark {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(125, 80, 240, 0.1), transparent 55%),
    var(--ink-900);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark-strong);
}

.section--dark p {
  color: var(--text-on-dark);
}

/* Anchor offset for the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --------------------------------------------------------------------------
   05. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.38);
}

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

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

/* Ghost variant on dark backgrounds */
.section--dark .btn--ghost,
.site-footer .btn--ghost,
.hero .btn--ghost {
  color: var(--text-on-dark-strong);
  border-color: rgba(255, 255, 255, 0.28);
}

.section--dark .btn--ghost:hover,
.site-footer .btn--ghost:hover,
.hero .btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.36);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.0625rem;
}

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

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* --------------------------------------------------------------------------
   06. Section headers, eyebrows, chips
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "//";
  color: var(--accent);
  opacity: 0.55;
}

.section--dark .eyebrow {
  color: var(--accent-on-dark);
}

.section--dark .eyebrow::before {
  color: var(--accent-on-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section--dark .section-head p:not(.eyebrow) {
  color: var(--text-on-dark-muted);
}

/* Small pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.chip--mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.section--dark .chip {
  background: var(--bg-on-dark);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
}

.section--dark .chip--mono {
  color: #b3c3dd;
}

/* --------------------------------------------------------------------------
   07. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11, 21, 38, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-strong);
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.35));
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__name span {
  color: var(--accent);
}

/* Desktop nav */
.site-nav {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.site-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.965rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-cta .btn {
  padding: 11px 22px;
  font-size: 0.94rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Hidden on desktop — declared after the base style so it always wins */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(11, 21, 38, 0.12);
  padding: 14px var(--gutter) 30px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 13px 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a.is-active {
  color: var(--accent);
}

.mobile-menu .btn {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   08. Hero & app-window visual
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% -12%, rgba(37, 99, 235, 0.22), transparent 62%),
    radial-gradient(800px 460px at -8% 108%, rgba(125, 80, 240, 0.14), transparent 58%),
    var(--ink-900);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7rem);
}

/* Subtle blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1200px 700px at 60% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 60% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero .eyebrow {
  color: var(--accent-on-dark);
}

.hero h1 {
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #6ea8ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.3rem);
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.hero__note .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-on-dark-muted);
  opacity: 0.6;
}

.hero__note strong {
  color: var(--text-on-dark);
  font-weight: 500;
}

/* --- App window visual ------------------------------------------------- */

.hero__visual {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.window {
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03),
    24px -18px 60px rgba(37, 99, 235, 0.14);
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.window__dots {
  display: flex;
  gap: 6px;
}

.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window__dots i:first-child {
  background: rgba(255, 138, 128, 0.75);
}

.window__dots i:nth-child(2) {
  background: rgba(255, 205, 112, 0.75);
}

.window__dots i:nth-child(3) {
  background: rgba(108, 216, 158, 0.75);
}

.window__title {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

/* Mini stat row */
.window__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 12px 13px;
}

.stat-tile__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9bad4;
  margin-bottom: 6px;
}

.stat-tile__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-tile__value em {
  font-style: normal;
  color: #6ee7a8;
  font-size: 0.72rem;
  margin-left: 6px;
  vertical-align: 2px;
}

.stat-tile__value em.down {
  color: var(--accent-on-dark);
}

/* Chart + code split */
.window__split {
  display: grid;
  gap: 12px;
}

@media (min-width: 520px) {
  .window__split {
    grid-template-columns: 1.1fr 1fr;
  }
}

.chart-panel,
.code-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 13px 14px;
}

.panel__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9bad4;
  margin-bottom: 10px;
}

.chart-panel svg {
  width: 100%;
  height: auto;
}

.code-panel code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--text-on-dark);
}

.code-panel .k {
  color: #93b4ff;
}

.code-panel .fn {
  color: #c4b5fd;
}

.code-panel .ok {
  color: #6ee7a8;
}

.code-panel .dim {
  color: var(--text-on-dark-muted);
}

/* Floating status chips */
.float-chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: rgba(16, 30, 51, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-strong);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}

@media (min-width: 640px) {
  .float-chip {
    display: inline-flex;
  }
}

.float-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex: none;
}

.float-chip--1 {
  top: -18px;
  right: 22px;
  animation: chip-float 7s ease-in-out infinite;
}

.float-chip--2 {
  bottom: -18px;
  left: 30px;
  animation: chip-float 8s ease-in-out 1.2s infinite;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* --------------------------------------------------------------------------
   09. Problems section
   -------------------------------------------------------------------------- */

.problems-list {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .problems-list {
    grid-template-columns: 1fr 1fr;
  }

  .problem-card--wide {
    grid-column: 1 / -1;
  }
}

.problem-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.problem-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.problem-card__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.problem-card p {
  font-size: 1.02rem;
  color: var(--text-strong);
  font-weight: 500;
  max-width: none;
}

.problem-card p span {
  display: block;
  font-weight: 400;
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Resolution panel under the cards */
.resolution {
  margin-top: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(37, 99, 235, 0.07), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .resolution {
    grid-template-columns: 1.5fr auto;
  }
}

.resolution h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.resolution p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Services section
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.service-card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(60, 60, 235, 0.28);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.99rem;
  margin-bottom: 16px;
}

.service-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.service-card__list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  white-space: nowrap;
}

.service-card__message {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-strong);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.service-card__message svg {
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

/* "Not sure" tile completes the 3x2 grid and keeps the section honest */
.service-card--cta {
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--bg-soft);
  box-shadow: none;
}

.service-card--cta h3 {
  margin-bottom: 8px;
}

.service-card--cta p {
  color: var(--text-muted);
  font-size: 0.99rem;
}

.service-card--cta .link-arrow {
  margin-top: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.link-arrow svg {
  transition: transform 0.18s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. What we build (dark section)
   -------------------------------------------------------------------------- */

.build-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.build-card {
  position: relative;
  background: var(--bg-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease,
    background-color 0.22s ease;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 166, 255, 0.4);
  background: rgba(255, 255, 255, 0.065);
}

.build-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.build-card:hover::after {
  opacity: 1;
}

.build-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(126, 166, 255, 0.17);
  border: 1px solid rgba(126, 166, 255, 0.34);
  color: var(--accent-on-dark);
  margin-bottom: 20px;
}

.build-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.build-card p {
  font-size: 0.99rem;
  margin-bottom: 18px;
}

.build-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.build-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-on-dark);
  color: #b3c3dd;
}

.build-note {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-on-dark-muted);
}

.build-note a {
  color: var(--accent-on-dark);
}

/* --------------------------------------------------------------------------
   12. Technologies & capabilities
   -------------------------------------------------------------------------- */

.tech-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.tech-group h3 {
  font-size: 1.02rem;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tech-group h3 svg {
  color: var(--accent);
}

.tech-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-group li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-strong);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tech-group li:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.tech-group li i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad-accent);
  flex: none;
}

.tech-footnote {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   13. How we work (process)
   -------------------------------------------------------------------------- */

.process-grid {
  display: grid;
  gap: 26px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(60, 60, 235, 0.26);
  margin-bottom: 15px;
}

.step h3 {
  font-size: 1.13rem;
  margin-bottom: 8px;
}

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

/* Connector line on desktop */
@media (min-width: 1024px) {
  .step::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 58px;
    right: -22px;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--line-strong) 0 6px,
      transparent 6px 12px
    );
  }

  .step:last-child::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   14. About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 920px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.about-point svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}

.about-point strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.99rem;
  margin-bottom: 2px;
}

.about-point span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.about-quote {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid;
  border-image: var(--grad-accent) 1;
  background: var(--bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.45;
}

.about-body p + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */

.cta-band__inner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(37, 99, 235, 0.1), transparent 62%),
    radial-gradient(700px 300px at 90% 100%, rgba(125, 80, 240, 0.09), transparent 62%),
    linear-gradient(135deg, #eef3fd 0%, #f6f0fe 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mask-image: radial-gradient(520px 280px at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(520px 280px at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.cta-band__inner > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3vw + 0.8rem, 2.7rem);
  margin-bottom: 14px;
}

.cta-band p {
  margin-inline: auto;
  color: #4c5b73;
  font-size: 1.1rem;
  max-width: 46em;
}

.cta-band .btn {
  margin-top: 30px;
}

.cta-band__pricing {
  margin-top: 22px;
  font-size: 0.95rem;
  color: #4c5b73;
}

/* --------------------------------------------------------------------------
   16. Contact & form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.contact-intro > p:not(.eyebrow) {
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-steps {
  margin-top: 28px;
  display: grid;
  gap: 0;
}

.contact-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-steps strong {
  display: block;
  color: var(--text-strong);
  font-size: 1rem;
  margin-bottom: 3px;
}

.contact-steps span {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.contact-steps__num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}

.contact-direct {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.contact-direct svg {
  flex: none;
  color: var(--accent);
}

.contact-direct a {
  font-weight: 600;
  word-break: break-all;
}

/* Form card */
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .form-row--pair {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field,
.form-row + .form-row,
.field + .form-row,
.form-row + .field {
  margin-top: 18px;
}

.field label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-strong);
}

/* Label row with a right-aligned counter */
.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.char-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.char-count.is-warn {
  color: #b45309;
}

.char-count.is-max {
  color: #dc2626;
}

.field label .opt {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235d6d87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #dc2626;
}

.field input:user-invalid:focus,
.field select:user-invalid:focus,
.field textarea:user-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.field .hint {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Honeypot — hidden from humans, visible to most spam bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn {
  margin-top: 26px;
}

.form-card__footnote {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-on-dark);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.96rem;
  max-width: 30em;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.87rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-on-dark);
}

/* --------------------------------------------------------------------------
   18. Reveal-on-scroll animations
   --------------------------------------------------------------------------
   Content is visible by default; JS adds .js-reveal to hide then animate it
   back in, so nothing is lost without JavaScript.
   -------------------------------------------------------------------------- */

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

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

/* --------------------------------------------------------------------------
   19. Sub-pages (privacy, terms, Command Center, thanks)
   -------------------------------------------------------------------------- */

.page {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page article {
  max-width: 760px;
}

.page h1 {
  font-size: clamp(2rem, 4vw + 0.6rem, 2.9rem);
  margin-bottom: 10px;
}

.page .page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 34px;
}

.page h2 {
  font-size: 1.4rem;
  margin: 38px 0 12px;
}

.page p + p {
  margin-top: 14px;
}

.page ul {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.page .back-home {
  margin-top: 44px;
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   20. Motion & accessibility preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

/* Footer: legal links and discreet product note */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-brand .footer-note {
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-brand .footer-note a {
  color: var(--text-on-dark);
}
