/* ===========================
   BANALYTICS — BRAND SYSTEM
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --mustard:      #E29930;
  --cerulean:     #217CA3;
  --asphalt:      #32384D;
  --shadow:       #211F30;
  --thunder:      #505160;
  --waterfall:    #68829E;
  --moss:         #AEBD38;
  --meadow:       #598234;

  --bg:           #0F0E1A;
  --bg-card:      #1A1929;
  --bg-card-alt:  #1E1D2E;
  --border:       rgba(255,255,255,0.07);
  --text:         #E8E6F0;
  --text-muted:   #8A89A0;
  --text-dim:     #5A5870;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ===== GRID TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
          linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.kb-page,
.article-page {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: #fff;
  color: var(--shadow);
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.kb-page::before,
.article-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(33,31,48,0.045) 1px, transparent 1px),
          linear-gradient(90deg, rgba(33,31,48,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

.kb-page a,
.article-page a {
  color: var(--cerulean);
}

.kb-page .w3-white,
.kb-page .w3-card,
.kb-page .w3-card-0,
.kb-page .w3-card-2,
.kb-page .w3-card-4,
.article-page .w3-white,
.article-page .w3-card,
.article-page .w3-card-0,
.article-page .w3-card-2,
.article-page .w3-card-4 {
  background-color: #fff !important;
  color: var(--shadow) !important;
}

.kb-page .kb-sidebar,
.article-page .article-sidebar {
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.kb-page .kb-sidebar .tablink,
.article-page .article-sidebar .tablink {
  border-radius: 6px;
  color: var(--shadow);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.kb-page .kb-sidebar .tablink:hover,
.article-page .article-sidebar .tablink:hover {
  background: rgba(33,124,163,0.08) !important;
  color: var(--cerulean);
}

.kb-page .kb-sidebar .kb-submenu {
  margin: 0.125rem 0 0.5rem;
  padding-left: 0.75rem !important;
  border-left: 1px solid rgba(33,31,48,0.12);
}

.kb-page .kb-sidebar .kb-active-section {
  background: rgba(33,124,163,0.1) !important;
  color: var(--cerulean);
}

.kb-page .kb-sidebar .kb-active-link {
  background: rgba(226,153,48,0.16) !important;
  color: var(--shadow);
  border-left: 3px solid var(--mustard);
  font-weight: 700;
}

.article-page .article-sidebar .article-active-link {
  background: rgba(226,153,48,0.16) !important;
  color: var(--shadow);
  border-left: 3px solid var(--mustard);
  font-weight: 700;
}

.article-page .article-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 2rem;
  width: 100%;
}

.article-page .article-shell-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.article-page .article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.article-page .article-nav-link {
  display: block;
  padding: 0.65rem 0.8rem;
  text-align: left;
  text-decoration: none;
  line-height: 1.35;
}

.article-page .article-content {
  min-width: 0;
}

.article-page .article-copy {
  padding: 0.01rem 1rem;
}

.article-page .article-body {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.article-page .article-body h1,
.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4,
.article-page .article-body h5 {
  font-family: var(--font-display);
  color: var(--shadow);
  line-height: 1.2;
}

.article-page .article-body h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.article-page .article-body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-page .article-body h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-page .article-body p {
  margin: 0 0 1rem;
  color: var(--thunder);
}

.article-page .article-body ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.article-page .article-body li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
  color: var(--thunder);
}

.article-page .article-section {
  margin: 0 0 1.5rem;
  padding: 0;
}

.article-page .article-two-column,
.article-page .article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-page .article-note {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-page .article-note-warm {
  background: rgba(226,153,48,0.12);
  border: 1px solid rgba(226,153,48,0.45);
  color: #6c4a12;
}

.article-page .article-note-narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .article-card-wrap {
  min-width: 0;
}

.article-page .article-info-card {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.article-page .article-info-card:hover {
  border-color: rgba(226,153,48,0.25);
  transform: translateY(-2px);
}

.article-page .article-card-title {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-page .article-number-icon {
  color: var(--moss);
}

.article-page .article-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-page .article-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.article-page .article-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-page .article-info-card li::before {
  content: '✓';
  color: var(--moss);
  font-size: 0.875rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.article-page .article-info-card strong {
  color: var(--text);
  font-weight: 600;
}

.article-page .article-table {
  width: 100%;
  border: 1px solid rgba(33,31,48,0.14);
  border-collapse: collapse;
}

.article-page .article-table th,
.article-page .article-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(33,31,48,0.12);
  text-align: left;
  vertical-align: top;
}

.article-page .article-table tr:nth-child(even) {
  background: rgba(33,124,163,0.05);
}

.article-page .w3-container {
  padding: 0.01rem 1rem;
}

.article-page .w3-content {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .w3-row::after {
  content: '';
  display: table;
  clear: both;
}

.article-page .w3-half {
  float: left;
  width: 50%;
}

.article-page .w3-rest {
  overflow: hidden;
}

.article-page .w3-col {
  float: left;
}

.article-page .w3-block {
  display: block;
  width: 100%;
}

.article-page .w3-button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.article-page .w3-button:hover {
  background: rgba(33,124,163,0.08);
}

.article-page .w3-left-align {
  text-align: left;
}

.article-page .w3-right-align {
  text-align: right;
}

.article-page .w3-center {
  text-align: center;
}

.article-page .w3-image {
  max-width: 100%;
  height: auto;
}

.article-page .w3-responsive {
  display: block;
  overflow-x: auto;
}

.article-page .w3-responsive iframe {
  max-width: 100%;
}

.article-page .w3-table {
  width: 100%;
  border-collapse: collapse;
}

.article-page .w3-table th,
.article-page .w3-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(33,31,48,0.12);
  text-align: left;
  vertical-align: top;
}

.article-page .w3-striped tr:nth-child(even) {
  background: rgba(33,124,163,0.05);
}

.article-page .w3-border,
.article-page .w3-border-grey {
  border: 1px solid rgba(33,31,48,0.14) !important;
}

.article-page .w3-border-left {
  border-left: 4px solid rgba(33,124,163,0.35) !important;
}

.article-page .w3-border-aqua {
  border-color: rgba(33,124,163,0.45) !important;
}

.article-page .w3-border-yellow {
  border: 1px solid rgba(226,153,48,0.45) !important;
}

.article-page .w3-card,
.article-page .w3-card-0,
.article-page .w3-card-2,
.article-page .w3-card-4 {
  box-shadow: 0 10px 28px rgba(33,31,48,0.08);
}

.article-page .w3-padding {
  padding: 0.75rem;
}

.article-page .w3-padding-16 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.article-page .w3-padding-card {
  padding: 1.25rem;
}

.article-page .w3-margin {
  margin: 1rem;
}

.article-page .w3-margin-top {
  margin-top: 1rem;
}

.article-page .w3-margin-bottom {
  margin-bottom: 1rem;
}

.article-page .w3-round-large {
  border-radius: var(--radius);
}

.article-page .w3-hover-shadow {
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-page .w3-hover-shadow:hover {
  box-shadow: 0 18px 42px rgba(33,31,48,0.14);
  transform: translateY(-2px);
}

.article-page .w3-shadow {
  box-shadow: 0 10px 28px rgba(33,31,48,0.12);
}

.article-page .w3-pale-blue {
  background: rgba(33,124,163,0.08);
}

.article-page .w3-pale-yellow {
  background: rgba(226,153,48,0.12);
}

.article-page .w3-white {
  background: #fff;
}

.article-page .w3-moss {
  background: var(--moss);
  color: var(--shadow);
}

.article-page .w3-text-dark-grey {
  color: var(--shadow);
}

.article-page .w3-text-cerulean-blue {
  color: var(--cerulean);
}

.article-page .w3-text-moss {
  color: var(--moss);
}

.article-page .w3-text-brown {
  color: #6c4a12;
}

.article-page .w3-text-red {
  color: #b91c1c;
}

.article-page .w3-large {
  font-size: 1.125rem;
  font-weight: 700;
}

.article-page .w3-small {
  font-size: 0.875rem;
}

.article-page .w3-hover-opacity-off:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .article-page .article-layout {
    padding: 4rem 1rem;
  }

  .article-page .article-shell-grid {
    grid-template-columns: 1fr;
  }

  .article-page .article-sidebar {
    position: static;
  }

  .article-page .article-two-column,
  .article-page .article-card-grid {
    grid-template-columns: 1fr;
  }

  .article-page .w3-half {
    width: 100%;
  }
}

/* ===== NAVIGATION ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--mustard);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  background: var(--mustard) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 0.4rem 1rem !important;
}

.nav-cta:hover {
  background: #f0aa3a !important;
}

.nav-login-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 1rem !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(226,153,48,0.12);
  border: 1px solid rgba(226,153,48,0.3);
  color: var(--mustard);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 em {
  font-style: normal;
  color: var(--mustard);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--mustard);
  color: #000;
}
.btn-primary:hover { background: #f0aa3a; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

.btn-cerulean {
  background: var(--cerulean);
  color: #fff;
}
.btn-cerulean:hover { background: #2590c2; transform: translateY(-1px); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ===== SECTION ===== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em { font-style: normal; color: var(--mustard); }

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(226,153,48,0.25);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-mustard { background: rgba(226,153,48,0.15); }
.icon-cerulean { background: rgba(33,124,163,0.15); }
.icon-moss { background: rgba(174,189,56,0.15); }
.icon-waterfall { background: rgba(104,130,158,0.15); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PERSONA CARDS (index) ===== */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
}

