:root {
  --bg: #18181b;
  --surface: #27272a;
  --surface-strong: #101114;
  --surface-soft: rgba(39, 39, 42, 0.78);
  --border: rgba(161, 161, 170, 0.22);
  --border-strong: rgba(129, 140, 248, 0.36);
  --text: #ffffff;
  --muted: #d4d4d8;
  --muted-strong: #a1a1aa;
  --indigo: #6366f1;
  --indigo-dark: #312e81;
  --purple: #7c3aed;
  --green: #10b981;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 28%),
    linear-gradient(180deg, #131417 0%, #18181b 35%, #111215 100%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

.surface-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-frame {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.78), rgba(24, 24, 27, 0.92));
}

.hero-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 19, 23, 0.96) 0%, rgba(41, 39, 93, 0.88) 100%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.3);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.12), rgba(8, 8, 10, 0.34));
}

.hero-iframe-shell {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  transition: opacity 300ms ease;
}

.hero-iframe-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.06);
  filter: saturate(0.58) contrast(0.84) brightness(0.62) blur(1.2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.34);
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc, #818cf8);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.8);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c7d2fe 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 0.88rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  border: 1px solid rgba(199, 210, 254, 0.35);
  color: #ffffff;
  font-weight: 700;
  padding: 0.95rem 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.22);
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  padding: 0.95rem 1.4rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(129, 140, 248, 0.36);
}

.stat-card,
.buyer-card,
.proof-card,
.faq-card,
.article-card {
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  background: rgba(39, 39, 42, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.buyer-card,
.proof-card,
.article-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.buyer-card:hover,
.proof-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(49, 46, 129, 0.18);
}

.demo-frame {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(9, 9, 11, 0.88);
  box-shadow: var(--shadow);
}

.demo-frame iframe {
  width: 100%;
  height: 760px;
  border: 0;
  background: #0b1120;
}

.demo-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  max-width: 100%;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-toggle button {
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

@media (min-width: 640px) {
  .demo-toggle button {
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
  }
}

.demo-toggle button.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(124, 58, 237, 0.95));
  color: #ffffff;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(161, 161, 170, 0.24);
  background: rgba(9, 9, 11, 0.4);
  color: #ffffff;
  padding: 0.95rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-control::placeholder,
.form-textarea::placeholder {
  color: #a1a1aa;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.64);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.16);
  background: rgba(9, 9, 11, 0.62);
}

.form-note {
  border-radius: 1rem;
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(99, 102, 241, 0.12);
}

.success-state,
.error-state {
  display: none;
  border-radius: 1rem;
  padding: 1rem;
}

.success-state {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}

.error-state {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fecaca;
}

.success-state.is-visible,
.error-state.is-visible {
  display: block;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 12, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.anchor-card {
  display: block;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.35rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.anchor-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(99, 102, 241, 0.12);
}

.footer-link {
  color: #c7d2fe;
}

.footer-link:hover {
  color: #ffffff;
}

.cta-strip {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(124, 58, 237, 0.14)),
    rgba(39, 39, 42, 0.72);
  border: 1px solid rgba(129, 140, 248, 0.24);
}

.mini-kicker {
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-copy {
  color: #d4d4d8;
  line-height: 1.75;
}

/* Secondary / add-on bundle tiles on homepage (B2 licensing layout) */
.bundle-addon-card {
  border-color: rgba(161, 161, 170, 0.14);
  background: rgba(24, 24, 27, 0.55);
}

.bundle-addon-card:hover {
  border-color: rgba(129, 140, 248, 0.22);
}

@media (max-width: 1023px) {
  .demo-frame iframe {
    height: 620px;
  }
}

@media (max-width: 767px) {
  .hero-iframe-shell {
    display: none;
  }

  .demo-frame iframe {
    height: 500px;
  }
}
