/* ============================================
   Minerva Data — Landing Page
   Aligned with brand-demo.html design language
   ============================================ */

/* 0. Custom Properties */
:root {
  --teal: #009FC7;
  --dark: #3C4650;
  --dark-deep: #2c3540;
  --orange: #FF8C00;
  --purple: #875FD7;
  --turquoise: #19D7C7;
  --red: #FF555F;
  --green: #90D980;
  --amber: #FFB400;
  --gray-2: #86959F;
  --gray-3: #D1D6DB;
  --gray-4: #E3E7EB;
  --gray-5: #F0F2F4;
  --white: #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-hero: 'Playfair Display', Georgia, serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Source Code Pro', monospace;

  --content-max: 1140px;
  --section-pad: clamp(80px, 12vw, 160px);
  --section-pad-x: clamp(24px, 5vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* 2. Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
h3 { font-weight: 600; font-size: clamp(17px, 2vw, 22px); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* 3. Layout */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--section-pad-x); }
.section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  color: var(--teal);
}
.section-desc {
  font-size: 16px;
  color: var(--gray-2);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.section-dark { background: var(--dark); color: var(--white); position: relative; overflow: hidden; }
.section-dark .section-label { color: var(--turquoise); }
.section-dark .section-desc { color: var(--gray-3); }
.section-light { background: var(--gray-5); }
.section-gradient-dark-teal {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal) 100%);
  color: var(--white);
}
.section-gradient-dark-teal .section-label { color: rgba(255,255,255,0.5); }
.section-gradient-dark-purple {
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
  color: var(--white);
}
.section-gradient-dark-purple .section-label { color: var(--turquoise); }
.section-gradient-dark-purple .section-desc { color: rgba(255,255,255,0.7); }

.section-gradient-teal-purple {
  background: linear-gradient(160deg, var(--teal) 0%, var(--purple) 100%);
  color: var(--white);
}
.section-gradient-teal-purple .section-label { color: rgba(255,255,255,0.5); }

.section-teal {
  background: var(--teal);
  color: var(--white);
}
.section-teal .section-label { color: rgba(255,255,255,0.5); }

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--gray-2); }

/* Gradient divider — from brand-demo */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--purple), var(--turquoise));
}

/* 4. Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  padding: 0 24px;
  transition: box-shadow 0.3s var(--ease);
}
.nav-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { height: 40px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-cta-orange:hover { color: var(--white); }
.nav-cta-orange {
  background: var(--orange);
  color: var(--dark);
  padding: 8px 20px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(255,140,0,0.12);
}
.nav-cta-orange:hover {
  background: #FFA333;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,140,0,0.3);
}
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: all 0.3s var(--ease); }
.nav-open .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 5. Hero */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-patron {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  pointer-events: none;
  opacity: 0.3;
}
.hero-patron img { width: 100%; height: 100%; object-fit: cover; }
.hero-patron-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(60,70,80,0.85) 30%, transparent 65%);
}
.hero-patron-fade-right {
  position: absolute; inset: 0;
  background: linear-gradient(270deg, var(--dark) 0%, transparent 25%);
}

/* Animated gradient accent line */
.hero-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--purple), var(--turquoise), var(--teal));
  background-size: 200% 100%;
  animation: hero-gradient-shift 8s linear infinite;
  z-index: 5;
}
@keyframes hero-gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 80px);
  text-align: center;
}

/* Hero tiles — MINERVA spelled with brand pattern tiles */
.hero-tiles-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-tiles {
  display: inline-flex;
  gap: 3px;
}
.hero-tiles img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-tiles:hover img {
  opacity: 1;
}
.hero-tiles img:hover {
  transform: scale(1.15);
}

