/*
  Meizor — shared stylesheet
  Design tokens sourced from the official Meizor Brand Guidelines (v1.0, 2026):
  core palette, Inter type system, 12-column / 8pt spacing grid, and the
  "flight path" + "forward wedge" motifs. Edit the custom properties below
  to re-theme the whole site.
*/

/* ---------------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------------------ */
:root {
  /* Brand colors */
  --color-midnight: #06152E;
  --color-midnight-deep: #040E20;
  --color-navy: #0A2148;
  --color-signal: #1687FF;
  --color-sky: #42B6FF;
  --color-royal: #1553F1;
  --color-cloud: #F6F8FC;
  --color-slate: #5C6B82;
  --color-white: #FFFFFF;

  /* Semantic status (used only for status cues) */
  --color-success: #16A36A;
  --color-warning: #F2A51A;
  --color-error: #E5484D;

  /* Role aliases */
  --bg-page: var(--color-cloud);
  --bg-surface: var(--color-white);
  --bg-dark: var(--color-midnight);
  --bg-navy: var(--color-navy);
  --text-primary: var(--color-navy);
  --text-secondary: var(--color-slate);
  --text-inverse: var(--color-white);
  --text-inverse-muted: rgba(226, 234, 248, 0.74);
  --border-subtle: rgba(10, 33, 72, 0.1);
  --border-inverse: rgba(246, 248, 252, 0.12);
  --accent: var(--color-signal);
  --focus-ring: #42B6FF;

  --gradient-flight: linear-gradient(135deg, var(--color-sky) 0%, var(--color-signal) 55%, var(--color-royal) 100%);
  --gradient-text: linear-gradient(100deg, #8FD6FF 0%, var(--color-sky) 30%, var(--color-signal) 70%, #5B8CFF 100%);

  /* Typography — Inter Display for headings, Inter for body (per brand system) */
  --font-display: "Inter", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --lh-display: 1.04;
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --lh-h1: 1.08;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
  --lh-h2: 1.12;
  --fs-h3: 1.25rem;
  --lh-h3: 1.3;
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --lh-body-lg: 1.65;
  --fs-body: 1rem;
  --lh-body: 1.6;
  --fs-caption: 0.75rem;
  --lh-caption: 1.5;

  /* 8pt spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: clamp(72px, 6vw + 40px, 112px);
  --space-9: clamp(96px, 8vw + 48px, 144px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --max-width: 1240px;
  --gutter: 24px;

  --shadow-card: 0 1px 2px rgba(10, 33, 72, 0.05), 0 10px 30px rgba(10, 33, 72, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(10, 33, 72, 0.06), 0 24px 48px rgba(10, 33, 72, 0.12);
  --shadow-glow: 0 0 0 1px rgba(66, 182, 255, 0.25), 0 20px 60px rgba(22, 135, 255, 0.25);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 240ms var(--ease);
}

/* ---------------------------------------------------------------------
   2. Reset & base
------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-secondary); }

::selection { background: rgba(22, 135, 255, 0.25); }

/* Visible keyboard focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   3. Layout primitives
------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

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

.section--tight { padding-block: var(--space-7); }

/* Dark surfaces: midnight with soft brand glows and a faint engineering grid */
.section--dark,
.section--navy {
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--dark {
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(22, 135, 255, 0.28) 0%, rgba(22, 135, 255, 0) 60%),
    radial-gradient(45% 55% at 0% 10%, rgba(21, 83, 241, 0.2) 0%, rgba(21, 83, 241, 0) 60%),
    var(--bg-dark);
}

.section--navy {
  background:
    radial-gradient(55% 60% at 100% 100%, rgba(66, 182, 255, 0.14) 0%, rgba(66, 182, 255, 0) 60%),
    linear-gradient(180deg, var(--color-navy) 0%, var(--color-midnight) 100%);
}

.section--dark::before,
.section--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  pointer-events: none;
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--text-inverse); }
.section--dark p, .section--navy p { color: var(--text-inverse-muted); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-head p:not(.eyebrow) {
  margin-top: var(--space-3);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-royal);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-flight);
}

.section-head--center .eyebrow::before,
.cta-band .eyebrow::before { display: none; }

.section--dark .eyebrow, .section--navy .eyebrow { color: var(--color-sky); }

.lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  max-width: 62ch;
}

