/* ============================================
   GREVON.AI — SHARED STYLESHEET v1.1
   Fonts: Space Grotesk (display/UI) + Inter (body) + Space Mono (mono)
   Palette: Navy #1C2128 | Teal #29BCAF
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --navy:        #1C2128;
  --teal:        #29BCAF;
  --teal-dark:   #1f9a8f;
  --mid-grey:    #888888;
  --light-grey:  #F5F5F5;
  --white:       #FFFFFF;
  --border:      rgba(28,33,40,0.1);
  --border-lt:   rgba(255,255,255,0.1);

  --f-display:   'Space Grotesk', system-ui, -apple-system, sans-serif;
  --f-ui:        'Space Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono:      'Space Mono', 'Courier New', monospace;
  --f-body:      'Inter', system-ui, -apple-system, sans-serif;

  --max-w:       1200px;
  --gap:         24px;
  --radius:      4px;
  --transition:  0.2s ease;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { font-family: var(--f-body); color: var(--mid-grey); line-height: 1.75; }
p.lead { font-size: 1.125rem; }
p.sm { font-size: 0.875rem; }

.mono { font-family: var(--f-mono); font-size: 0.8125rem; }

/* ── LAYOUT ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  width: 100%;
}
.section { padding: 100px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 140px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

/* ── SECTION HEADER ─────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 580px; font-size: 1.0625rem; }

/* ── EYEBROW / LABEL ─────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow span {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}
/* Eyebrow on dark background */
.on-dark .eyebrow span { color: var(--teal); }

/* ── DIVIDERS ────────────────────────────────── */
.rule { width: 100%; height: 1px; background: var(--border); }
.rule--light { background: var(--border-lt); }
.rule--teal { width: 40px; height: 2px; background: var(--teal); }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--f-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn--white { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--white:hover { background: #f0fffe; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── NAVIGATION ──────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-item > a {
  font-family: var(--f-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.nav-item > a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-item > a.active { color: var(--white); }
.nav-chevron { font-size: 0.6rem; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown — top:100% + padding-top bridges the gap so hover never breaks */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  padding-top: 14px;
  min-width: 230px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 1000;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--navy) !important;
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--light-grey) !important; }
.nav-dropdown a strong { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.nav-dropdown a small { font-size: 0.775rem; color: var(--mid-grey); margin-top: 2px; font-family: var(--f-body); font-weight: 400; }
.nav-dropdown .dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Sub-dropdown (nested under a nav-dropdown item) */
.nav-item--sub {
  position: relative;
}
.nav-item--sub > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Stack strong + small vertically within the sub trigger */
.nav-item--sub > a strong,
.nav-item--sub > a small {
  display: block;
}
.nav-sub-chevron {
  font-size: 1rem;
  opacity: 0.45;
  margin-left: auto;
  padding-left: 4px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--teal);
  opacity: 1;
}
.nav-item--sub > a:hover .nav-sub-chevron { opacity: 1; }
.nav-sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: -8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px 0;
  min-width: 210px;
  z-index: 1010;
}
.nav-item--sub:hover .nav-sub-dropdown { display: block; }
.nav-sub-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.8125rem;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.nav-sub-dropdown a:hover { background: var(--light-grey) !important; color: var(--teal) !important; }