/* Hero headline — Playfair Display */
.hero-h1 {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(46px, 7.5vw, 88px);
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -1px;
  font-feature-settings: 'liga' 1, 'kern' 1;
}
.hero-h1-line {
  display: block;
}
.hero-h1-accent {
  font-style: italic;
  font-weight: 500;
  opacity: 0.92;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-3);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.8;
  letter-spacing: 0.2px;
}
.hero-link { color: var(--gray-3); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.hero-link:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
/* ─── BUTTON SYSTEM ───
   .btn-primary   → Teal bg, white text. Secondary actions (nav CTA, in-page actions).
   .btn-cta       → Orange bg, dark text. Primary conversion actions (hero, forms).
   .btn-secondary → Text-only with arrow. Tertiary/navigation links.
   .btn-outline   → Ghost button with border. Alternative secondary on dark backgrounds.
*/
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,159,199,0.12);
}
.btn-primary:hover { background: #1AB8E0; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,159,199,0.3); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,159,199,0.15); }
.btn-primary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-3);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}
.btn-secondary:hover { color: var(--white); }
.btn-secondary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gray-3);
  padding: 13px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
.btn-outline:active { background: rgba(255,255,255,0.06); }
.btn-outline:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* 7. Services — Section Icon + Shared Components */

/* Section header illustration */
.services-icon {
  display: inline-block;
  width: 56px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
}
.services-icon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,159,199,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.services-icon img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,159,199,0.12));
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pain Section ── */
.pain { padding: var(--section-pad) 0; position: relative; }
.pain-bg-illustration { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; pointer-events: none; overflow: hidden; }
.pain-bg-illustration img { position: absolute; top: 50%; right: 0; transform: translateY(-50%); height: 110%; width: auto; opacity: 0.55; }
.pain-bg-fade { position: absolute; top: 0; left: 0; bottom: 0; width: 60%; background: linear-gradient(90deg, var(--dark) 0%, transparent 100%); pointer-events: none; z-index: 1; }
.pain-heading { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 38px); font-weight: 400; text-align: center; margin-bottom: 56px; color: var(--white); }
.pain-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.pain-today, .pain-minerva { display: flex; flex-direction: column; }
.pain-col-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pain-col-label img { width: 24px; height: auto; opacity: 0.7; }
.pain-today .pain-col-label { color: var(--orange); }
.pain-minerva .pain-col-label { color: var(--turquoise); }
.pain-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pain-source { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px 14px; font-family: var(--font-heading); font-size: 12px; font-weight: 500; color: var(--gray-3); transition: border-color 0.3s ease; display: flex; align-items: center; gap: 8px; }
.pain-source::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-2); flex-shrink: 0; opacity: 0.5; }
.pain-stats { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.pain-stat { font-size: 13px; color: rgba(255,255,255,0.4); font-family: var(--font-body); }
.pain-stat strong { color: var(--red); font-weight: 600; }
.pain-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray-2); }
.pain-arrow-line { width: 48px; height: 2px; background: linear-gradient(90deg, var(--red), var(--turquoise)); border-radius: 1px; }
.pain-minerva-card { background: linear-gradient(135deg, rgba(0,159,199,0.1) 0%, rgba(25,215,199,0.08) 100%); border: 2px solid rgba(0,159,199,0.3); border-radius: 16px; padding: 40px 32px; text-align: center; position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pain-minerva-card::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--turquoise)); opacity: 0.06; pointer-events: none; }
.pain-minerva-card h3 { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 24px; position: relative; }
.pain-minerva-benefits { display: flex; flex-direction: column; gap: 10px; position: relative; }
.pain-benefit { font-size: 14px; color: var(--turquoise); font-weight: 500; }
.pain-footer { text-align: center; margin-top: 56px; font-size: 16px; color: rgba(255,255,255,0.45); font-style: italic; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ── ICP Section ── */
.icp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 48px 0 0; }
.icp-card { background: var(--white); border: 2px solid var(--gray-4); border-radius: 14px; padding: 24px 16px; cursor: pointer; text-align: center; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 72px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.icp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.icp-card.active { border-color: var(--icp-color, var(--teal)); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.icp-card.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--icp-color, var(--teal)); }
.icp-card-deco { position: absolute; top: -6px; right: -6px; width: 64px; height: 64px; opacity: 0.05; pointer-events: none; transition: opacity 0.3s ease; }
.icp-card:hover .icp-card-deco { opacity: 0.12; }
.icp-card-deco img { width: 100%; height: 100%; object-fit: contain; }
.icp-panel-deco { position: absolute; top: 16px; right: 24px; width: 80px; height: 80px; opacity: 0.04; pointer-events: none; }
.icp-panel-deco img { width: 100%; height: 100%; object-fit: contain; }
.icp-card-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.35; }
.icp-panel { display: none; }
.icp-panel.active { display: block; animation: panelFadeIn 0.35s ease; }
.icp-panel-inner { position: relative; margin-top: 24px; padding: 36px; border-radius: 14px; border-top: 3px solid var(--icp-color, var(--teal)); background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.icp-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.icp-pain-text { font-size: 17px; color: var(--dark); line-height: 1.75; margin-bottom: 28px; font-weight: 300; }
.icp-pain-text strong { font-weight: 600; color: var(--dark); }
.icp-benefits-title { font-family: var(--font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-2); margin-bottom: 16px; }
.icp-benefit-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--gray-5); }
.icp-benefit-item:last-child { border-bottom: none; }
.icp-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; color: var(--white); margin-top: 1px; }
.icp-benefit-item span { font-size: 14px; color: var(--dark); line-height: 1.5; }
.icp-panel-cta { margin-top: 28px; }
.icp-panel-cta a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; padding: 12px 28px; border-radius: 8px; transition: all 0.25s ease; }