.prose p + p { margin-top: var(--space-4); }

.prose {
  max-width: 68ch;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Light sections get a faint dotted texture for depth */
.section--texture {
  background:
    radial-gradient(rgba(10, 33, 72, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-page);
}

.section--white { background: var(--bg-surface); }

/* ---------------------------------------------------------------------
   4. Buttons
------------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn .btn__arrow { transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, #2FA4FF 0%, var(--color-signal) 45%, var(--color-royal) 100%);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(22, 135, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(22, 135, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(10, 33, 72, 0.18);
  color: var(--text-primary);
}

.btn-outline:hover { border-color: var(--color-navy); background: rgba(10, 33, 72, 0.03); }

.section--dark .btn-outline, .section--navy .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.section--dark .btn-outline:hover, .section--navy .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-royal);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: gap var(--transition);
}

.link-arrow:hover { gap: 12px; }

.section--dark .link-arrow, .section--navy .link-arrow { color: var(--color-sky); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------------------------------------------------------------------
   5. Header / navigation  (dark glass bar that flows into the hero)
------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 21, 46, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(6, 21, 46, 0.88);
  box-shadow: 0 10px 30px rgba(4, 14, 32, 0.35);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-mark img { height: 28px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-nav.is-open { display: flex; }

.primary-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.primary-nav__links a {
  position: relative;
  display: block;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(226, 234, 248, 0.78);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.primary-nav__links a:hover { color: var(--color-white); }
.primary-nav__links a[aria-current="page"] { color: var(--color-white); }

.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sky);
  background: rgba(66, 182, 255, 0.14);
  border: 1px solid rgba(66, 182, 255, 0.3);
  vertical-align: 2px;
}

.primary-nav .btn { margin-top: var(--space-2); align-self: flex-start; padding: 11px 20px; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }

  .site-header__bar { flex-wrap: nowrap; }

  .primary-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    margin-top: 0;
    border-top: none;
  }

  .primary-nav__links {
    flex-direction: row;
    gap: var(--space-5);
  }

  .primary-nav__links a { padding: 6px 2px; }

  .primary-nav__links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-flight);
  }

  .primary-nav .btn { margin-top: 0; }
}

/* ---------------------------------------------------------------------
   6. Hero + flight-path signature motif
------------------------------------------------------------------------ */
.hero {
  padding-block: var(--space-8) var(--space-9);
  position: relative;
}

.hero::after {
  /* Glowing orb behind the headline */
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -200px;
  top: -320px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 182, 255, 0.35) 0%, rgba(22, 135, 255, 0.12) 40%, rgba(22, 135, 255, 0) 70%);
  will-change: transform;
  animation: orb-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-80px, 60px, 0) scale(1.12); }
}

.hero__grid {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  color: var(--text-inverse);
  letter-spacing: -0.035em;
}

.hero .lede {
  margin-top: var(--space-4);
  color: var(--text-inverse-muted);
}

.hero .lede + .lede { margin-top: var(--space-3); }

/* Split hero: copy on the left, product visual on the right */
.hero--split .hero__grid {
  max-width: none;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 1020px) {
  .hero--split .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(226, 234, 248, 0.9);
  backdrop-filter: blur(8px);
}

.hero-pill__tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-flight);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(226, 234, 248, 0.8);
}

.hero-points svg { width: 16px; height: 16px; color: var(--color-sky); flex-shrink: 0; }

.flight-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  opacity: 0.9;
}

.flight-path path.route {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
  animation: route-flow 2.4s linear infinite;
}

@keyframes route-flow { to { stroke-dashoffset: -48; } }

.flight-path circle.waypoint {
  fill: var(--color-sky);
  filter: drop-shadow(0 0 6px rgba(66, 182, 255, 0.9));
}

.flight-path circle.waypoint--end {
  fill: var(--color-white);
}

/* Forward-wedge divider: a cropped diagonal derived from the symbol's angle of travel */
.wedge-divider {
  position: relative;
  height: 56px;
  background: var(--bg-page);
}

.wedge-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.wedge-divider--navy::before { background: var(--bg-navy); }

@media (max-width: 640px) {
  .wedge-divider { height: 36px; }
}

