/* ============================================
   VPathing Enterprise LLC — Design System
   Modern dark theme · gradient accents · glassmorphism

   Palette conforms to brand sheet v1.0 (see /brand.html).
   ============================================ */

/* Self-hosted brand fonts — same families and weights previously pulled from
   Google Fonts, minus the two preconnects and the render-blocking stylesheet.
   IBM Plex Mono is declared here rather than per-page now that it is used
   site-wide for labels. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  /* ---- Brand source colours (brand sheet 04 · Color) ----
     Change these and the theme follows. */
  --brand-blue: #2f6bff;            /* Electric Blue — canonical */
  --brand-blue-bright: #4c86ff;     /* dark-background variant, per the kit */
  --brand-cyan: #22d3ee;            /* Cyan Node */
  --brand-ink: #0b1220;             /* Ink */
  --brand-paper: #f6f6f3;           /* Paper — light surfaces */

  /* Base surfaces — deep navy / near-black */
  --color-bg: var(--brand-ink);
  --color-bg-soft: #101a30;
  --color-surface: rgba(20, 30, 54, 0.72);
  --color-surface-solid: #131d34;
  --color-surface-2: #17233f;

  /* Borders & lines */
  --color-border: rgba(148, 163, 184, 0.14);
  --color-border-strong: rgba(148, 163, 184, 0.3);

  /* Text */
  --color-text: #e8edf7;
  --color-text-muted: #98a4bb;
  /* Lifted from #6b7895, which measured 3.89:1 on the card surface and failed
     WCAG AA. Pre-existing; corrected here since the palette was being measured. */
  --color-text-faint: #7d8cad;

  /* ---- Accents ----
     Text/link accents use the brightened variant: Electric Blue #2F6BFF sits at
     only 4.41:1 on Ink and fails WCAG AA, which is precisely why the kit ships
     #4C86FF for dark backgrounds (5.51:1). The canonical blue is still used
     where it is a *background* beneath white text. */
  --color-accent: var(--brand-blue-bright);
  --color-accent-strong: var(--brand-blue);
  --color-accent-2: var(--brand-cyan);
  --color-accent-hover: #7fb0ff;
  --color-accent-light: rgba(47, 107, 255, 0.14);

  /* Gradients — brand sheet 04 specifies 90° · #2F6BFF → #22D3EE.
     --grad-brand paints under text, so it uses the bright variant. */
  --grad-brand: linear-gradient(90deg, var(--brand-blue-bright) 0%, var(--brand-cyan) 100%);

  /* --grad-brand-strong sits *beneath* white text, which the sheet's ramp
     cannot carry: white on #22D3EE measures 1.81:1, and even the #2F6BFF end
     only reaches 4.50:1 — the AA threshold exactly, with nothing spare. The
     cyan end is what made the header button look washed out.

     These stops are the sheet's ramp walked down until the *whole* length
     clears AA, not just the ends: sampled every 10%, the worst point is
     5.21:1. Deeper stops score higher but drift further from the brand blue,
     so this is the shallowest correction that holds.

     Decorative gradients should keep using --grad-brand; this one is only for
     surfaces carrying white text. */
  --grad-brand-strong: linear-gradient(90deg, #2a62ea 0%, #1673a0 100%);

  /* Status */
  --color-success: #2dd4bf;
  --color-error: #fb7185;
  --color-badge-dev: #94a3b8;
  --color-badge-mvp: #2dd4bf;
  --color-badge-live: #34d399;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3.25rem;
  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --max-width: 72rem;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(76, 134, 255, 0.35), 0 12px 40px rgba(47, 107, 255, 0.28);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient orbs in the background */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  top: -18vh;
  left: -10vw;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at 30% 30%, rgba(47, 107, 255, 0.55), transparent 70%);
}
body::after {
  bottom: -22vh;
  right: -12vw;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at 70% 70%, rgba(34, 211, 238, 0.4), transparent 70%);
}

/* Keep all real content above the orbs */
.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(76, 134, 255, 0.35);
  color: #fff;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-4);
  z-index: 1001;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  left: var(--space-4);
  color: #fff;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========== Header ========== */