/* ── Products Section ── */
.products-grid { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.product-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 44px; position: relative; overflow: hidden; transition: background 0.3s ease; }
.product-card:hover { background: rgba(255,255,255,0.09); }
.product-card-accent { position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 18px 0 0 18px; }
.product-card-deco { position: absolute; top: 20px; right: 24px; width: 72px; height: 72px; opacity: 0.15; pointer-events: none; transition: opacity 0.3s ease; }
.product-card:hover .product-card-deco { opacity: 0.25; }
.product-card-deco img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.product-badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 5px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.product-card h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: var(--white); margin-bottom: 10px; }
.product-tagline { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 600px; margin-bottom: 32px; }
.product-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-uc-title, .product-ds-title { font-family: var(--font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.product-uc-item { padding: 14px 16px; margin-bottom: 6px; border-radius: 8px; background: rgba(255,255,255,0.04); border-left: 3px solid; transition: background 0.2s ease; }
.product-uc-item:hover { background: rgba(255,255,255,0.07); }
.product-uc-item strong { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--white); display: block; margin-bottom: 4px; }
.product-uc-item span { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.55; }
.product-ds-item { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.product-ds-item:last-child { border-bottom: none; }
.product-ds-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.product-ds-item strong { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); margin-right: 6px; }
.product-ds-item span { font-size: 12px; color: rgba(255,255,255,0.4); }
.product-channels { display: flex; gap: 6px; margin-top: 24px; }
.product-channel { font-family: var(--font-mono); font-size: 10px; font-weight: 500; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Coming Soon ── */
.soon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.soon-card { background: var(--white); border: 2px solid var(--gray-4); border-radius: 14px; padding: 28px 20px; text-align: center; position: relative; overflow: hidden; }
.soon-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--soon-color, var(--gray-3)); opacity: 0.4; }
.soon-card h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.soon-card p { font-size: 12px; color: var(--gray-2); line-height: 1.5; margin-bottom: 14px; }
.badge-dev { display: inline-block; background: var(--gray-5); color: var(--gray-2); font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* 8. Why Minerva — gradient bg with pattern overlay */
.why-pattern-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}
.why-pattern-overlay img { width: 100%; height: 100%; object-fit: cover; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 36px;
  border-left: 4px solid;
  transition: background 0.3s;
}
.why-card:hover { background: rgba(255,255,255,0.1); }
.why-card-icon {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
.why-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--white); }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* 9. Agent Economy */
.agent-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.agent-content {
  position: relative; z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.agent-content h2 { margin-bottom: 24px; }
.agent-content p { font-size: 16px; line-height: 1.8; opacity: 0.85; margin-bottom: 20px; }
.code-block {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.1);
}
.code-block pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.7); }
.code-key { color: rgba(255,255,255,0.6); }
.code-string { color: var(--turquoise); }
.code-number { color: var(--orange); }
.code-prompt { color: var(--teal); }
.code-comment { color: var(--gray-2); font-style: italic; }

/* 10. Decorative floating element (two-triangles) */
.deco-float {
  position: relative;
  height: 0;
  z-index: 10;
  pointer-events: none;
}
.deco-float-img {
  position: absolute;
  bottom: -140px;
  right: clamp(24px, 6vw, 80px);
  height: 280px;
  width: auto;
}