/* ---------------------------------------------------------------------
   7. Product visual: transaction monitor (illustrative UI)
------------------------------------------------------------------------ */
.console {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(140deg, rgba(66, 182, 255, 0.55), rgba(255, 255, 255, 0.08) 40%, rgba(21, 83, 241, 0.5));
  box-shadow: 0 40px 100px rgba(2, 8, 20, 0.6), 0 0 80px rgba(22, 135, 255, 0.18);
}

.console__inner {
  border-radius: calc(var(--radius-xl) - 1px);
  background: linear-gradient(180deg, rgba(13, 33, 70, 0.96) 0%, rgba(6, 21, 46, 0.98) 100%);
  padding: var(--space-4);
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-white);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(22, 163, 106, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 106, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(22, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 106, 0); }
}

.console__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(226, 234, 248, 0.55);
}

.console__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-3);
}

.kpi {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kpi__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(226, 234, 248, 0.6);
}

.kpi__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.console__chart {
  height: 84px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console__chart svg { width: 100%; height: 100%; }

.console__chart .spark-line {
  fill: none;
  stroke: var(--color-sky);
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.2s 0.4s var(--ease) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.tx-list { display: flex; flex-direction: column; gap: 6px; }

.tx {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(8px);
  animation: tx-in 0.6s var(--ease) forwards;
}

.tx:nth-child(1) { animation-delay: 0.6s; }
.tx:nth-child(2) { animation-delay: 0.85s; }
.tx:nth-child(3) { animation-delay: 1.1s; }
.tx:nth-child(4) { animation-delay: 1.35s; }

@keyframes tx-in { to { opacity: 1; transform: none; } }

.tx__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(66, 182, 255, 0.14);
  color: var(--color-sky);
}

.tx__icon svg { width: 15px; height: 15px; }

.tx__name { font-size: 0.8125rem; font-weight: 600; color: var(--color-white); line-height: 1.3; }
.tx__sub { font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(226, 234, 248, 0.5); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.status--ok   { color: #4ADE9B; background: rgba(22, 163, 106, 0.16); }
.status--warn { color: #FFC453; background: rgba(242, 165, 26, 0.16); }
.status--info { color: var(--color-sky); background: rgba(66, 182, 255, 0.14); }

/* Floating chips around the console */
.console-wrap { position: relative; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 33, 72, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  will-change: transform;
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  animation: float 6s ease-in-out infinite;
}

.float-chip svg { width: 18px; height: 18px; color: var(--color-sky); }
.float-chip small { display: block; font-weight: 500; color: rgba(226, 234, 248, 0.6); font-size: 0.6875rem; }

.float-chip--a { top: -18px; left: -22px; }
.float-chip--b { bottom: 28px; right: -26px; animation-delay: -3s; }

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

@media (max-width: 640px) {
  .float-chip { display: none; }
  .console__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 10px 8px; }
  .kpi__value { font-size: 0.9375rem; }
}

/* ---------------------------------------------------------------------
   8. Standards / technology marquee
------------------------------------------------------------------------ */
.trust-strip {
  background: var(--color-midnight-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-4);
  overflow: hidden;
}

.trust-strip__label {
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 234, 248, 0.5);
  margin-bottom: var(--space-3);
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-6);
  padding-right: var(--space-6);
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: rgba(226, 234, 248, 0.7);
}

.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--color-sky);
}

/* ---------------------------------------------------------------------
   9. Cards & grids
------------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

/* Category groupings used on the homepage's condensed service grid and the services hub */
.category-block { margin-top: var(--space-8); }
.category-block:first-child { margin-top: 0; }
.category-block__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.category-block__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  isolation: isolate;
}

/* Gradient hairline that lights up on hover */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-flight);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

a.card::after {
  content: "\2192";
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-weight: 700;
  color: var(--color-signal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

a.card:hover::after { opacity: 1; transform: none; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(66, 182, 255, 0.16), rgba(21, 83, 241, 0.12));
  border: 1px solid rgba(22, 135, 255, 0.18);
  color: var(--color-signal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.card:hover .card__icon {
  background: var(--gradient-flight);
  color: var(--color-white);
  transform: rotate(-4deg) scale(1.05);
}

.card__icon svg { width: 22px; height: 22px; }

.card p { flex-grow: 1; }

.card--on-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: var(--border-inverse);
  box-shadow: none;
}

.card--on-dark:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(22, 135, 255, 0.12); }

.card--on-dark .card__icon {
  background: rgba(66, 182, 255, 0.12);
  border-color: rgba(66, 182, 255, 0.25);
  color: var(--color-sky);
}

.card--on-dark p { color: var(--text-inverse-muted); }

.card--feature { padding: var(--space-6) var(--space-5); }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}

.tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-navy);
  background: rgba(10, 33, 72, 0.05);
  border: 1px solid rgba(10, 33, 72, 0.08);
}

.section--dark .tag, .section--navy .tag {
  color: rgba(226, 234, 248, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------
   10. Banking & fintech feature blocks
------------------------------------------------------------------------ */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse > :first-child { order: 2; }
}

/* Build new vs. enhance existing */
.paths {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 860px) {
  .paths { grid-template-columns: 1fr 1fr; }
}

.path-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (min-width: 640px) {
  .path-card { padding: var(--space-6); }
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 182, 255, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 60px rgba(22, 135, 255, 0.15);
}

.path-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -160px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 182, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.path-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-sky);
}

.path-card h3 {
  margin-block: var(--space-2) var(--space-3);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  letter-spacing: -0.025em;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-4);
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section--dark .check-list li, .section--navy .check-list li { color: var(--text-inverse-muted); }

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--gradient-flight);
}

/* Architecture stack diagram */
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card-hover);
}

.stack__layer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--color-cloud);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), border-color var(--transition);
}

.stack__layer:hover { transform: translateX(6px); border-color: rgba(22, 135, 255, 0.4); }

.stack__layer strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.stack__layer span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: right;
}

.stack__layer--accent {
  background: var(--gradient-flight);
  border-color: transparent;
}

.stack__layer--accent strong, .stack__layer--accent span { color: var(--color-white); }

.stack__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-inline: 4px;
}

@media (max-width: 480px) {
  .stack__layer { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stack__layer span { text-align: left; }
}

/* ---------------------------------------------------------------------
   11. Numbered process list
------------------------------------------------------------------------ */
.steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}

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

.step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.step__index {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-flight);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  box-shadow: 0 8px 20px rgba(22, 135, 255, 0.3);
}

.step__body h3 { margin-bottom: var(--space-2); color: var(--text-primary); }
.step__body p { color: var(--text-secondary); }

/* Horizontal timeline used on homepage / fintech page */
.timeline {
  display: grid;
  gap: var(--space-4);
  counter-reset: tl;
}

@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}

.timeline__item {
  position: relative;
  padding-top: var(--space-6);
}

.timeline__item::before {
  counter-increment: tl;
  content: "0" counter(tl);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-sky);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(66, 182, 255, 0.35);
  background: rgba(66, 182, 255, 0.08);
}

.timeline__item::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 60px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(66, 182, 255, 0.5), rgba(66, 182, 255, 0));
}

.timeline__item h3 { margin-bottom: var(--space-2); }

/* ---------------------------------------------------------------------
   12. Pricing / callout panel
------------------------------------------------------------------------ */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

@media (max-width: 480px) {
  .panel { padding: var(--space-4); }
}

.panel--accent {
  border-color: rgba(22, 135, 255, 0.25);
  background: linear-gradient(180deg, rgba(22,135,255,0.06), rgba(22,135,255,0) 60%), var(--bg-surface);
}

/* ---------------------------------------------------------------------
   13. Final CTA band
------------------------------------------------------------------------ */
.cta-band {
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(ellipse, rgba(22, 135, 255, 0.3), transparent 65%);
  pointer-events: none;
}

.cta-band__inner {
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.cta-band p { margin-top: var(--space-3); font-size: var(--fs-body-lg); }

.cta-band .cta-row { justify-content: center; }

/* ---------------------------------------------------------------------
   14. Footer
------------------------------------------------------------------------ */
.site-footer {
  position: relative;
  background: var(--color-midnight-deep);
  color: var(--text-inverse-muted);
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-sky), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

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

.footer-brand img { height: 26px; width: auto; margin-bottom: var(--space-3); }

.footer-brand p { max-width: 34ch; color: var(--text-inverse-muted); font-size: 0.875rem; }

.footer-services {
  display: grid;
  gap: var(--space-5);
}

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

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }

.footer-links a { font-size: 0.9375rem; color: var(--text-inverse-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-inverse); }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-inverse);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--fs-caption);
}

