/* ============================================================
   FINSIMUL — Shared Stylesheet
   Design language: dark navy glassmorphism, blue/indigo accents
   ============================================================ */

/* Self-hosted variable fonts — Inter (body/UI) + Archivo (display).
   Replaces the Google Fonts CDN import (privacy + performance). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo.woff2') format('woff2');
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === DESIGN TOKENS === */
:root {
  /* EXPERIMENT: cool slate-indigo LIGHT scheme (from Landing2 Option B) */
  --bg-deep:        #E7EBF2;
  --bg-surface:     #DFE4EC;
  --accent-blue:    #4F46E5;
  --accent-indigo:  #6366F1;
  --text-muted:     #5A6473;
  --text-body:      #1E2430;
  --glass-bg:       rgba(255, 255, 255, 0.60);
  --glass-border:   rgba(30, 36, 48, 0.11);
  --glass-border-hover: rgba(30, 36, 48, 0.22);
  --radius-card:    1.5rem;
  --radius-btn:     0.75rem;
  --radius-pill:    999px;
  --shadow-card:    0 18px 40px -24px rgba(30, 36, 48, 0.45);
  --shadow-btn:     0 10px 24px -10px rgba(79, 70, 229, 0.5);
  --transition:     0.2s ease;
  --header-height:  72px;
  --font-heading:   'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --accent-teal:    #0EA5A4;
}

/* === BODY & BACKGROUND === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-body);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 680; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 720; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-indigo); }

.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent-blue); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.gap-3       { gap: 1.5rem; }
.gap-4       { gap: 2rem; }
.text-center { text-align: center; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(231, 235, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 36, 48, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-body);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(231, 235, 242, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
  z-index: 99;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav ul a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-nav ul a:last-child { border-bottom: none; }
.mobile-nav ul a:hover { color: var(--accent-blue); }

.mobile-nav .btn-ghost {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

body.nav-open .mobile-nav { display: block; }

body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === FOOTER === */
.site-footer {
  background: rgba(231, 235, 242, 0.85);
  border-top: 1px solid rgba(30, 36, 48, 0.08);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(30, 36, 48, 0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-bottom: 0.1rem;
}

.footer-logo-mark {
  height: 30px;
  width: auto;
}

.footer-logo-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-body);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-blurb {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 22rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-body);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

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

.footer-col ul a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--accent-blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-entity {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
}

/* === LEGAL / DOCUMENT PAGES === */
.legal-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-body);
  margin: 2.25rem 0 0.85rem;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--text-body);
  margin: 1.5rem 0 0.6rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.legal-content li { margin-bottom: 0.45rem; }

.legal-content a {
  color: var(--accent-blue);
  text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draft-notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.1rem;
  margin: 1.5rem auto 0;
  max-width: 50rem;
  font-size: 0.82rem;
  color: #b45309;
  line-height: 1.55;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(79, 70, 229, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.6);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Quiet secondary link — demoted from a ghost button to keep one focal CTA */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--transition), gap var(--transition);
}

.link-quiet:hover {
  color: var(--accent-blue);
  gap: 0.55rem;
}

.link-quiet .chevron {
  font-size: 1.1em;
  line-height: 1;
}

/* === CARDS === */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card);
}

.card-feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card-feature:hover {
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-3px);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-blue);
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card-feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === BADGES & PILLS === */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--accent-blue);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #b45309;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-blue);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === PRODUCT SCREENSHOTS === */
.product-img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-card) - 0.5rem);
  object-fit: cover;
  object-position: top center;
}

.hero-visual .product-img {
  max-height: 440px;
  border-radius: 0 0 calc(var(--radius-card) - 0.5rem) calc(var(--radius-card) - 0.5rem);
}

.feature-row-visual .product-img {
  max-height: 300px;
}

/* === ACCESS SCHEMATIC (security.html) === */
.access-schematic {
  max-width: 880px;
  margin: 3rem auto 0;
}

.access-schematic svg {
  width: 100%;
  height: auto;
  display: block;
}