.site-header {
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-4) var(--space-5) var(--space-6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.logo-link:hover {
  text-decoration: none;
  color: var(--color-text);
}
.logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* 3.5rem = 56px, so a 2x display needs 112px of source. vpe-icon-header.png is
   rebuilt to 192px from the 1024px master (vpe-icon-dark.png) to cover it — the
   original 96px copy sufficed only for the old 2.4rem size. */
.logo-img {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--color-border-strong), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-img:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: var(--glow);
}

/* Header lockup — matches vpe-lockup-dark.svg and brand sheet 01:
   white "vpathing", cyan node slash, muted "enterprise_llc" stacked beneath.
   Set as real HTML rather than the kit's lockup SVG: an SVG loaded via <img>
   cannot see page webfonts and would fall back to Courier. */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #fff;
}

/* The cyan node, carried through from the mark */
.logo-slash {
  color: var(--brand-cyan);
}

/* Kept at the same fraction of .logo-name as before (0.6/1.15), which is what
   makes "enterprise_llc" track the width of "vpathing/" above it. Change one
   size without the other and the lockup stops lining up. */
.logo-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.835rem;
  letter-spacing: 0.115em;
  color: var(--color-text-muted);
}

/* Below 640px the mark plus "vpathing/" is enough; the sub-line would crowd
   the nav toggle. The mark still carries the brand, so nothing is lost.
   The mark and name also step down from their desktop sizes — at full size the
   lockup pushes the nav toggle off the row. */
@media (max-width: 640px) {
  .logo-sub {
    display: none;
  }
  .logo-img {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 11px;
  }
  .logo-name {
    font-size: 1.35rem;
  }
  .site-header {
    padding: var(--space-4) var(--space-4);
  }
}

/* Navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-list a:hover {
  color: var(--color-text);
  background: rgba(148, 163, 184, 0.1);
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-accent-light);
  box-shadow: inset 0 0 0 1px rgba(76, 134, 255, 0.3);
}
.nav-list a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .nav-list.is-open {
    display: flex;
  }
  .site-header {
    position: sticky;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

/* ========== Main / layout ========== */
.main {
  flex: 1 0 auto;
  min-height: 60vh;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: var(--space-16) 0 var(--space-16);
  position: relative;
}

.hero h1 {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, #a5c3ff 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .tagline {
  font-size: clamp(var(--text-lg), 2.4vw, var(--text-2xl));
  font-weight: 500;
  color: var(--color-text);
  margin: 0 auto var(--space-6);
  max-width: 38rem;
}

.hero .intro {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Eyebrow pill (decorative, optional) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  background: var(--color-accent-light);
  border: 1px solid rgba(76, 134, 255, 0.28);
  border-radius: 999px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grad-brand-strong);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.35);
}

/* Corner "New" (or similar) pill on an app tile. */
.app-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 2px 9px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #04231c;
  background: var(--color-badge-live);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(52, 211, 153, 0.4);
  pointer-events: none;
  z-index: 3;
}
@media (prefers-reduced-motion: no-preference) {
  .app-card-badge {
    animation: app-badge-pulse 2.2s ease-in-out infinite;
  }
  @keyframes app-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
  }
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(47, 107, 255, 0.5);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-accent-light);
  border-color: rgba(76, 134, 255, 0.5);
  color: var(--color-text);
  text-decoration: none;
}

/* ========== Sections ========== */
.section {
  padding: var(--space-12) 0;
}

.section-title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Page-title H1s carry a gradient */
h1.section-title {
  background: linear-gradient(120deg, #ffffff 0%, #a5c3ff 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-subtitle {
  margin: 0 0 var(--space-8);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 134, 255, 0.4);
  box-shadow: var(--shadow);
}
.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.service-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Process steps */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-8) var(--space-6);
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding-left: var(--space-12);
  counter-increment: step;
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--grad-brand-strong);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.4);
}

.process-list li strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.process-list li span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ========== App cards (portfolio) ========== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-6);
}

