/* ============================================
   NYMBUS — "Flight Level"
   ------------------------------------------------------------------
   The brand is a nimbus cloud and the header has always claimed an
   altitude. This system takes that literally: the palette is the sky
   at cruise (cold violet-navy) lit by approach lighting (sodium
   amber), and the page is a descent from FL320 to the ground.

   Two rules keep it disciplined:
     1. Structure is cool. Rules, panels, borders, and body copy sit
        in the blue-grey ramp and never compete for attention.
     2. Interaction is warm. Sodium amber is reserved for things the
        visitor can act on — links, buttons, focus, the active
        instrument. Nothing decorative is amber.
   The brand blue survives in one place only: the logo mark.
   ============================================ */

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

:root {
  /* ── Cool ramp: sky, panels, rules, text ────────────────────── */
  --b950: #05070F;  /* void — above the weather */
  --b900: #0C1226;  /* strata — raised panel */
  --b850: #0E1428;
  --b800: #131B36;
  --b700: #1E2A4D;  /* instrument rule */
  --b600: #2C3C68;
  --b500: #4A5D91;
  --b400: #7E93C6;  /* dim text */
  --b300: #93A9D8;  /* muted text */
  --b200: #C6D6F5;  /* ice — high cirrus */
  --b100: #DCE6FA;
  --b050: #EEF4FF;  /* primary text */
  --b025: #F5F8FF;

  /* ── Sodium ramp: approach lighting. Interaction only. ──────── */
  --s600: #C9761A;
  --s500: #E08A1E;  /* accent deep — pressed / dense fills */
  --s400: #FFA83A;  /* ACCENT */
  --s300: #FFC46B;  /* accent light — hover */
  --s200: #FFDCA8;

  /* ── Role tokens ────────────────────────────────────────────── */
  --void: var(--b950);
  --strata: var(--b900);
  --rule: rgba(126, 158, 224, 0.14);
  --rule-strong: rgba(126, 158, 224, 0.26);

  --bg: var(--b950);
  --fg: var(--b050);
  --text: var(--b050);
  --ice: var(--b200);
  --muted: var(--b300);
  --dim: var(--b400);

  --accent: var(--s400);
  --accent-light: var(--s300);
  --accent-deep: var(--s500);
  --accent-rgb: 255, 168, 58;
  --glow: rgba(255, 168, 58, 0.28);
  --glow-strong: rgba(255, 168, 58, 0.55);

  /* Brand blue. Logo mark only — never a UI colour. */
  --brand-1: #3B82F6;
  --brand-2: #22D3EE;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Display face is a variable width axis. Headlines run wide, like a
     signage plate; nothing else touches the axis. */
  --display-wide: 116%;

  /* ── Motion ──────────────────────────────────────────────────
     One curve, already used throughout, now named. Press feedback is
     the only new motion: nothing on this site had an :active state, so
     a tap produced no acknowledgement at all — on touch, where there
     is no hover, that meant zero response until the page navigated. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --press-duration: 130ms;
  --press-scale: 0.985;   /* buttons and small controls */
  --press-scale-lg: 0.995; /* cards, where a larger scale reads as a glitch */
}

html {
  height: 100%; height: 100dvh;
  overflow-x: hidden;
  /* Clears the fixed top bar so anchor targets and keyboard focus are never
     parked underneath it (WCAG 2.2 Focus Not Obscured). */
  scroll-padding-top: 104px;
}

:target { scroll-margin-top: 104px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}


/* ---- INSTRUMENT: altimeter readout (home page and /flight/) ---- */
.alt-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.alt-readout-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  min-width: 6.2ch;
  text-align: right;
}
.alt-readout-unit {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.alt-phase {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 99999;
  background: var(--accent);
  color: #1A1103;
  padding: 12px 22px;
  border-radius: 0 0 2px 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; }

/* Keyboard focus is visible everywhere by default; components may restyle
   it, but nothing is allowed to be focusable and invisible. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* Visible only to assistive tech. Carries the things a glyph cannot say,
   such as a link opening in a new tab. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---- TOP BAR ---- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  /* The bar is fixed over scrolling content and had no ground of its own, so
     panels read straight through it. */
  background: linear-gradient(180deg, var(--void) 58%, rgba(5, 7, 15, 0.86) 78%, transparent 100%);
  padding-bottom: 22px;
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }

.logo {
  display: flex; align-items: center; gap: 10px;
}

