:root {
  --bg: #f7f7fb;
  --bg-dark: #0f172a;
  --text: #101828;
  --muted: #475467;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-gold: #fbbf24;
  --brand-gold-dark: #f59e0b;
  --surface: #ffffff;
  --accent: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  padding: 32px clamp(24px, 8vw, 96px) 96px;
}

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

.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-watermark img {
  width: min(58vw, 760px);
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: 0.07;
  filter:
    grayscale(0.35)
    saturate(1.2)
    brightness(1.12)
    contrast(0.9)
    drop-shadow(0 2px 0 rgba(255,255,255,0.12))
    drop-shadow(0 14px 26px rgba(8,15,35,0.18));
  transform: translateY(18px);
  mix-blend-mode: screen;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.logo {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  text-align: center;
}

.logo small {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary {
  background: var(--brand);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.hero-cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.hero-cta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(29,78,216,0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-cta-icon svg {
  width: 32px;
  height: 32px;
}

.hero-cta-card h3 {
  margin: 0 0 8px;
  color: white;
}

.hero-cta-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin: 16px 0;
}

.hero p {
  color: rgba(255,255,255,0.85);
}

.meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.meta div strong {
  display: block;
  font-size: 1.6rem;
}

.meta div span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.panel {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}

.panel h2 {
  margin: 4px 0;
  font-size: 1.6rem;
}

.panel p {
  margin: 4px 0;
}

.panel-links {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.panel-links a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stats span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.section {
  padding: 80px clamp(24px, 8vw, 120px);
}

.data-hub {
  background: #0b1120;
  color: white;
}

.data-hub-wide {
  padding-top: 40px;
  padding-bottom: 40px;
}

.data-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.data-hub-wide .wide-table-header {
  max-width: 840px;
  margin-bottom: 20px;
}

.data-hub-wide .table-wrapper-wide {
  width: 100%;
}

.data-hub-wide .table-wrapper-wide .table-scroll {
  max-height: 240px;
}

.data-column.left {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.data-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

.data-points li strong {
  display: block;
  font-size: 2rem;
}

.data-column.middle .table-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.table-scroll {
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 8px;
}

.table-scroll::-webkit-scrollbar {
  width: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.table-wrapper th,
.table-wrapper td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-wrapper th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.table-wrapper td {
  font-size: 1rem;
}

.table-wrapper .highlight {
  color: #fbbf24;
}

.data-column.right {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-column.right ol {
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.data-column.right .mini-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

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

.section-header {
  max-width: 720px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.product-feature-blurb {
  margin-top: 24px;
}

.product-feature-card {
  background: white;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.product-feature-card .feature-lede {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-feature-blurb p {
  margin-bottom: 12px;
  color: var(--muted);
}

.product-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-feature-list li {
  border: 1px solid #e4e7ec;
  background: white;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

.product-feature-list li:hover {
  border-color: var(--brand);
}

.section.dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-matrix table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.feature-matrix th,
.feature-matrix td {
  padding: 16px;
  border-bottom: 1px solid #f2f4f7;
}

.feature-matrix thead th {
  background: #101828;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-matrix tbody tr:nth-child(even) {
  background: #fcfcfd;
}

.feature-matrix th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

.feature-matrix td {
  text-align: center;
  font-weight: 600;
}

.feature-matrix td .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent);
  font-size: 1rem;
}

.feature-matrix td .dash {
  color: #98a2b3;
}

.feature-matrix .matrix-note {
  margin-top: 16px;
  color: var(--muted);
}

.cards article,
.resources article {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.audience-group {
  margin-top: 32px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(29,78,216,0.08), rgba(249,115,22,0.1));
  border: 1px solid rgba(29,78,216,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 24px 54px rgba(15,23,42,0.08);
}

.audience-span-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%);
  border: 1px solid rgba(29,78,216,0.28);
  border-radius: 24px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 22px rgba(29,78,216,0.12), 0 2px 0 rgba(29,78,216,0.1);
}

.audience-span-box span {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.audience-cards {
  margin-top: 24px;
}

.audience-group .product-card-wide {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(29,78,216,0.14);
  box-shadow: 0 20px 40px rgba(29,78,216,0.08);
}

.product-card-wide {
  min-height: 280px;
}

.product-card-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-card-stack .product-card-overlay-stack {
  display: grid;
  gap: 18px;
}

.product-card-stack .product-card-overlay {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 18px 36px rgba(15,23,42,0.12);
}

.product-card-stack .product-card-overlay h4 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.product-card-stack .product-card-overlay ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.product-card-stack .product-card-overlay li + li {
  margin-top: 12px;
}

.product-card-stack .product-card-overlay ul ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

.product-card-wide h3 {
  margin-bottom: 0;
}

.product-card-filled .product-card-body {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 18px 36px rgba(15,23,42,0.12);
}

.product-card-filled .product-card-body ul {
  margin: 0;
  padding-left: 20px;
}

.product-card-filled .product-card-body li + li {
  margin-top: 12px;
}

.product-card-stack > h3 {
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .product-cards-grid .product-card-wide {
    grid-column: span 2;
  }

  .product-card-stack,
  .product-card-filled {
    min-height: 860px;
  }

  .product-card-stack > h3 {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
  }

  .product-card-stack .product-card-overlay-stack {
    position: absolute;
    top: 88px;
    left: 24px;
    right: 24px;
    max-width: 760px;
  }
}

.cards h3 {
  margin-top: 0;
}

.metrics div {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}

.resources .tag,
.testimonial .eyebrow {
  background: rgba(249,115,22,0.15);
  color: var(--brand-dark);
}

.testimonial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: #fff5ed;
  gap: 32px;
}

blockquote {
  font-size: 1.3rem;
  margin: 16px 0;
  color: #7a3414;
}

.logo-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.logo-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(15,23,42,0.1);
}

.login .panel {
  background: white;
  color: var(--text);
  border: none;
  box-shadow: 0 20px 50px rgba(15,23,42,0.12);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e4e7ec;
  font-size: 1rem;
}

button.primary {
  border: none;
  cursor: pointer;
}

.nav-login {
  background: var(--brand-gold);
  color: #101828;
}

.nav-login:hover {
  background: var(--brand-gold-dark);
  color: #101828;
}

.inline {
  font-size: 0.9rem;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: #f2f4f7;
  margin: 24px 0;
}

footer {
  background: var(--bg-dark);
  color: white;
  padding: 48px clamp(24px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

footer a {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 8px;
}

footer .copyright {
  grid-column: 1 / -1;
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 640px) {
  nav ul {
    display: none;
  }

  .cta-group {
    width: 100%;
    justify-content: flex-start;
  }

  .meta {
    flex-direction: column;
  }

  .hero-watermark img {
    width: min(110vw, 760px);
    opacity: 0.06;
  }
}

/* Mobile-first cleanup pass for phone review */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  header.hero {
    padding: 20px 16px 48px;
  }

  nav {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.35rem;
    align-items: flex-start;
    text-align: left;
  }

  .logo img {
    height: 32px;
  }

  nav .cta-group {
    gap: 8px;
  }

  .primary,
  .ghost {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 38px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .panel {
    border-radius: 18px;
    padding: 16px;
  }

  .panel-links {
    flex-wrap: wrap;
  }

  .hero-cta-cards,
  .grid,
  .data-columns,
  .testimonial,
  footer {
    grid-template-columns: 1fr;
  }

  .hero-cta-card,
  .cards article,
  .resources article,
  .product-feature-card,
  .audience-group,
  .product-card-stack .product-card-overlay,
  .product-card-filled .product-card-body {
    border-radius: 18px;
    padding: 18px;
  }

  .section {
    padding: 48px 16px;
  }

  .data-hub-wide {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .data-hub-wide .wide-table-header,
  .wide-table-header > div,
  .wide-table-header > div > div {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .wide-table-header div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0;
  }

  .table-wrapper table {
    min-width: 680px;
  }

  .feature-matrix {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .feature-matrix table {
    min-width: 680px;
  }

  .audience-group {
    margin-top: 24px;
  }

  .audience-span-box {
    min-height: 86px;
    border-radius: 18px;
  }

  .product-card-wide {
    min-height: 0;
  }

  .metrics div {
    padding: 18px;
  }

  footer {
    padding: 36px 16px;
  }
}

@media (max-width: 420px) {
  nav .cta-group a,
  .hero-content .cta-group a {
    width: 100%;
    text-align: center;
  }

  .wide-table-header div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