/* Status-grouped dashboard (All apps): each status is its own labeled block */
.apps-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.apps-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.apps-group-count {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.app-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 134, 255, 0.4);
  box-shadow: var(--shadow);
}
.app-card:hover::before {
  opacity: 1;
}

.app-card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

/* Clickable tile: the title anchor stretches over the whole card so clicking
   anywhere on a linked tile opens its page. Explicit links below stay on top. */
.app-card--linked .app-card-link {
  color: inherit;
  text-decoration: none;
}
.app-card--linked .app-card-link:hover {
  color: var(--color-accent);
}
.app-card--linked .app-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.app-card--linked:hover {
  cursor: pointer;
}
.app-card .app-links {
  position: relative;
  z-index: 2;
}

.app-card .app-description {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
}

.app-card .app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.badge--dev {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-badge-dev);
  border-color: rgba(148, 163, 184, 0.3);
}
.badge--mvp {
  background: rgba(45, 212, 191, 0.12);
  color: var(--color-badge-mvp);
  border-color: rgba(45, 212, 191, 0.35);
}
.badge--live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--color-badge-live);
  border-color: rgba(52, 211, 153, 0.35);
}
.badge--deployment {
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-accent-2);
  border-color: rgba(34, 211, 238, 0.35);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-2);
}
.app-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.app-links a::after {
  content: "→";
  transition: transform 0.15s ease;
}
.app-links a:hover::after {
  transform: translateX(3px);
}
.app-links .coming-soon {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
}

/* Filter controls (apps page) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  align-items: center;
}

.filters label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.filters input[type="search"],
.filters select {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: inherit;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-solid);
  color: var(--color-text);
  min-width: 12rem;
}
.filters input[type="search"]::placeholder {
  color: var(--color-text-faint);
}
.filters select option {
  background: var(--color-surface-solid);
  color: var(--color-text);
}
.filters input[type="search"]:focus,
.filters select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.apps-empty {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-muted);
}

/* ========== Contact form ========== */
.contact-form-wrap {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-solid);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-faint);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .form-actions {
  margin-top: var(--space-4);
}

.contact-form .form-message {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.contact-form .form-message.success {
  background: rgba(45, 212, 191, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.contact-form .form-message.error {
  background: rgba(251, 113, 133, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.contact-email {
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}
.contact-email a {
  font-weight: 600;
}

/* Turnstile widget spacing */
.cf-turnstile {
  margin: var(--space-4) 0;
}

/* ========== Footer ========== */
.site-footer {
  flex-shrink: 0;
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-6);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-inner a {
  color: var(--color-accent);
}

/* ========== About page mission ========== */
.mission-block {
  max-width: 44rem;
  margin-bottom: var(--space-12);
}
.mission-block p {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

/* ========== Home: Coming soon section ========== */
.coming-soon-section {
  margin-top: var(--space-12);
  padding: var(--space-10);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.coming-soon-desc {
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto var(--space-4);
}
.coming-soon-page {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.coming-soon-page .coming-soon-hero {
  margin-bottom: var(--space-8);
}
.coming-soon-page .section {
  text-align: left;
  margin-bottom: var(--space-6);
}
.coming-soon-page .coming-soon-more {
  margin-top: var(--space-4);
}
.coming-soon-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  line-height: var(--leading-relaxed);
}
.coming-soon-list li {
  margin-bottom: var(--space-2);
}
.coming-soon-app-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-2) 0 var(--space-4);
}
.coming-soon-more {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--grad-brand-strong);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.35);
}
.coming-soon-more:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* ========== Home: Studio section ========== */
.studio-section {
  position: relative;
  margin-top: var(--space-8);
  padding: var(--space-12) var(--space-10);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(34, 211, 238, 0.1)),
    var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(76, 134, 255, 0.28);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.studio-section .section-title {
  position: relative;
}
.studio-app-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-2) 0 var(--space-4);
}
.studio-desc {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 38rem;
  margin: 0 auto var(--space-5);
}
.studio-badge {
  display: inline-flex;
}

/* ========== Logo expand (lightbox) ========== */
.logo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 14, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--space-4);
}
.logo-modal.is-open {
  display: flex;
}
.logo-modal img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.logo-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.logo-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Utility ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Split hero + stat panel  (core-pages redesign)

   The centred `.hero` above still serves the ten pages that have not been
   restyled yet. `.hero--split` is the new two-column treatment: copy on the
   left, a live-counts panel on the right.

   Colours come from the tokens rather than the mockup's raw hexes on purpose —
   the mockup hard-codes #94A5BD/#6E819C for body text, and the token values
   are the ones measured against WCAG AA further up this file.
   ============================================ */