/* Coming Soon nav items */
.nav-dropdown a.nav-coming-soon { opacity: 0.6; pointer-events: none; }
.nav-badge {
  display: inline-block;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(41,188,175,0.1);
  border: 1px solid rgba(41,188,175,0.3);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

.nav-dropdown-group-label {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  padding: 6px 14px 8px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login {
  font-family: var(--f-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  transition: var(--transition);
}
.nav-login:hover { color: var(--white); }

/* Mobile toggle */
.nav-mobile-btn {
  display: none;
  color: var(--white);
  padding: 8px;
  border-radius: var(--radius);
}
.nav-mobile-btn:hover { background: rgba(255,255,255,0.08); }
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  background: #141920;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px var(--gap) 24px;
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 998;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.nav-mobile-drawer.open { display: block; }
.mobile-nav-group { margin-bottom: 24px; }
.mobile-nav-group-title {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  padding: 0 8px;
}
.mobile-nav-group a {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.mobile-nav-group a:hover { color: var(--white); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }

/* ── HERO ────────────────────────────────────── */
.hero {
  background: var(--navy);
  min-height: 100svh;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41,188,175,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,188,175,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
/* Teal glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,188,175,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--teal);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.58);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 480px;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.28);
  font-family: var(--f-body);
}
.hero-note a { color: rgba(255,255,255,0.45); text-decoration: underline; text-underline-offset: 3px; }
.hero-boundless {
  margin-top: 32px;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
}

/* Hero diagram — fills column, sized by viewport height */
.hero-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.hero-diagram .diagram-wrap {
  width: min(100%, calc(100svh - 180px));
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

/* Diagram node interactivity */
.hero-diagram .diagram-wrap svg [data-node],
.splash-diagram-wrap svg [data-splash-node] {
  cursor: pointer;
}
.hero-diagram .diagram-wrap svg .node-card,
.splash-diagram-wrap svg .splash-node-card {
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* ── TRUST BAR ───────────────────────────────── */
.trust-bar {
  background: var(--white);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar-label {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BBBEC3;
  margin-bottom: 24px;
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.partner-logo-item:hover {
  opacity: 1;
}
.partner-logo-item svg {
  display: block;
}

/* ── PROBLEM CARDS ───────────────────────────── */
.problem-card {
  background: var(--white);
  padding: 40px 36px;
  border-top: 2px solid transparent;
  transition: border-color 0.25s;
}
.problem-card:hover { border-top-color: var(--teal); }
.problem-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--teal);
}
.problem-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.problem-card p { font-size: 0.9375rem; }

/* ── SOLUTION INTRO ──────────────────────────── */
.solution-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-text .rule--teal { margin-bottom: 32px; }
.solution-text h2 { margin-bottom: 20px; }
.solution-text p { margin-bottom: 14px; font-size: 1.0625rem; }
.solution-visual {
  background: var(--navy);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── HOW IT WORKS ────────────────────────────── */
.how-it-works { background: var(--navy); }
.how-it-works .section-header h2 { color: var(--white); }
.how-it-works .section-header p { color: rgba(255,255,255,0.5); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,0.07);
}
.step {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: background var(--transition);
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(255,255,255,0.025); }
.step-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  display: block;
}
.step h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.step p { color: rgba(255,255,255,0.5); font-size: 0.9375rem; }
.step-arrow {
  position: absolute;
  top: 48px;
  right: -13px;
  width: 26px;
  height: 26px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.75rem;
  z-index: 1;
}
.step:last-child .step-arrow { display: none; }

/* ── PLATFORM MODULES ────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.module-card {
  background: var(--white);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform 0.25s ease, box-shadow 0.25s ease;
}
.module-card:hover {
  background: #FAFCFC;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.07);
  overflow: visible;
  z-index: 1;
}
.module-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.module-card:hover::after { transform: scaleX(1); }
.module-tag {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.module-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.module-descriptor {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  color: var(--mid-grey);
  font-style: italic;
  margin-bottom: 16px;
}
.module-card p { font-size: 0.9375rem; line-height: 1.65; }
.module-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 24px;
  transition: gap var(--transition);
}
.module-link:hover { gap: 10px; }

/* ── STATS ───────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat {
  background: var(--white);
  padding: 48px 32px;
  text-align: center;
}
.stat-val {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-val em { color: var(--teal); font-style: normal; }
.stat-desc { font-size: 0.875rem; color: var(--mid-grey); }

/* ── SECURITY ────────────────────────────────── */
.security-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.security-intro h2 { margin-bottom: 16px; }
.security-intro p { font-size: 1.0625rem; }
.security-items { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.security-item { padding-left: 20px; border-left: 2px solid var(--teal); }
.security-item h4 { font-size: 0.9375rem; margin-bottom: 8px; }
.security-item p { font-size: 0.875rem; }
.badge-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--mid-grey);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

/* ── FAQ ─────────────────────────────────────── */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.faq-item {
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--border); }
.faq-q {
  font-family: var(--f-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  cursor: pointer;
}
.faq-a { font-size: 0.9375rem; line-height: 1.7; }

/* ── CTA BANNER ──────────────────────────────── */
.cta-banner { background: var(--teal); padding: 100px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(2rem,4vw,3rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.125rem; max-width: 480px; margin: 0 auto 40px; }

/* ── PAGE HERO (sub-pages) ───────────────────── */
.page-hero {
  background: var(--navy);
  padding: 140px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41,188,175,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,188,175,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.58); font-size: 1.125rem; margin-bottom: 36px; line-height: 1.8; }

/* ── FEATURE LIST ────────────────────────────── */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.feature-item {
  padding: 36px 40px 36px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--border); }
.feature-icon { color: var(--teal); margin-bottom: 16px; }
.feature-item h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.feature-item p { font-size: 0.9375rem; }

/* ── PRICING ─────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.pricing-card.featured { background: var(--navy); border-color: var(--teal); }
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 10px;
}
.pricing-card h3 { font-size: 1.625rem; margin-bottom: 6px; }
.pricing-card.featured h3 { color: var(--white); }
.price {
  font-family: var(--f-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pricing-card.featured .price { color: var(--white); }
.price-period { font-size: 0.875rem; color: var(--mid-grey); margin-bottom: 8px; }
.pricing-card.featured .price-period { color: rgba(255,255,255,0.45); }
.price-desc { font-size: 0.875rem; color: var(--mid-grey); margin-bottom: 28px; }
.pricing-card.featured .price-desc { color: rgba(255,255,255,0.45); }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.1); }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  font-size: 0.875rem;
  color: var(--mid-grey);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.65); border-bottom-color: rgba(255,255,255,0.07); }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 0.875rem; flex-shrink: 0; margin-top: 0; }
.pricing-features li.no::before { content: '–'; color: var(--mid-grey); }
.pricing-note {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--mid-grey);
  margin-top: 24px;
}

/* ── ACCORDION ───────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--f-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
  background: none;
  border: none;
}
.accordion-trigger:hover { color: var(--teal); }
.accordion-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
  user-select: none;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding-bottom: 24px;
}
.accordion-body p { font-size: 0.9375rem; }
.accordion-item.open .accordion-body { display: block; }

/* ── BLOG CARDS ──────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.blog-thumb { aspect-ratio: 16/9; background: var(--light-grey); }
.blog-body { padding: 28px; }
.blog-tag { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 0.875rem; }
.blog-meta { display: flex; gap: 16px; margin-top: 20px; font-size: 0.8125rem; color: var(--mid-grey); }

/* ── FORM ────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--f-ui); font-size: 0.8125rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--teal); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  justify-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}
.footer-logo {
  display: block;
  margin-bottom: 8px;
  line-height: 0;
}
.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
  flex-shrink: 0;
}
.footer-social a svg { display: block; }
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-col-title {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }
.footer-region { font-size: 0.72rem; color: rgba(255,255,255,0.18); text-align: center; margin-top: 20px; letter-spacing: 0.04em; }

/* ── TESTIMONIALS DARK SECTION ───────────────── */
.testimonial-carousel-section h2 { color: var(--white); }
.testimonial-carousel-section .section-header p { color: rgba(255,255,255,0.6); }

/* ── MODULE ICON ─────────────────────────────── */
.module-icon { margin-bottom: 20px; height: 44px; display: flex; align-items: center; }
.module-icon svg { display: block; }

/* ── UTILITIES ───────────────────────────────── */
.bg-white { background: var(--white); }
.bg-light { background: var(--light-grey); }
.bg-navy { background: var(--navy); }
.bg-teal { background: var(--teal); }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }
.text-grey { color: var(--mid-grey); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none; }

/* ── SPLASH SCREEN STYLES ──────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #1C2128;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 60px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}
.splash-tagline {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.splash-tagline em {
  color: var(--teal);
  font-style: normal;
}
.splash-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex: 1;
  min-height: 0;
}
.splash-left {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding-right: 40px;
}
.splash-logo {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 36px;
  opacity: 0.95;
}
.splash-sub {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  opacity: 0.8;
}
.splash-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-diagram-wrap {
  width: min(100%, calc(100vh - 180px));
  aspect-ratio: 1 / 1;
  position: relative;
}
.splash-diagram-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 64px rgba(41,188,175,0.06));
}
.splash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.splash-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.splash-nav ul a {
  font-family: var(--f-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.splash-nav ul a:hover { color: var(--teal); }
.splash-nav-actions {
  display: flex;
  gap: 12px;
}
.splash-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  font-family: var(--f-display);
}
.scroll-indicator {
  width: 24px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; }
  100% { opacity: 1; transform: translateX(-50%) translateY(12px); }
}
/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

body.splash-hidden {
  padding-top: 0;
}

/* ── RESPONSIVE ──────────────────────────────── */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-diagram { display: flex; justify-content: center; }
  .hero-diagram .diagram-wrap { width: min(92vw, calc(100svh - 380px)); aspect-ratio: 1/1; }
  .hero { padding: 130px 0 80px; min-height: unset; }

  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .modules-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }

  .solution-split { grid-template-columns: 1fr; gap: 48px; }
  .solution-visual { aspect-ratio: 16/7; min-height: 240px; }
  .security-layout { grid-template-columns: 1fr; gap: 48px; }

  /* Audience tabs: hide the visual panel so text fills width */
  .audience-panel.active { grid-template-columns: 1fr; }
  .audience-visual { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 130px 0 80px; }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {
  /* -- Navigation -- */
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-logo img { height: 36px; }

  /* -- Sections -- */
  .section { padding: 64px 0; }
  .section--sm { padding: 48px 0; }
  .section--lg { padding: 72px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 0.9375rem; }

  /* -- Hero -- */
  .hero { padding: 108px 0 64px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-note { font-size: 0.75rem; }
  .hero-diagram .diagram-wrap { width: min(95vw, calc(100svh - 300px)); }

  /* -- Page hero (sub-pages) -- */
  .page-hero { padding: 108px 0 64px; }
  .page-hero h1 { font-size: clamp(1.875rem, 6vw, 2.5rem); }
  .page-hero p { font-size: 1rem; }
  .page-hero-inner { max-width: 100%; }

  /* -- All grid resets -- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; border: none; }
  .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 32px 24px; }
  .step:last-child { border-bottom: none; }
  .step-arrow { display: none; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .faq-list { grid-template-columns: 1fr; }
  .faq-item { padding: 24px 0; }
  .faq-item:nth-child(even) { padding-left: 0; border-left: none; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item:nth-child(even) { padding-left: 0; border-left: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .security-items { grid-template-columns: 1fr; }

  /* -- Module + product cards -- */
  .module-card { padding: 28px 24px; }
  .pricing-card { padding: 28px 24px; }
  .blog-body { padding: 20px; }

  /* -- Audience tabs -- */
  .audience-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    flex-wrap: nowrap;
  }
  .audience-tab { flex-shrink: 0; padding: 10px 16px; font-size: 0.85rem; }
  .audience-panel.active { grid-template-columns: 1fr; }
  .audience-visual { display: none; }
  .audience-panel-text h3 { font-size: 1.375rem; }

  /* -- Trust bar -- */
  .partner-logos { gap: 24px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .partner-logo-item { flex-shrink: 0; }

  /* -- Solution visual -- */
  .solution-visual { min-height: 220px; aspect-ratio: 16/7; }

  /* -- Security -- */
  .security-layout { grid-template-columns: 1fr; gap: 40px; }

  /* -- Stats -- */
  .stat { padding: 32px 20px; }
  .stat-val { font-size: 2.25rem; }

  /* -- Forms -- */
  .form-row { grid-template-columns: 1fr; }

  /* -- Buttons -- */
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group .btn { width: 100%; justify-content: center; text-align: center; }

  /* -- Footer -- */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .site-footer { padding: 56px 0 32px; }

  /* -- CTA Banner -- */
  .cta-banner { padding: 72px 0; }

  /* -- Prevent horizontal overflow -- */
  body { overflow-x: hidden; }
}

/* ---- Small phones: 480px and below ---- */
@media (max-width: 480px) {
  /* -- Container tighter on small screens -- */
  .container { padding: 0 16px; }

  /* -- Nav -- */
  .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 30px; }

  /* -- Hero -- */
  .hero { padding: 96px 0 56px; }
  .hero h1 { font-size: 1.875rem; letter-spacing: -0.01em; }
  .hero-sub { font-size: 0.9375rem; }

  /* -- Page hero -- */
  .page-hero { padding: 96px 0 56px; }
  .page-hero h1 { font-size: 1.75rem; }

  /* -- Section headings -- */
  h2 { font-size: clamp(1.5rem, 6vw, 1.875rem); }

  /* -- Steps (how it works) -- */
  .step { padding: 28px 20px; }

  /* -- Stats: single column on very small screens -- */
  .stats-row { grid-template-columns: 1fr; }
  .stat { padding: 28px 20px; }

  /* -- Pricing -- */
  .pricing-card { padding: 24px 16px; }

  /* -- Module cards -- */
  .module-card { padding: 24px 20px; }

  /* -- FAQ -- */
  .faq-item { padding: 20px 0; }
  .accordion-trigger { font-size: 0.9375rem; padding: 20px 0; }

  /* -- Blog cards -- */
  .blog-body { padding: 16px; }

  /* -- Security -- */
  .security-item { padding-left: 16px; }

  /* -- Footer -- */
  .footer-grid { gap: 24px; }
  .site-footer { padding: 48px 0 28px; }

  /* -- CTA Banner -- */
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: 1.75rem; }
  .cta-banner p { font-size: 1rem; }

  /* -- Badges -- */
  .badge-row { gap: 8px; }

  /* -- Btn group -- */
  .btn-group .btn { font-size: 0.875rem; padding: 12px 20px; }
}