.footer-bottom p { color: rgba(226, 234, 248, 0.55); }
.footer-bottom a { color: var(--color-sky); }

/* ---------------------------------------------------------------------
   15. Contact form
------------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.form-field .optional {
  font-weight: 400;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 33, 72, 0.14);
  background: var(--color-cloud);
  font-size: var(--fs-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--color-signal);
  box-shadow: 0 0 0 4px rgba(22, 135, 255, 0.14);
}

.form-field input:invalid[data-touched="true"],
.form-field textarea:invalid[data-touched="true"] {
  border-color: var(--color-error);
}

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

.field-error {
  font-size: var(--fs-caption);
  color: var(--color-error);
  min-height: 1em;
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}

.form-status.is-visible { display: block; }

/* Spam trap field: off-screen for people, still present for bots */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status--success {
  background: rgba(22, 163, 106, 0.1);
  color: #0d7a4f;
  border: 1px solid rgba(22, 163, 106, 0.3);
}

.form-status--error {
  background: rgba(229, 72, 77, 0.1);
  color: #b5262b;
  border: 1px solid rgba(229, 72, 77, 0.3);
}

.contact-aside p + p { margin-top: var(--space-3); }

.contact-aside__meta {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.meta-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9375rem;
}

.meta-row svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-signal);
  margin-top: 2px;
}

/* ---------------------------------------------------------------------
   16. Scroll reveal (only active when JS is running)
------------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Once revealed, hand transitions back to the component's own hover styles */
.js [data-reveal].is-revealed {
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  transition-delay: 0ms;
}

.js .card[data-reveal].is-visible:hover,
.js .path-card[data-reveal].is-visible:hover { transform: translateY(-4px); }
.js .step[data-reveal].is-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   17. Utilities
------------------------------------------------------------------------ */
.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;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition);
}

.skip-link:focus { top: var(--space-3); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--space-5); }
.mt-7 { margin-top: var(--space-7); }

/* ---------------------------------------------------------------------
   18. Product: Gorgor Compliance System
------------------------------------------------------------------------ */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.product-badge__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-flight);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(22, 135, 255, 0.35);
}

.product-badge__mark svg { width: 22px; height: 22px; }

.product-badge__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--color-white);
}

.product-badge__text small {
  display: block;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky);
}

/* Illustrative app window */
.app-mock {
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(140deg, rgba(66, 182, 255, 0.6), rgba(255, 255, 255, 0.08) 40%, rgba(21, 83, 241, 0.5));
  box-shadow: 0 40px 100px rgba(2, 8, 20, 0.45), 0 0 80px rgba(22, 135, 255, 0.16);
}

.app-mock__window {
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden;
  background: #0B1C3A;
}

.app-mock__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(4, 14, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(226, 234, 248, 0.6);
}

.app-mock__dots { display: flex; gap: 6px; margin-right: 6px; }
.app-mock__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }

.app-mock__titlebar .console__meta { margin-left: auto; }

.app-mock__body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 340px;
}

.app-mock__side {
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 14, 32, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-mock__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.71875rem;
  font-weight: 600;
  color: rgba(226, 234, 248, 0.62);
  white-space: nowrap;
}

.app-mock__nav::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(226, 234, 248, 0.3);
  flex-shrink: 0;
}

.app-mock__nav.is-active {
  color: var(--color-white);
  background: linear-gradient(90deg, rgba(22, 135, 255, 0.35), rgba(22, 135, 255, 0.08));
}

.app-mock__nav.is-active::before { background: var(--color-sky); }

.app-mock__main { padding: 16px; min-width: 0; }

.app-mock__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-white);
}

.app-mock__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.app-mock__kpis .kpi { padding: 10px; }
.app-mock__kpis .kpi__value { font-size: 1rem; }
.kpi--alert { border-color: rgba(229, 72, 77, 0.45); background: rgba(229, 72, 77, 0.08); }