.persona-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--mustard));
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.persona-card .p-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.persona-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.persona-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.persona-card .p-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent, var(--mustard));
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* ===== FEATURES TABLE / LIST ===== */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.feature-item .fi-check {
  color: var(--moss);
  font-size: 0.875rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card.featured {
  border-color: var(--mustard);
  background: linear-gradient(135deg, rgba(226,153,48,0.07), var(--bg-card));
}

.pricing-badge {
  display: inline-block;
  background: var(--mustard);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--moss);
  font-size: 0.875rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ===== DIVIDER ===== */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== HIGHLIGHT / CALLOUT ===== */
.callout {
  background: linear-gradient(135deg, rgba(33,124,163,0.1), rgba(226,153,48,0.06));
  border: 1px solid rgba(33,124,163,0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.callout h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.callout p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ===== STAT ROW ===== */
.stat-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mustard);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== PERSONA PAGE HERO ===== */
.persona-hero {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.persona-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.persona-hero .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.persona-hero .breadcrumb a:hover { color: var(--text-muted); }

.persona-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.persona-hero .accent { color: var(--accent-color, var(--mustard)); }

.persona-hero .sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ===== PAIN POINTS ===== */
.pain-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,80,80,0.15);
  border-left: 3px solid #e05555;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pain-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ===== SOLUTION CARD ===== */
.solution-card {
  border-left: 3px solid var(--accent-color, var(--mustard));
}

/* ===== DOWNLOAD SECTION ===== */
.download-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1;
  min-width: 240px;
  transition: border-color var(--transition);
}

.download-card:hover { border-color: rgba(226,153,48,0.3); }

/* support both .download-icon and .card-icon used as the tile */
.download-icon,
.download-card .card-icon {
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  /* keep bg from .icon-* classes; provide fallback */
  background: rgba(255,255,255,0.06);
}

.download-info {
  flex: 1;          /* grow to fill remaining card height */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.download-info h3,
.download-info h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.download-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;           /* push button to bottom */
  margin-bottom: 1.5rem;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;  /* extra safety: pin to bottom */
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--mustard); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 220px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
}

