/* ════════════════════════════════════════════════════════════
   Revenue Guru Insights · Shared Styles
   Coinbase-inspired design system using CDS Blue + IBM Plex
   ════════════════════════════════════════════════════════════ */

:root {
  /* Dark tokens */
  --d-bg: #0A0B0D;
  --d-bg-2: #111214;
  --d-bg-3: #18191C;
  --d-card: #1E1F23;
  --d-card-h: #252629;
  --d-fg: #FFFFFF;
  --d-fg-2: #E8E9EA;
  --d-fg-muted: #8A8D93;
  --d-fg-subtle: #5B5E66;
  --d-border: #2A2B2F;
  --d-border-subtle: #1F2024;

  /* Light tokens */
  --l-bg: #FFFFFF;
  --l-bg-2: #F7F8FA;
  --l-bg-3: #EFF1F4;
  --l-card: #FFFFFF;
  --l-fg: #0A0B0D;
  --l-fg-2: #25272D;
  --l-fg-muted: #5B5E66;
  --l-fg-subtle: #8A8D93;
  --l-border: #E5E7EB;
  --l-border-subtle: #F0F1F4;

  /* Accents */
  --blue: #0052FF;
  --blue-light: #3B7AFF;
  --blue-deep: #0040CC;
  --positive: #0DBB7C;
  --warning: #FFB626;
  --negative: #F24B4B;

  /* Type */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--d-bg);
  color: var(--d-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─────────── Section base ─────────── */
.section {
  position: relative;
  padding: 120px 0;
}

.section.dark {
  background: var(--d-bg);
  color: var(--d-fg);
}

.section.light {
  background: var(--l-bg);
  color: var(--l-fg);
}

.section.light-2 {
  background: var(--l-bg-2);
  color: var(--l-fg);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────── Typography ─────────── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.dark .eyebrow { color: var(--d-fg-muted); }
.light .eyebrow, .light-2 .eyebrow { color: var(--l-fg-muted); }

/* Hero (home) */
.h-hero {
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}

/* Sub-hero (deep pages) */
.h-subhero {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* Section headlines */
.h-section {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
}

.h-card {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Body */
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  max-width: 680px;
}

.dark .lead { color: var(--d-fg-2); }
.light .lead, .light-2 .lead { color: var(--l-fg-2); }

.muted {
  font-size: 16px;
  line-height: 1.6;
}
.dark .muted { color: var(--d-fg-muted); }
.light .muted, .light-2 .muted { color: var(--l-fg-muted); }

.blue { color: var(--blue-light); }
.light .blue, .light-2 .blue { color: var(--blue); }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-deep); }

.dark .btn-secondary {
  background: transparent;
  color: var(--d-fg);
  border-color: var(--d-border);
}
.dark .btn-secondary:hover {
  background: var(--d-card);
  border-color: var(--d-fg-muted);
}

.light .btn-secondary, .light-2 .btn-secondary {
  background: transparent;
  color: var(--l-fg);
  border-color: var(--l-border);
}
.light .btn-secondary:hover, .light-2 .btn-secondary:hover {
  background: var(--l-bg-2);
  border-color: var(--l-fg-muted);
}

.btn-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--blue-light);
  transition: gap 0.2s ease, color 0.2s ease;
}
.light .link-arrow, .light-2 .link-arrow { color: var(--blue); }
.link-arrow:hover { gap: 10px; }

/* ─────────── Nav ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 11, 13, 0);
  backdrop-filter: blur(0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--d-border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--d-fg);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  letter-spacing: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.nav-links > li > a {
  color: var(--d-fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links > li > a:hover { color: var(--d-fg); }

.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-signin {
  color: var(--d-fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.nav-signin:hover { color: var(--d-fg); }

.nav-talk {
  background: transparent;
  color: var(--d-fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-talk:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-cta {
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-talk, .nav-signin { white-space: nowrap; }

/* ─────────── Hero (home) ─────────── */
.hero {
  position: relative;
  padding: 200px 0 140px;
  background: var(--d-bg);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(0, 82, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 82, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-headline {
  max-width: 1100px;
  margin-bottom: 40px;
}

.hero-headline .accent { color: var(--d-fg-subtle); }
.hero-headline .blue { color: var(--blue-light); }

.hero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--d-fg-2);
  max-width: 680px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─────────── Sub-hero (deep pages) ─────────── */
.subhero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--d-bg);
  overflow: hidden;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(0, 82, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.subhero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.subhero-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-fg-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.subhero-back:hover { color: var(--d-fg); }

.subhero-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--d-fg-2);
  max-width: 680px;
  margin-top: 32px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ─────────── Trust strip ─────────── */
