/* xdiego.ai landing — Decision Console tokens (copied; no dashboard imports) */

:root {
  --dc-bg: #0a0f1c;
  --dc-surface: #121a2c;
  --dc-surface-elevated: #18233a;
  --dc-surface-inset: #0d1526;
  --dc-border: #233150;
  --dc-divider: #1b2740;
  --dc-text: #e8edf7;
  --dc-text-secondary: #98a4be;
  --dc-text-disabled: #5b6780;
  --dc-accent: #2f6bff;
  --dc-accent-hover: #4b82ff;
  --dc-approve: #10b981;
  --dc-reject: #ef4444;
  --dc-pending: #2f6bff;
  --dc-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --dc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --dc-radius-card: 8px;
  --dc-radius-chip: 6px;
  --content-max: 1080px;
  --pad-x: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dc-sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--dc-bg);
  color: var(--dc-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.mono {
  font-family: var(--dc-mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--dc-border);
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  height: 22px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dc-radius-chip);
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--dc-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--dc-accent-hover);
}

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

.btn-ghost:hover {
  border-color: var(--dc-accent);
  color: var(--dc-text);
}

/* Hero — type only over particle field */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4.25rem, 10vw, 7.5rem);
}

/* MKT-1.6 — ambient glow under particles (one of three permitted gradients) */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 900px at 50% 28%,
    rgba(47, 107, 255, 0.07),
    transparent 70%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--dc-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--dc-divider) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 15%, transparent 78%);
  pointer-events: none;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.hero-copy {
  margin-inline: auto;
  text-align: center;
}

.hero-copy .hero-headline {
  margin: 0 auto;
  max-width: none;
  width: max-content;
  max-width: 100%;
  color: #f5f5f7;
  font-size: clamp(2.75rem, 8.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  /* MKT-1.7 — richer end stop; color starts earlier into the final word */
  background-image: linear-gradient(90deg, #f5f5f7 0%, #f5f5f7 48%, #afc4ff 76%, #7c8fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-copy .hero-headline {
    background-image: none;
    -webkit-text-fill-color: unset;
    color: #f5f5f7;
  }
}

.hero-copy .sub {
  margin: 1.65rem auto 0;
  max-width: min(54em, 100%);
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: #a1a6b4;
  text-wrap: pretty;
}

/* MKT-1.7 — bold emphasis shares the hero headline gradient */
.em {
  font-weight: 600;
  font-style: normal;
  color: #f5f5f7;
  background-image: linear-gradient(90deg, #f5f5f7 0%, #afc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .em {
    background-image: none;
    -webkit-text-fill-color: unset;
    color: #f5f5f7;
  }
}

.hero-copy .sub-beat {
  display: block;
  margin-top: 0.85rem;
}

.hero-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Verified stat band */
.stat-band {
  border-top: 1px solid #1b2740;
  border-bottom: 1px solid #1b2740;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

@media (min-width: 860px) {
  .stat-band-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.stat-item {
  min-width: 0;
}

.stat-value {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--dc-text);
}

.stat-label {
  margin: 0.65rem 0 0;
  max-width: 16rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--dc-text-disabled);
}

/* Decision Card mock — product frame (S2) */
.s2-product-frame {
  margin: 2.25rem auto 0;
  display: flex;
  justify-content: center;
}

.mock-card {
  width: min(100%, 420px);
  position: relative;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-card);
  background: var(--dc-surface);
  padding: 1rem 1rem 1rem 1.125rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.03) inset;
  transform: none;
  overflow: hidden;
}

.mock-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dc-pending);
}

.mock-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mock-title-left {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.mock-status {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--dc-radius-chip);
  border: 1px solid color-mix(in srgb, var(--dc-pending) 40%, transparent);
  padding: 0.15rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dc-pending);
}

.mock-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dc-text);
}

.mock-impact {
  flex-shrink: 0;
  border-radius: var(--dc-radius-chip);
  border: 1px solid color-mix(in srgb, var(--dc-approve) 30%, transparent);
  background: color-mix(in srgb, var(--dc-approve) 12%, transparent);
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dc-approve);
  white-space: nowrap;
}

.mock-why {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--dc-text-secondary);
}