.footer-socials .card-icon {
  color: var(--text);
  margin-bottom: 0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-socials .card-icon:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== GLOW ACCENTS ===== */
.glow-mustard {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226,153,48,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.glow-cerulean {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(33,124,163,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* ===== ARCH DIAGRAM ===== */
.arch-layer {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.arch-connector {
  display: flex;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

/* ===== DEMO MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 20, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.46, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-title .modal-icon {
  width: 36px;
  height: 36px;
  background: rgba(226,153,48,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.modal-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: var(--text-dim);
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: rgba(226,153,48,0.5);
  background: rgba(226,153,48,0.03);
}

.modal-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A89A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.modal-field select option {
  background: var(--asphalt);
  color: var(--text);
}

.modal-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.modal-privacy {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 220px;
}

.modal-submit {
  background: var(--mustard);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-submit:hover {
  background: #f0aa3a;
  transform: translateY(-1px);
}

.modal-submit:active {
  transform: translateY(0);
}

.modal-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-success .success-icon {
  width: 56px;
  height: 56px;
  background: rgba(174,189,56,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-success p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-hamburger { display: block; }
  .hero { padding: 4rem 1.25rem 3rem; }
  section { padding: 3.5rem 1.25rem; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 1.5rem; }
  .download-row { flex-direction: column; }
  .footer-inner { flex-direction: column; }
}