/* 11. CTA */
.cta-section { position: relative; overflow: hidden; color: var(--white); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-color-overlay { position: absolute; inset: 0; background: rgba(135, 95, 215, 0.78); }
.cta-pattern-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}
.cta-pattern-overlay img { width: 100%; height: 100%; object-fit: cover; }
.cta-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.cta-icon { width: 52px; height: 52px; margin: 0 auto 28px; filter: brightness(0) invert(1); opacity: 0.8; }
.cta-content h2 { margin-bottom: 16px; color: var(--white); }
.cta-content > p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 15px; line-height: 1.75; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,159,199,0.2);
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-select { color: rgba(255,255,255,0.35); }
.form-select option { color: var(--dark); background: var(--white); }
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 12px rgba(255,140,0,0.15);
  margin-top: 10px;
}
.btn-submit:hover { background: #FFA333; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,140,0,0.35); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 1px 6px rgba(255,140,0,0.2); }
.btn-submit:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.active { display: block; }
.form-success h3 { color: var(--teal); margin-bottom: 12px; }

/* 12. Footer */
.footer {
  background: var(--dark);
  color: var(--gray-2);
  padding: 0 0 32px;
}
.footer-separator {
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--purple));
  margin-bottom: 64px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-logo { height: 32px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--gray-2); line-height: 1.65; }
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-3);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-3); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-minerva-tiles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.footer-minerva-tiles:hover { opacity: 0.7; }
.footer-minerva-tiles img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* 13. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 160ms; }

/* 14. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 15. Responsive */

/* ── Visibility utilities ── */
.mobile-only { display: none !important; }
.desktop-only { display: revert !important; }

/* ── Large desktop ── */
@media (min-width: 1200px) {
  :root { --section-pad-x: 0; }
}