.trust {
  background: var(--d-bg);
  border-top: 1px solid var(--d-border-subtle);
  border-bottom: 1px solid var(--d-border-subtle);
  padding: 48px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 200px;
  line-height: 1.5;
}

.trust-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.trust-logo {
  color: var(--d-fg-subtle);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-style: italic;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.trust-logo:hover { opacity: 1; }

/* ─────────── Problem section ─────────── */
.problem-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--l-border);
}

.problem-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--l-border);
  align-items: baseline;
}

.problem-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--l-fg-subtle);
  letter-spacing: 0.05em;
}

.problem-text {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--l-fg);
}

.problem-text .strike {
  color: var(--l-fg-subtle);
}

.problem-conclusion {
  margin-top: 64px;
  padding: 48px;
  background: var(--l-fg);
  color: var(--l-bg);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.problem-conclusion .text {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 600px;
}

/* ─────────── Pillars overview (homepage) ─────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.pillar-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--r-lg);
  padding: 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  background: var(--d-card-h);
}

.pillar-card .pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-subtle);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.pillar-card .pillar-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.pillar-card .pillar-desc {
  color: var(--d-fg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.pillar-card .pillar-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar-card .pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-light);
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  transition: gap 0.2s ease;
}

.pillar-card:hover .pillar-cta { gap: 10px; }

.pillar-card .pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.pillar-card .pillar-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--d-fg-2);
}
.pillar-card .pillar-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  margin-top: 9px;
}

/* ─────────── Platform: Feature grid ─────────── */
.platform-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--d-border-subtle);
  border: 1px solid var(--d-border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 64px;
}

.feature {
  background: var(--d-bg);
  padding: 40px;
  transition: background 0.2s ease;
}

.feature:hover { background: var(--d-bg-2); }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 82, 255, 0.15);
  border: 1px solid rgba(0, 82, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue-light);
}

.feature h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.feature p {
  color: var(--d-fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.platform-cta {
  border-top: 1px solid var(--d-border-subtle);
  padding-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-cta .text {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 500px;
}

/* ─────────── Dashboard mockup ─────────── */
.product-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 60px 120px -20px rgba(0, 82, 255, 0.25),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--d-bg-2);
}

.browser { background: var(--d-bg-2); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-bg-3);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--d-border);
}

.browser-url {
  flex: 1;
  background: var(--d-bg-2);
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--d-fg-muted);
  max-width: 360px;
}

.dash {
  padding: 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  min-height: 460px;
}

.dash-side {
  border-right: 1px solid var(--d-border-subtle);
  padding-right: 20px;
}

.dash-side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--d-fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dash-side-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--d-fg-2);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-side-item.active {
  background: rgba(0, 82, 255, 0.12);
  color: var(--d-fg);
}
.dash-side-item .icon { width: 14px; height: 14px; opacity: 0.7; }

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.dash-title {
  font-size: 18px;
  font-weight: 600;
}

.dash-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-muted);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--r-sm);
  padding: 14px;
}

.kpi-label {
  font-size: 11px;
  color: var(--d-fg-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--d-fg);
  line-height: 1;
}

.kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.kpi-delta.up { color: var(--positive); }
.kpi-delta.down { color: var(--negative); }

.chart-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.chart-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--r-sm);
  padding: 16px;
}

.chart-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-title .legend {
  display: flex;
  gap: 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--d-fg-muted);
  font-weight: 400;
}
.chart-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 4px; vertical-align: middle;
}

.ring-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ring-row .leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--d-fg-2);
  font-size: 11px;
}

.ring-row .leg-item .bar {
  flex: 1;
  height: 4px;
  background: var(--d-bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.ring-row .leg-item .bar-fill {
  height: 100%;
  border-radius: 2px;
}

.ring-row .leg-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-muted);
  min-width: 30px;
  text-align: right;
}