.logo-icon { color: var(--brand-1); display: flex; opacity: 0.92; transition: opacity 0.25s ease; }
.logo:hover .logo-icon { opacity: 1; }

.logo-text {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: 17px;
  font-weight: 700;
  font-stretch: var(--display-wide);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.top-bar-right {
  display: flex; align-items: center; gap: 8px;
}

.top-right-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.live-signal {
  font-family: var(--font-mono);
  transition: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* Pricing FAQ */

.faq-item {
  border-bottom: 1px solid rgba(126, 158, 224, 0.1);
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(126, 158, 224, 0.1);
}

/* Case Study: Overview */
.case-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.case-overview-item {
  padding: 12px 16px;
  border: 1px solid rgba(126, 158, 224, 0.1);
  border-radius: 2px;
  background: rgba(126, 158, 224, 0.03);
}

.case-overview-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.case-overview-value {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- CASE STUDY OVERLAY ---- */

.case-header {
  text-align: center;
  padding: 24px 0 16px;
  flex-shrink: 0;
}

.case-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.case-title {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--b050);
  margin-bottom: 16px;
}

.case-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.case-meta-divider { opacity: 0.4; }

.case-visit {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--b700);
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-visit:hover {
  background: var(--b800);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 168, 58, 0.2);
}

/* Scrollable content */

.case-section {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.case-section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.case-section-title {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--b100);
  margin-bottom: 16px;
  line-height: 1;
}

.case-section-text {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Steps */
.case-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.case-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(126, 158, 224, 0.1);
  border-radius: 2px;
  background: rgba(126, 158, 224, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-step:hover {
  border-color: rgba(255, 168, 58, 0.25);
  background: rgba(126, 158, 224, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(126, 158, 224, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.case-step-num {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

/* h3 is the correct level under a section h2. h4 is kept in the selector so
   any page still using the old markup renders identically. */
.case-step-content h3, .case-step-content h4 {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--b100);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.case-step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Screenshots */
.case-screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.case-screenshot-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.case-screenshot {
  border-radius: 2px;
  border: 1px solid var(--b800);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.screenshot-label {
  padding: 10px 14px;
  background: var(--b900);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--b300);
  text-transform: uppercase;
}

.case-screenshot:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(126, 158, 224, 0.15);
}

.case-screenshot img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
}

/* Impact Stats */
.case-impact-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 16px;
}

.case-impact-stat {
  text-align: center;
}

.impact-val {
  display: block;
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--b100);
  line-height: 1;
}

.impact-lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* ---- ENTRANCE ANIMATIONS ---- */
/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  /* Top bar. The wordmark stays: the mark alone is not the brand, and at
     this size both still fit alongside the page label. */
  .logo-icon svg { width: 30px; height: 30px; }
  .logo-text { font-size: 14px; letter-spacing: 0.14em; }
  .logo { gap: 7px; }
  .live-signal { font-size: 9px; letter-spacing: 0.16em; }
  
  

  /* ---- CASE STUDY ---- */
  .case-overview { grid-template-columns: 1fr; gap: 10px; }
  
  .case-header { padding: 16px 0 12px; }
  .case-title { line-height: 0.95; }
  
  .case-section { margin-bottom: 32px; padding: 0 8px; }
  .case-section-title { font-size: 20px; }
  .case-section-text { font-size: 14px; line-height: 1.65; }
  .case-screenshot-grid.two-col { grid-template-columns: 1fr; }
  
  
  
  
  
  
  .impact-lbl { font-size: 12px; }
}

/* ---- LIGHTBOX ---- */

.case-screenshot {
  cursor: pointer;
}

/* ---- CASE NAV (Next/Prev Project) ---- */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.case-nav-spacer { flex: 1; }

.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  border: 1px solid rgba(126, 158, 224, 0.12);
  border-radius: 2px;
  background: rgba(126, 158, 224, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.case-nav-link:hover {
  border-color: rgba(255, 168, 58, 0.3);
  background: rgba(126, 158, 224, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(126, 158, 224, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.case-nav-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.case-nav-title {
  font-family: var(--font-display); font-stretch: var(--display-wide);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--b100);
  text-transform: uppercase;
}

/* ---- FOCUS STYLES (Keyboard Accessibility) ---- */

.case-visit:focus-visible, .case-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  
  .top-bar { opacity: 1 !important; transform: none !important; }
  .particles { display: none; }
}