.app-mock__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.app-mock__table th {
  text-align: left;
  padding: 7px 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.59375rem;
  color: rgba(226, 234, 248, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-mock__table td {
  padding: 8px;
  color: rgba(226, 234, 248, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.app-mock__table td.mono { font-family: var(--font-mono); color: rgba(226, 234, 248, 0.6); }
.app-mock__table .status { padding: 2px 7px; font-size: 0.625rem; }

.status--risk { color: #FF8A8E; background: rgba(229, 72, 77, 0.16); }

@media (max-width: 760px) {
  .app-mock__body { grid-template-columns: 1fr; }
  .app-mock__side { display: none; }
  .app-mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-mock__table th:nth-child(3), .app-mock__table td:nth-child(3) { display: none; }
}

/* Highlights row under the product hero */
.highlights {
  display: grid;
  gap: var(--space-3);
}

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

.highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight .card__icon { flex-shrink: 0; width: 42px; height: 42px; }
.highlight h3 { font-size: 1rem; margin-bottom: 2px; }
.highlight p { font-size: 0.875rem; line-height: 1.5; }

/* Rule builder illustration */
.rule-card {
  border-radius: var(--radius-xl);
  background: var(--color-midnight);
  border: 1px solid rgba(66, 182, 255, 0.25);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

.rule-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-white);
}

.rule-card__body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 2;
  color: rgba(226, 234, 248, 0.85);
  overflow-x: auto;
}

.rule-card__body .kw { color: var(--color-sky); font-weight: 600; }
.rule-card__body .val { color: #FFC453; }
.rule-card__body .act { color: #4ADE9B; }
.rule-card__body .cm { color: rgba(226, 234, 248, 0.4); }
.rule-card__body .ind { padding-left: 2ch; display: block; }

.rule-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Risk distribution illustration */
.risk-meter {
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card-hover);
}

.risk-meter__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.risk-meter__title span { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; color: var(--text-secondary); }

.risk-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.risk-row__bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-cloud);
  overflow: hidden;
}

.risk-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: var(--w);
  background: var(--bar, var(--gradient-flight));
}

.risk-meter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

/* Gorgor logo: transparent on light surfaces, on a light tile over dark ones */
.logo-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--color-cloud);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(2, 8, 20, 0.35), 0 0 0 1px rgba(66, 182, 255, 0.35);
}

.logo-tile img { width: 100%; height: auto; }

.logo-tile--lg { width: 64px; height: 64px; padding: 6px; }
.logo-tile--xs { width: 20px; height: 20px; padding: 2px; border-radius: 5px; box-shadow: none; }
.logo-tile--cta { width: 96px; height: 96px; padding: 8px; border-radius: 24px; margin: 0 auto var(--space-4); box-shadow: 0 20px 50px rgba(2, 8, 20, 0.45), 0 0 60px rgba(22, 135, 255, 0.35); }

.product-badge { gap: 14px; }

.product-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.product-title img { width: 64px; height: 64px; flex-shrink: 0; }

.card__logo { width: 64px; height: 64px; }


/* ---------------------------------------------------------------------
   Gorgor live flow (gorgor-compliance.html). Scoped to .gflow.
------------------------------------------------------------------------ */
.gflow { --ok: #4ADE9B; --warn: #FFC453; --risk: #FF8A8E; --info: var(--color-sky); }

.gflow__stage {
  position: relative;
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 33, 72, 0.7), rgba(4, 14, 32, 0.85));
  padding: var(--space-4);
}

.gflow__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.gflow__kpis { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.gflow__kpi { display: flex; flex-direction: column; }
.gflow__kpi b { font-size: 1.5rem; line-height: 1.1; color: var(--color-white); font-variant-numeric: tabular-nums; }
.gflow__kpi span { font-size: 0.8125rem; color: var(--text-inverse-muted); }

.gflow__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-inverse);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
}
.gflow__toggle:hover { background: rgba(255, 255, 255, 0.06); }

/* Diagram */
.gflow__diagram { width: 100%; height: auto; overflow: visible; }
.gflow__diagram text { font-family: var(--font-body); fill: rgba(226, 234, 248, 0.92); }
.gflow__diagram .sub { fill: rgba(226, 234, 248, 0.55); font-size: 11px; }
.gflow__diagram .title { font-size: 14px; font-weight: 700; fill: #fff; }
.gflow__diagram .col-label { font-size: 11px; font-weight: 600; fill: rgba(226, 234, 248, 0.5); }

.gnode rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(246, 248, 252, 0.14); transition: stroke 300ms, fill 300ms; }
.gnode.is-active rect { stroke: var(--color-sky); fill: rgba(66, 182, 255, 0.12); }
.gnode--ok.is-active rect { stroke: var(--ok); fill: rgba(74, 222, 155, 0.12); }
.gnode--warn.is-active rect { stroke: var(--warn); fill: rgba(255, 196, 83, 0.12); }
.gnode--risk.is-active rect { stroke: var(--risk); fill: rgba(255, 138, 142, 0.12); }