.access-schematic-fallback {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.access-schematic-fallback li {
  position: relative;
  padding-left: 1.4rem;
}

.access-schematic-fallback li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.access-schematic-fallback code {
  background: var(--bg-surface);
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.85em;
}

/* === IMAGE PLACEHOLDERS === */
.img-placeholder {
  background: rgba(30, 36, 48, 0.03);
  border: 2px dashed rgba(30, 36, 48, 0.18);
  border-radius: 1rem;
  padding: 3rem 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.img-placeholder span {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

.img-placeholder.img-hero {
  min-height: 320px;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 1.5rem 0;
}

/* === HERO === */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 5rem;
}

/* Cost-terrain canvas backdrop — perspective grid with anomaly pulse
   (custom 2D canvas, assets/hero-terrain.js — replaces the three.js mesh-wave) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Fade the grid out toward the bottom so the product visual sits clean */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 92%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Soft scrim behind the hero copy keeps text crisp over the terrain */
.home-hero-content::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(140%, 60rem);
  height: 28rem;
  background: radial-gradient(closest-side, rgba(231, 235, 242, 0.92) 40%, rgba(231, 235, 242, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-body);
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.8;
}

/* Hero product visual — framed dashboard, proof in the first viewport */
.hero-visual {
  width: 100%;
  max-width: 880px;
  margin-top: 1.5rem;
  padding: 0 0.75rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(30, 36, 48, 0.18),
              0 0 64px rgba(79, 70, 229, 0.12);
  animation: float-in 0.8s ease both;
}

.hero-visual .img-placeholder {
  margin: 0;
}

/* Annotation underline — the context-annotation motif on the key word.
   SVG stroke draws in on load; static under reduced motion. */
.annot {
  position: relative;
  white-space: nowrap;
}

.annot .annot-stroke {
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: -0.22em;
  width: calc(100% + 0.12em);
  height: 0.28em;
  overflow: visible;
}

.annot .annot-stroke path {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.85;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: annot-draw 0.7s ease 0.9s forwards;
}

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

/* The report artefact — a live HTML excerpt of the actual deliverable */
.report-doc {
  position: relative;
  background: #FDFDFE;
  border: 1px solid rgba(30, 36, 48, 0.12);
  border-radius: 1rem;
  box-shadow: 0 32px 70px -30px rgba(30, 36, 48, 0.45);
  padding: 2rem 2.25rem 2.25rem;
  font-size: 0.86rem;
  transform: rotate(0.4deg);
}

.report-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #1E2430;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
}

.report-doc-head .rd-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.report-doc-head .rd-period {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.rd-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.rd-kpi { border-left: 3px solid rgba(79, 70, 229, 0.35); padding-left: 0.75rem; }

.rd-kpi .num {
  display: block;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.rd-kpi .lbl {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.rd-kpi .delta-up   { color: #B45309; font-weight: 600; font-size: 0.74rem; }
.rd-kpi .delta-down { color: #0F766E; font-weight: 600; font-size: 0.74rem; }

.rd-body p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #313A4A;
  margin-bottom: 0.8rem;
}

.rd-body .hl {
  background: rgba(79, 70, 229, 0.10);
  border-radius: 3px;
  padding: 0 0.2em;
  font-variant-numeric: tabular-nums;
}

.rd-caption {
  margin-top: 1rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Persona tabs — same report-doc, three narratives (MKT-19) */
.rd-tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(30, 36, 48, 0.10);
  margin-bottom: 1.3rem;
}

.rd-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 0.55rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.rd-tab:hover { color: var(--text-body); }

.rd-tab[aria-selected="true"] {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

/* Annotation pins — land on the report in sequence, like the AI marking the page */
.pin {
  position: absolute;
  max-width: 15rem;
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.72rem;
  line-height: 1.5;
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.pin.show { opacity: 1; transform: translateY(0); }

.pin::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0F172A;
  transform: rotate(45deg);
}

.pin .pin-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.pin-ai .pin-tag { color: #7DD3FC; }
.pin-ctx { background: #0F3D3B; }
.pin-ctx::before { background: #0F3D3B; }
.pin-ctx .pin-tag { color: #5EEAD4; }
.pin-1 { top: 24%; right: -3.5rem; } .pin-1::before { top: -4px; left: 2rem; }
.pin-2 { bottom: 8%; left: -3rem; }  .pin-2::before { top: -4px; right: 2.5rem; }

/* The report row has no overflow clip — keep the pin overhang to wide
   viewports where the container's side margins can absorb it */
@media (max-width: 1359px) {
  .pin-1 { right: 0.5rem; }
  .pin-2 { left: 0.5rem; }
}

.page-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* === DATA SOURCES STRIP === */
.sources-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
}

.sources-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.sources-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Brand logos rendered monochrome dark, low-opacity — a quiet trust signal */
.sources-logo {
  width: auto;
  filter: brightness(0);
  opacity: 0.45;
  transition: opacity var(--transition);
}

.sources-logo:hover { opacity: 0.75; }

/* Per-logo heights tuned for even optical weight across mixed aspect ratios */
.sources-logo.logo-aws   { height: 34px; }
.sources-logo.logo-azure { height: 34px; }
.sources-logo.logo-gcp   { height: 24px; }

.sources-caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* === ALTERNATING FEATURE ROWS === */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Alternate the visual to the left on every second row */
.feature-row:nth-child(even) .feature-row-visual {
  order: -1;
}

.feature-row-text h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0.25rem 0 0.6rem;
}

.feature-row-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feature-row-visual {
  padding: 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.feature-row-visual .img-placeholder {
  margin: 0;
  min-height: 240px;
}

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

.step-connector {
  align-self: center;
  padding-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg,
    rgba(79, 70, 229, 0.08) 0%,
    rgba(99, 102, 241, 0.08) 100%);
  border-top: 1px solid rgba(79, 70, 229, 0.12);
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color var(--transition);
}

.service-item:hover {
  border-color: rgba(79, 70, 229, 0.2);
}

.service-item .service-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-blue);
}

.service-item .service-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.service-item h3 {
  margin-bottom: 0.75rem;
}

.service-item ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-item ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.service-item ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* === PRICING GRID === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pricing-card.featured {
  border-color: rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.05);
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.pricing-card h3 {
  font-size: 1.5rem;
}

.pricing-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* === ABOUT PAGE === */
.mission-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
}

.mission-card blockquote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--text-body);
  font-style: italic;
  font-weight: 300;
}

.mission-card blockquote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0;
  vertical-align: -1.5rem;
  color: var(--accent-blue);
  opacity: 0.4;
  margin-right: 0.25rem;
}

/* === SPLASH / HOLDING PAGES (login, contact) === */
.splash-wrap {
  min-height: calc(100vh - var(--header-height) - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.splash-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.splash-card img {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.splash-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.splash-card .splash-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.splash-card .splash-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 1.5rem 0;
}

.splash-card .splash-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.splash-card .btn-ghost,
.splash-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.splash-meta {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: rgba(30, 58, 95, 0.8);
  letter-spacing: 0.06em;
}

/* === ANIMATIONS === */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === ACCESSIBILITY / QUALITY FLOOR === */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(79, 70, 229, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual { animation: none; }
  .badge-dot { animation: none; }
  .annot .annot-stroke path { animation: none; stroke-dashoffset: 0; }
  .pin { opacity: 1; transform: none; transition: none; }
}

/* === RESPONSIVE — TABLET (768px) === */
@media (max-width: 768px) {
  .site-nav .nav-links,
  .site-nav .btn-ghost { display: none; }
  .hamburger { display: flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .feature-rows { gap: 2.5rem; }
  .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-row:nth-child(even) .feature-row-visual { order: 0; }

  .report-doc { transform: none; }

  .sources-logos { gap: 2rem; }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .step-connector { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-entity { text-align: center; }

  .btn-group { justify-content: center; }

  .splash-card { padding: 2rem 1.5rem; }
}

/* === RESPONSIVE — MOBILE (480px) === */
@media (max-width: 480px) {
  :root { --header-height: 64px; }
  .home-hero h1 { letter-spacing: -0.5px; }
  .report-doc { padding: 1.4rem 1.1rem 1.5rem; }
  .rd-kpis { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .splash-card { padding: 2rem 1.25rem; }
}