.mock-why strong {
  font-weight: 600;
  color: var(--dc-text-secondary);
}

.mock-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 420px) {
  .mock-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mock-stat {
  border: 1px solid var(--dc-divider);
  border-radius: var(--dc-radius-chip);
  background: var(--dc-surface-elevated);
  padding: 0.5rem 0.55rem;
}

.mock-stat-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dc-text-disabled);
}

.mock-stat-value {
  margin-top: 0.2rem;
  font-family: var(--dc-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--dc-text);
  line-height: 1.2;
}

.mock-campaign {
  margin-top: 0.75rem;
}

.mock-campaign-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dc-text-disabled);
}

.mock-campaign-box {
  margin-top: 0.35rem;
  border: 1px solid var(--dc-divider);
  border-radius: var(--dc-radius-chip);
  background: var(--dc-surface-elevated);
  padding: 0.4rem 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--dc-mono);
  font-size: 0.6875rem;
  color: var(--dc-text);
}

.mock-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mock-btn {
  border-radius: var(--dc-radius-chip);
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.mock-btn-accept {
  background: var(--dc-accent);
  border: none;
  color: #fff;
}

.mock-btn-edit {
  background: transparent;
  border: 1px solid var(--dc-border);
  color: var(--dc-text-secondary);
}

.mock-btn-reject {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--dc-reject) 45%, transparent);
  color: color-mix(in srgb, var(--dc-reject) 85%, #fff);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section + .section {
  border-top: 1px solid var(--dc-divider);
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}

.section-title-wide {
  max-width: 22ch;
}

.section-body {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dc-text-secondary);
}

.section-body-designed {
  max-width: 46rem;
  color: #a1a6b4;
  font-weight: 400;
}

.section-body strong {
  color: var(--dc-text);
  font-weight: 600;
}

/* Line icons — monochrome, typography-adjacent */
.line-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--dc-text-secondary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* S2 Offerings — What you get */
.offerings-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .offerings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.offer-panel {
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-card);
  background: var(--dc-surface);
  padding: 1.5rem;
}

.offer-panel h3 {
  margin: 1rem 0 0;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
}

.offer-panel p {
  margin: 0.85rem 0 0;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--dc-text-secondary);
}

.offer-banner {
  position: relative;
  margin-top: 1.25rem;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-card);
  background: var(--dc-surface-inset);
  padding: 1.5rem;
  overflow: hidden;
}

/* MKT-1.6 — closed-loop accent (one of three permitted gradients) */
.offer-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2f6bff, #7c5cff);
  pointer-events: none;
}

.offer-banner h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
}

.offer-banner p {
  margin: 0.75rem 0 0;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--dc-text-secondary);
}

@media (max-width: 640px) {
  .offer-banner {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* S3 How it works / loop */
.loop-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .loop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.loop-block {
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-card);
  background: var(--dc-surface);
  padding: 1.5rem;
}

.loop-marker {
  margin-top: 1rem;
  font-family: var(--dc-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dc-accent);
}

.loop-block h3 {
  margin: 0.55rem 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.loop-block p {
  margin: 0.75rem 0 0;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--dc-text-secondary);
}

/* S3 Decision OS panel */
.engine-panel {
  margin-top: 2rem;
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  background: var(--dc-surface-inset);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.engine-kicker {
  font-family: var(--dc-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc-accent);
}

.engine-panel .section-title {
  margin-top: 0.65rem;
  max-width: 22ch;
}

.engine-panel .section-body {
  max-width: 48rem;
}

/* S6 CTA */
.cta-close {
  text-align: left;
}

.cta-close .section-title {
  max-width: 20ch;
}

.cta-meta {
  margin: 1.25rem 0 0;
  color: var(--dc-text-secondary);
  font-size: 1.0625rem;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.cta-email {
  font-family: var(--dc-mono);
  font-size: 0.9375rem;
  color: var(--dc-text-secondary);
}

.cta-email:hover {
  color: var(--dc-text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--dc-border);
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--dc-text-disabled);
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-left .wordmark img {
  height: 16px;
  opacity: 0.85;
}

.footer-left a:hover {
  color: var(--dc-text-secondary);
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
