/* ==========================================================================
   LVision v2 — Shared Stylesheet
   Premium B2B AI Systems Authority
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted Inter font (no Google Fonts dependency)
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Palette — Precision Dark + Gold */
  --bg-base: #080d16;           /* Deepest — hero, CTA band */
  --bg-s1: #0d1525;             /* Surface 1 — alternate sections */
  --bg-s2: #111d32;             /* Surface 2 — card backgrounds */
  --bg-s3: #162540;             /* Surface 3 — hover states, elevated */

  /* Light surfaces (for content pages) */
  --white: #ffffff;
  --off-white: #f8f9fa;

  /* Gold accent */
  --gold: #c9a84c;
  --gold-hover: #e0be6a;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --gold-border: rgba(201, 168, 76, 0.20);
  --gold-glow: rgba(201, 168, 76, 0.08);
  --header-shadow: rgba(8, 13, 22, 0.4);

  /* Text hierarchy — 4 levels */
  --text-1: #edf1f8;            /* Primary — headlines, key content */
  --text-2: #8ba5c2;            /* Secondary — body text */
  --text-3: #4d6a87;            /* Tertiary — captions */
  --text-4: #2a4060;            /* Quaternary — muted dividers */

  /* Light mode text (for off-white sections) */
  --text-dark: #1a1a2e;

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-s: rgba(255,255,255,0.10);
  --border-gold: var(--gold-border);

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 80px;
  --space-15: 96px;
  --space-16: 112px;
  --space-17: 128px;
  --space-18: 160px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Inter', 'SF Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.65s;

  /* Container */
  --container-max: 1200px;
  --content-max: 720px;
  --header-height: 68px;
}

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  background-color: var(--bg-base);
  overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-1);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}

h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

p {
  margin-bottom: var(--space-5);
  max-width: var(--content-max);
}

a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--gold);
}

/* Gradient text utility (hero keywords) */
.gradient-text {
  background: linear-gradient(135deg, #c9a84c 0%, #e0be6a 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label (gold, uppercase, with left border bar) */
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
  position: relative;
  padding-left: var(--space-7);
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-11);
}

@media (max-width: 900px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Content copy container (max width 720px) */
.copy-container {
  max-width: var(--content-max);
}

/* --------------------------------------------------------------------------
   Layout & Grid
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-7);
}

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

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

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

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

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

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

/* Split layout (2-column: content 55%, visual 45%) */
.split-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-11);
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* Stack spacing */
.stack > * + * {
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   Components: Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-base);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 0 0 6px var(--gold-glow);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-s);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Components: Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-s2);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: 12px;
  padding: var(--space-10);
  transition: all var(--duration-normal) var(--ease-snappy);
}

.card:hover {
  border-top-color: var(--gold);
  background: var(--bg-s3);
  box-shadow: 0 0 0 8px var(--gold-glow);
}

/* Light card variant (for solutions/industries) */
.card-light {
  background: var(--white);
  border-color: rgba(0,0,0,0.06);
  color: var(--text-dark);
}

.card-light:hover {
  border-top-color: var(--gold);
  background: var(--off-white);
  box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.08);
}

.card-light h3 {
  color: var(--text-dark);
}

.card-light p {
  color: var(--text-dark);
  opacity: 0.85;
}

/* Outcome tag (gold badge) */
.outcome-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--bg-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   Components: Stat Strip
   -------------------------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  background: var(--gold-dim);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: var(--space-8) var(--space-6);
  margin-top: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: var(--space-2);
}

@media (max-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Components: Timeline (How It Works)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--gold-dim);
}

.timeline-step {
  position: relative;
  padding-left: 72px;
  margin-bottom: var(--space-12);
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  background: var(--bg-base);
  z-index: 1;
}