/* ── Desktop ── */
@media (min-width: 900px) {
  .nav-hamburger { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Tablet (600–899px) ── */
@media (max-width: 899px) {
  /* Nav → hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(64px + 4px);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-open .nav-links { display: flex; }
  .nav-hamburger { display: block; }

  /* Hero */
  .hero { min-height: 80vh; min-height: 80svh; padding: 80px 0 60px; }
  .hero h1 { font-size: clamp(36px, 8vw, 60px); letter-spacing: -2px; }
  .hero-patron { width: 100%; opacity: 0.12; }
  .hero-patron-fade { background: linear-gradient(180deg, rgba(60,70,80,0.9) 0%, rgba(60,70,80,0.5) 100%); }
  .hero-patron-fade-right { display: none; }
  .hero-sub { font-size: 16px; }
  /* Why Minerva */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px; }
  /* Pain */
  .pain-compare { grid-template-columns: 1fr; gap: 24px; }
  .pain-arrow { flex-direction: row; justify-content: center; }
  .pain-arrow-line { width: 2px; height: 48px; }
  /* ICP */
  .icp-grid { grid-template-columns: repeat(3, 1fr); }
  .icp-panel-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Products */
  .product-content { grid-template-columns: 1fr; gap: 32px; }
  /* Coming Soon */
  .soon-grid { grid-template-columns: repeat(2, 1fr); }

  /* Two-triangles deco */
  .deco-float-img { height: 200px; right: 16px; }
}

/* ── Mobile (max 600px) ── */
@media (max-width: 600px) {
  :root {
    --section-pad: clamp(40px, 8vw, 64px);
    --section-pad-x: 16px;
  }

  /* Visibility toggle */
  .mobile-only { display: revert !important; }
  .desktop-only { display: none !important; }

  /* Base typography tighter on mobile */
  body { font-size: 14px; line-height: 1.6; }
  h2 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 12px; }
  .section-label { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
  .section-desc { font-size: 14px; margin-bottom: 32px; line-height: 1.65; }

  /* Nav — compact */
  .nav { padding: 0 16px; }
  .nav-inner { height: 56px; }
  .nav-logo { height: 30px; }
  .nav-links {
    top: calc(56px + 4px);
    padding: 16px;
    gap: 4px;
  }
  .nav-links a { padding: 12px 16px; font-size: 13px; }
  .nav-cta-orange { text-align: center; display: block; margin-top: 4px; }

  /* Hero — shorter, punchier */
  .hero {
    min-height: 85vh;
    min-height: 85svh;
    padding: 72px 0 40px;
  }
  .hero-content { padding: 0 16px; }
  .hero-h1 {
    font-size: clamp(30px, 8.5vw, 44px);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.08;
  }
  .hero-h1-accent { font-weight: 400; }
  .hero-tiles-label { margin-bottom: 16px; }
  .hero-tiles img { width: 20px; height: 20px; border-radius: 3px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; line-height: 1.65; max-width: 400px; }
  .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta .btn-primary { width: 100%; text-align: center; padding: 16px 24px; }
  .hero-cta .btn-secondary { justify-content: center; }

  /* Pain — stacked and compact */
  .pain-heading { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 32px; }
  .pain-bg-illustration { width: 100%; opacity: 0.15; }
  .pain-bg-fade { width: 100%; background: linear-gradient(180deg, var(--dark) 0%, transparent 100%); }
  .pain-compare { grid-template-columns: 1fr; gap: 16px; }
  .pain-source-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pain-source { padding: 8px 10px; font-size: 11px; }
  .pain-source::before { width: 5px; height: 5px; }
  .pain-stats { margin-top: 12px; gap: 4px; }
  .pain-stat { font-size: 12px; }
  .pain-arrow { padding: 4px 0; }
  .pain-arrow-line { width: 2px; height: 32px; }
  .pain-minerva-card { padding: 24px 16px; border-radius: 12px; }
  .pain-minerva-card h3 { font-size: 18px; margin-bottom: 16px; }
  .pain-benefit { font-size: 13px; }
  .pain-footer { margin-top: 32px; font-size: 14px; }

  /* ICP — horizontal scroll cards */
  .icp-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin: 32px -16px 0;
    padding: 0 16px 12px;
    scrollbar-width: none;
  }
  .icp-grid::-webkit-scrollbar { display: none; }
  .icp-card {
    flex: 0 0 auto;
    width: 120px;
    min-height: 56px;
    padding: 14px 10px;
    scroll-snap-align: start;
    border-radius: 10px;
  }
  .icp-card-name { font-size: 11px; line-height: 1.3; }
  .icp-icon { display: none; }
  .icp-card-deco { width: 44px; height: 44px; top: -4px; right: -4px; }

  /* ICP panels — single column, tighter */
  .icp-panel-inner { padding: 20px 16px; margin-top: 16px; border-radius: 10px; }
  .icp-panel-grid { grid-template-columns: 1fr; gap: 16px; }
  .icp-pain-text { font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
  .icp-benefits-title { font-size: 10px; margin-bottom: 10px; }
  .icp-benefit-item { padding: 8px 0; gap: 10px; }
  .icp-benefit-item span { font-size: 13px; }
  .icp-check { width: 18px; height: 18px; font-size: 10px; }
  .icp-panel-cta { margin-top: 20px; }
  .icp-panel-cta a { width: 100%; justify-content: center; padding: 14px 20px; font-size: 13px; }
  .icp-panel-deco { width: 56px; height: 56px; top: 12px; right: 12px; }

  /* Products — compact cards, hide data sources on mobile */
  .product-card { padding: 24px 16px; border-radius: 14px; }
  .product-badge { font-size: 9px; padding: 4px 10px; margin-bottom: 12px; }
  .product-card h3 { font-size: clamp(20px, 5vw, 26px); margin-bottom: 8px; }
  .product-tagline { font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
  .product-content { grid-template-columns: 1fr; gap: 20px; }
  .product-ds-col { display: none; }
  .product-uc-title { font-size: 10px; margin-bottom: 10px; }
  .product-uc-item { padding: 10px 12px; margin-bottom: 4px; }
  .product-uc-item strong { font-size: 12px; margin-bottom: 2px; }
  .product-uc-item span { font-size: 11px; line-height: 1.45; }
  .product-card-deco { width: 48px; height: 48px; top: 16px; right: 12px; }
  /* Show mobile-only channels inline after use cases */
  .product-channels.mobile-only { display: flex !important; gap: 6px; margin-top: 16px; flex-wrap: wrap; }

  /* Coming Soon — 2-col compact */
  .soon-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .soon-card { padding: 16px 12px; border-radius: 10px; }
  .soon-card h4 { font-size: 13px; margin-bottom: 4px; }
  .soon-card p { font-size: 11px; margin-bottom: 10px; line-height: 1.4; }
  .badge-dev { font-size: 8px; padding: 3px 8px; }

  /* Why Minerva */
  .why-card { padding: 20px; border-radius: 10px; }
  .why-card-icon { width: 28px; height: 28px; margin-bottom: 12px; }
  .why-card h3 { font-size: 15px; margin-bottom: 6px; }
  .why-card p { font-size: 13px; line-height: 1.55; }

  /* Agent Economy */
  .agent-content p { font-size: 14px; line-height: 1.65; }
  .code-block { padding: 14px; margin-top: 20px; border-radius: 8px; }
  .code-block pre { font-size: 10.5px; line-height: 1.65; }

  /* CTA — tight form */
  .cta-section { padding: var(--section-pad) 0; }
  .cta-content { padding: 0; }
  .cta-icon { width: 40px; height: 40px; margin-bottom: 20px; }
  .cta-content h2 { font-size: clamp(22px, 5.5vw, 28px); }
  .cta-content > p { font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
  .form-group { margin-bottom: 12px; }
  .form-input, .form-select { padding: 13px 14px; font-size: 15px; border-radius: 8px; }
  .btn-submit { padding: 16px 24px; font-size: 15px; border-radius: 8px; margin-top: 8px; }

  /* Footer — compact */
  .footer { padding: 0 0 24px; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-brand { max-width: 100%; }
  .footer-separator { margin-bottom: 32px; }
  .footer-minerva-tiles { gap: 4px; margin-bottom: 24px; }
  .footer-minerva-tiles img { width: 36px; height: 36px; border-radius: 4px; }
  .footer-bottom { font-size: 11px; padding-top: 16px; }

  /* Two-triangles deco — subtle on mobile */
  .deco-float-img { height: 100px; right: 8px; bottom: -50px; opacity: 0.5; }

  /* Dividers — thinner on mobile */
  .divider { height: 3px; }
}

/* ── Very small screens (≤380px) ── */
@media (max-width: 380px) {
  .hero-h1 { font-size: 26px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; }
  .icp-card { width: 100px; padding: 12px 8px; }
  .icp-card-name { font-size: 10px; }
  .soon-grid { grid-template-columns: 1fr; }
  .product-card h3 { font-size: 18px; }
  .deco-float-img { height: 80px; }
  .pain-source-grid { grid-template-columns: 1fr; }
}

/* ── Safari & iOS fixes ── */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
  .nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .container {
    padding-left: max(var(--section-pad-x), env(safe-area-inset-left));
    padding-right: max(var(--section-pad-x), env(safe-area-inset-right));
  }
  /* Fix bottom safe area on iPhones with home indicator */
  .footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .cta-section { padding-bottom: max(var(--section-pad), env(safe-area-inset-bottom)); }
  /* Fix momentum scrolling for ICP horizontal scroll */
  .icp-grid { -webkit-overflow-scrolling: touch; }
}

/* ── Touch targets — WCAG 2.2 Level AAA (44×44px minimum) ── */
@media (hover: none) and (pointer: coarse) {
  .nav-hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-primary, .btn-submit, .btn-outline { min-height: 48px; }
  .nav-links a { padding: 14px 16px; font-size: 14px; }
  .icp-card { min-height: 48px; }
  .soon-card { min-height: 44px; }
  /* Prevent text size adjustment on orientation change */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* Prevent double-tap zoom on interactive elements */
  .btn-primary, .btn-submit, .btn-secondary, .btn-outline, .nav-hamburger, .icp-card, .form-select { touch-action: manipulation; }
}

/* ── Mobile floating CTA (thumb zone) ── */
.mobile-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(60,70,80,0.95) 60%, transparent 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-floating-cta.visible { transform: translateY(0); }
.mobile-floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 -2px 20px rgba(255,140,0,0.25);
  touch-action: manipulation;
  min-height: 52px;
}
.mobile-floating-btn span { font-size: 18px; }

/* ── Landscape mobile ── */
@media (max-width: 600px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 64px 0 40px; }
  .hero-h1 { font-size: clamp(24px, 5vw, 36px); }
}