.hero--split {
  text-align: left;
  padding: var(--space-20) 0 var(--space-16);
  overflow: hidden;
}

/* The two radial washes that give the hero its depth. Decorative only, so it
   is painted behind content and hidden from assistive tech. */
.hero--split::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 150%;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 50% -10%, rgba(34, 211, 238, 0.19), transparent 64%),
    radial-gradient(620px 380px at 88% 30%, rgba(47, 107, 255, 0.16), transparent 62%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-12);
  align-items: center;
}

.hero--split h1 {
  font-size: clamp(var(--text-4xl), 6.5vw, 4.125rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  /* The white-to-cyan wash on `.hero h1` runs across the whole heading. Here
     only the final line carries the gradient, so the base is plain white and
     `.hero-accent` paints itself. */
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.hero-accent {
  background: linear-gradient(100deg, var(--brand-blue-bright), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero--split .tagline,
.hero--split .intro {
  margin-left: 0;
  margin-right: 0;
  max-width: 52ch;
}

.hero--split .hero-ctas {
  justify-content: flex-start;
}

/* ---- Counts panel ---- */

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-card {
  padding: var(--space-6);
  background: linear-gradient(160deg, #10203c, #0b1322);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stat-card--accent {
  border-color: rgba(34, 211, 238, 0.24);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
}

.stat-card--accent .stat-value {
  color: var(--color-accent-2);
}

.stat-label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stat-card--wide .stat-label {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

/* Sector chips. `.tags` further up is an <ul> with its own list reset; these
   sit inline in the panel, so they get their own lighter treatment. */
.stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-tags li {
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text);
  background: rgba(124, 154, 196, 0.13);
  border-radius: 6px;
}

/* ---- Numbered section labels ("01 · FEATURED") ---- */

.label-mono {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}

/* ---- Section heading with a trailing link ---- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.section-head .section-title,
.section-head .section-subtitle {
  margin-bottom: 0;
}

.section-head-link {
  font-size: var(--text-sm);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat-card--wide {
    grid-column: auto;
  }
}

/* ---- Header call-to-action ----
   The nav's last item is a button rather than a link. `.btn` sets its own
   padding and font-size, so this only trims it to nav scale. */
/* The header CTA is a `.btn` living inside `.nav-list`, and `.nav-list a`
   (0,1,1) outranks `.btn-primary` (0,1,0) — so the button quietly inherited
   the nav's muted grey and weight 500 instead of white and 600. Grey on the
   button gradient measures 1.79:1, which is what made it look washed out;
   white on the corrected gradient is 5.21:1.

   These selectors match the nav rules' specificity so the button keeps its
   own styling. `.nav-list a:hover` also sets a flat grey `background`, which
   would replace the gradient outright rather than tint it, so the hover and
   current-page states are restated here too. */
.nav-list a.nav-cta {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
}

.nav-list a.nav-cta:hover,
.nav-list a.nav-cta:focus-visible,
.nav-list a.nav-cta[aria-current="page"] {
  color: #fff;
  background: var(--grad-brand-strong);
  box-shadow: 0 14px 34px rgba(47, 107, 255, 0.5);
}

/* ---- Founder sign-off ---- */

.founder-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.founder-line img {
  flex: none;
}

.founder-name,
.founder-role {
  display: block;
}

.founder-name {
  font-weight: 600;
  color: var(--color-text);
}

.founder-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- Price line on the contact page's cost cards ----
   Sits last in a `.service-card`, pushed to the bottom so the figures line up
   across cards whose descriptions differ in length. */
.price-tag {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent-2);
}