/* ─────────── Integrations ─────────── */
.integration-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.int-card {
  background: var(--l-card);
  border: 1px solid var(--l-border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.int-card:hover { border-color: var(--l-fg-muted); }

.int-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--l-fg);
}

.int-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--l-fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.int-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.int-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.int-status.live {
  background: rgba(13, 187, 124, 0.1);
  color: #0a8a5b;
}
.int-status.live::before {
  background: var(--positive);
  box-shadow: 0 0 0 3px rgba(13, 187, 124, 0.2);
}
.int-status.dev {
  background: rgba(255, 182, 38, 0.12);
  color: #b87a00;
}
.int-status.dev::before { background: var(--warning); }
.int-status.planned {
  background: var(--l-bg-3);
  color: var(--l-fg-muted);
}
.int-status.planned::before { background: var(--l-fg-subtle); }

.int-footer {
  margin-top: 40px;
  padding: 32px;
  background: var(--l-fg);
  color: var(--l-bg);
  border-radius: var(--r);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.int-footer .text {
  font-size: 18px;
  font-weight: 500;
  max-width: 540px;
  letter-spacing: -0.01em;
}

/* ─────────── Services split ─────────── */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--d-bg-2);
  border: 1px solid var(--d-border);
}

.service-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(0, 82, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.service-visual .label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-muted);
  z-index: 2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.service-item {
  padding: 24px 0;
  border-top: 1px solid var(--d-border);
}

.service-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-item p {
  color: var(--d-fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.service-cta { margin-top: 40px; }

/* ─────────── Custom grid ─────────── */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.custom-card {
  background: var(--l-card);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
}

.custom-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--l-fg-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.custom-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.custom-card p {
  color: var(--l-fg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.custom-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: var(--l-bg-2);
  color: var(--l-fg-muted);
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────── Why us ─────────── */
.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}

.stat-block .num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--d-fg) 30%, var(--blue-light) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}

.stat-block .label {
  font-size: 14px;
  color: var(--d-fg-muted);
  line-height: 1.5;
  max-width: 240px;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.why-point h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.why-point p {
  color: var(--d-fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ─────────── Closing CTA ─────────── */
.closing {
  text-align: center;
  padding: 140px 0;
}

.closing h2 { margin-bottom: 24px; }

.closing .lead {
  margin: 0 auto 48px;
}

.closing-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.closing-meta {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--l-fg-subtle);
  letter-spacing: 0.05em;
}

.dark .closing .closing-meta { color: var(--d-fg-subtle); }

/* ─────────── Photo placeholder ─────────── */
.photo-placeholder {
  background: var(--l-bg-3);
  border: 2px dashed var(--l-border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  min-height: 400px;
}

.photo-placeholder.dark-ph {
  background: var(--d-bg-2);
  border-color: var(--d-border);
}

.photo-placeholder .ph-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.15;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.photo-placeholder .ph-desc {
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
}
.dark-ph .ph-desc { color: var(--d-fg-muted); }
.photo-placeholder .ph-desc { color: var(--l-fg-muted); }

/* ─────────── Footer ─────────── */
.footer {
  background: var(--d-bg);
  color: var(--d-fg-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--d-border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand .desc {
  font-size: 14px;
  color: var(--d-fg-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-fg-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

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

.footer-col a {
  color: var(--d-fg-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--d-fg); }

.footer-bottom {
  border-top: 1px solid var(--d-border-subtle);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--d-fg-subtle);
}

.footer-bottom .right {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ─────────── Scroll animations ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ─────────── Responsive ─────────── */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-talk { display: none; }
  .hero { padding: 140px 0 60px; min-height: auto; }
  .subhero { padding: 130px 0 60px; }

  .dash {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .dash-side { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }

  .pillars { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-header { grid-template-columns: 1fr; gap: 32px; }

  .service-split { grid-template-columns: 1fr; gap: 48px; }
  .custom-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr; gap: 48px; }
  .why-points { grid-template-columns: 1fr; gap: 24px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .problem-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .logo-text { display: none; }
  .integration-grid { grid-template-columns: 1fr; }
}