.step-marker:focus-visible {
  outline: 2px solid var(--text-1);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Components: Industry/Solutions Grid Cards
   -------------------------------------------------------------------------- */
.use-case-list {
  list-style: none;
}

.use-case-list li {
  position: relative;
  padding-left: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.use-case-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* Light variants */
.card-light .use-case-list li,
section.light .use-case-list li {
  color: var(--text-dark);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Components: Process Steps (Homepage teaser)
   -------------------------------------------------------------------------- */
.process-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.process-line {
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  z-index: 0;
  transform: translateY(-50%);
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: var(--space-2);
  display: block;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .process-teaser {
    flex-direction: column;
    gap: var(--space-6);
  }
  .process-line {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation - IMPROVED
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow var(--duration-normal) var(--ease-snappy);
}

/* Scroll-based shadow effect */
.site-header.scrolled {
  box-shadow: 0 4px 24px var(--header-shadow);
  background: rgba(8, 13, 22, 0.96);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 var(--space-11);
}

@media (max-width: 900px) {
  .header-content {
    padding: 0 var(--space-6);
  }
}

@media (max-width: 640px) {
  .header-content {
    padding: 0 var(--space-4);
  }
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}


.logo-tagline {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-text span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-9);
}

.nav-links {
  display: flex;
  gap: var(--space-7);
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--duration-fast) ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--duration-fast) ease;
}

.nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.hamburger {
  display: none;
  background: none;
  border: 2px solid transparent;
  color: var(--text-1);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all var(--duration-fast) ease;
}

.hamburger:hover {
  color: var(--gold);
}

.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hamburger:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-14);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-snappy);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 18px;
    padding: 8px 16px;
  }

  .nav-link:focus-visible {
    outline-offset: 6px;
  }

  .hamburger {
    display: block;
  }

  .hamburger[aria-expanded="true"] {
    color: var(--gold);
  }

  .nav-menu .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: var(--space-11) 0;
  margin-top: var(--space-17);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.footer-logo {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.footer-links a {
  color: var(--text-3);
  margin-left: var(--space-5);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  .footer-links a {
    margin: 0 var(--space-2);
  }
}

/* --------------------------------------------------------------------------
   Section Spacing & Backgrounds
   -------------------------------------------------------------------------- */
section {
  padding: var(--space-17) 0;
}

section.dark {
  background: var(--bg-base);
  color: var(--text-2);
}

section.light {
  background: var(--white);
  color: var(--text-dark);
}

section.light h1,
section.light h2,
section.light h3,
section.light h4,
section.light h5,
section.light h6 {
  color: var(--text-dark);
}

section.light p,
section.light li,
section.light strong {
  color: var(--text-dark);
}

section.light a:not(.nav-link):not(.btn) {
  color: var(--text-dark);
}

section.light a:not(.nav-link):not(.btn):hover {
  color: var(--gold);
}

section.surface {
  background: var(--bg-s1);
  color: var(--text-2);
}

/* Noise texture overlay for depth */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.noise-overlay > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Page-specific Hero Styles
   -------------------------------------------------------------------------- */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-base);
}

/* Hero gradient fallback until image is added */
.hero-gradient {
  background: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(13,21,37,0.6) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg-base) 0%, var(--bg-s1) 100%);
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-11);
}

.hero-label {
  composes: section-label;
}

.hero-title {
  composes: h1;
  margin-bottom: var(--space-6);
}

.hero-subtext {
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: var(--space-9);
}

.hero-ctas {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.hero-divider {
  width: 100px;
  height: 2px;
  background: var(--gold-border);
  margin: var(--space-8) 0;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-gold { color: var(--gold); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted-dark); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Animation: Reveal on Scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-snappy),
              transform var(--duration-slow) var(--ease-snappy);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay */
.reveal[data-stagger="1"] { transition-delay: 80ms; }
.reveal[data-stagger="2"] { transition-delay: 160ms; }
.reveal[data-stagger="3"] { transition-delay: 240ms; }
.reveal[data-stagger="4"] { transition-delay: 320ms; }
.reveal[data-stagger="5"] { transition-delay: 400ms; }

/* Stat counter */
.stat-number.counting {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Print Styles (optional for now)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn, .hamburger {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  section {
    page-break-inside: avoid;
  }
}