.gengine > rect { fill: rgba(22, 135, 255, 0.08); stroke: rgba(66, 182, 255, 0.45); }
.gmod rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(246, 248, 252, 0.1); transition: stroke 250ms, fill 250ms; }
.gmod.is-active rect { stroke: var(--color-sky); fill: rgba(66, 182, 255, 0.2); }
.gflow__diagram .gmod.is-active .sub { fill: #fff; font-weight: 600; }

.gwire { fill: none; stroke: rgba(246, 248, 252, 0.12); stroke-width: 1.5; transition: stroke 300ms; }
.gwire.is-active { stroke: rgba(66, 182, 255, 0.7); }

.gpacket { fill: var(--color-sky); filter: drop-shadow(0 0 6px rgba(66, 182, 255, 0.9)); opacity: 0; }
.gpacket.is-ok { fill: var(--ok); filter: drop-shadow(0 0 6px rgba(74, 222, 155, 0.9)); }
.gpacket.is-warn { fill: var(--warn); filter: drop-shadow(0 0 6px rgba(255, 196, 83, 0.9)); }
.gpacket.is-risk { fill: var(--risk); filter: drop-shadow(0 0 6px rgba(255, 138, 142, 0.9)); }

/* "Now processing" line under the diagram; doubles as the mobile view */
.gflow__now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  min-height: 52px;
  font-size: 0.9375rem;
  color: rgba(226, 234, 248, 0.9);
}
.gflow__now strong { color: #fff; }

/* Panels */
.gflow__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (min-width: 960px) {
  .gflow__panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.gpanel {
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-lg);
  background: rgba(4, 14, 32, 0.6);
  padding: var(--space-4);
}
.gpanel h3 { font-size: 1rem; margin-bottom: var(--space-3); }

.glog, .gcases { display: flex; flex-direction: column; gap: 8px; min-height: 360px; }

.glog__item, .gcase {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 248, 252, 0.06);
  padding: 10px 12px;
  animation: gflow-in 400ms var(--ease);
}
@keyframes gflow-in { from { opacity: 0; transform: translateY(-6px); } }

.glog__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; }
.glog__time { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(226, 234, 248, 0.5); padding-top: 2px; }
.glog__text { font-size: 0.875rem; color: rgba(226, 234, 248, 0.9); }
.glog__text small { display: block; color: rgba(226, 234, 248, 0.55); font-size: 0.8125rem; }

.gcase__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcase__id { font-family: var(--font-mono); font-size: 0.8125rem; color: rgba(226, 234, 248, 0.6); }
.gcase__title { font-size: 0.9375rem; font-weight: 600; color: #fff; margin-top: 2px; }
.gcase__note { font-size: 0.8125rem; color: rgba(226, 234, 248, 0.6); margin-top: 2px; }
.gcase.is-updated { animation: gflow-flash 900ms var(--ease); }
@keyframes gflow-flash { 0% { border-color: rgba(66, 182, 255, 0.8); } 100% { border-color: rgba(246, 248, 252, 0.06); } }

.gsteps { display: flex; gap: 6px; margin-top: 8px; }
.gsteps span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); transition: background 400ms; }
.gsteps span.is-done { background: var(--color-sky); }
.gcase[data-status="resolved"] .gsteps span.is-done { background: var(--ok); }
.gcase[data-status="declined"] .gsteps span.is-done { background: var(--risk); }
.gcase[data-status="sar"] .gsteps span.is-done { background: var(--warn); }

.gflow .status--neutral { color: rgba(226, 234, 248, 0.8); background: rgba(255, 255, 255, 0.08); }

.gflow__legend { margin-top: var(--space-3); font-size: 0.8125rem; color: rgba(226, 234, 248, 0.55); }

/* Phones: the diagram is too small to read, so the "now" line carries the flow */
@media (max-width: 699px) {
  .gflow__diagram { display: none; }
  .gflow__now { margin-top: 0; }
  .glog, .gcases { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glog__item, .gcase, .gcase.is-updated { animation: none; }
}
