/* ============================================
   Capra Synergy — Marketing Site Styles
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #13265c;
  --navy-dark:  #042C53;
  --blue-mid:   #185FA5;
  --blue-light: #378ADD;
  --badge-bg:   #E6F1FB;
  --badge-text: #0C447C;
  --white:      #ffffff;
  --bg-alt:     #F7F9FC;
  --text:       #111827;
  --text-muted: #5F5E5A;
  --border:     #e5e7eb;
  --radius:     12px;
  --pill:       999px;
  --max-w:      1180px;
  --ease:       0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Layout ──────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ──────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* ── Badge ───────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--pill);
  letter-spacing: 0.02em;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--pill);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: #0d1b45; border-color: #0d1b45; }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--badge-bg); }

.btn--lg { padding: 0.85rem 2rem; font-size: 1rem; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.header-logo span { color: var(--blue-mid); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}
.header-nav a:hover, .header-nav a.active { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--ease);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.mobile-menu a {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}
.mobile-menu a:hover { background: var(--bg-alt); color: var(--navy); }
.mobile-menu .btn { margin-top: 0.75rem; width: 100%; }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .header-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
}

/* ── Hero (split) ────────────────────────── */
.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .badge { margin-bottom: 1.25rem; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual panel */
.hero-visual {
  background: var(--navy-dark);
  border-radius: 20px;
  padding: 1.75rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(55, 138, 221, 0.07);
  pointer-events: none;
}

/* Mock window chrome */
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.mock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.mock-dot-r { background: #ff5f56; }
.mock-dot-y { background: #ffbd2e; }
.mock-dot-g { background: #27c93f; }
.mock-bar-title {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

/* Mock stats row */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mock-stat {
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.75rem;
}
.mock-stat-lbl {
  height: 5px;
  width: 55%;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  margin-bottom: 0.45rem;
}
.mock-stat-val {
  height: 16px;
  width: 75%;
  background: var(--blue-light);
  border-radius: 4px;
  opacity: 0.85;
}
.mock-stat-val.accent { background: var(--blue-mid); }
.mock-stat-val.dim    { background: rgba(255,255,255,0.2); }

/* Mock chart */
.mock-chart-wrap {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem 1rem 0.6rem;
  flex: 1;
}
.mock-chart-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
}
.mock-b {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--blue-mid);
  opacity: 0.65;
}
.mock-b:nth-child(1) { height: 48%; }
.mock-b:nth-child(2) { height: 70%; background: var(--blue-light); opacity: 0.9; }
.mock-b:nth-child(3) { height: 55%; }
.mock-b:nth-child(4) { height: 88%; background: var(--blue-light); opacity: 0.95; }
.mock-b:nth-child(5) { height: 40%; }
.mock-b:nth-child(6) { height: 75%; background: var(--blue-light); opacity: 0.8; }
.mock-b:nth-child(7) { height: 62%; }

/* Mock list rows */
.mock-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
}
.mock-row-icon {
  width: 18px; height: 18px;
  background: var(--blue-mid);
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0.85;
}
.mock-row-lines { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mock-row-l1 { height: 5px; width: 60%; background: rgba(255,255,255,0.18); border-radius: 3px; }
.mock-row-l2 { height: 4px; width: 35%; background: rgba(255,255,255,0.1); border-radius: 3px; }
.mock-row-tag {
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(55,138,221,0.22);
  color: var(--blue-light);
  padding: 2px 7px;
  border-radius: var(--pill);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual { min-height: 260px; }
  .hero-content .lead { max-width: 100%; }
}

/* ── Section spacing ─────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); }
.section--dark { background: var(--navy-dark); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }

/* ── Feature cards ───────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (min-width: 560px) and (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--ease);
}
.feature-card:hover { box-shadow: 0 4px 20px rgba(19,38,92,0.08); }

.feature-icon {
  width: 46px; height: 46px;
  background: var(--badge-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--navy);
}
.feature-icon svg { width: 22px; height: 22px; stroke-width: 2; }

.feature-card h3 { margin-bottom: 0.5rem; }

/* ── Two-col section ─────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.two-col h2 { margin-bottom: 1rem; }
.two-col p  { margin-bottom: 1.25rem; }

/* Accent visual block (reused in product feature sections) */
.accent-panel {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.accent-panel-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.accent-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.45rem;
}
.accent-row-dot {
  width: 7px; height: 7px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.accent-row-lbl {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.accent-row-val {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  font-family: 'Courier New', monospace;
}

/* ── CTA Band ────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 5rem 0;
  background: var(--navy);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.85rem; }
.cta-band p  { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-band .btn--primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.cta-band .btn--primary:hover { background: var(--badge-bg); border-color: var(--badge-bg); }
.cta-band .btn--secondary { color: var(--white); border-color: rgba(255,255,255,0.45); }
.cta-band .btn--secondary:hover { background: rgba(255,255,255,0.1); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Pricing teaser ──────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
}
.pricing-card--featured { border-color: var(--navy); }

.pricing-tier {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  margin-bottom: 0.35rem;
}
.pricing-card h3 { margin-bottom: 0.4rem; }
.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.pricing-period { font-size: 0.82rem; margin-bottom: 1.5rem; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.pricing-features li::before {
  content: '✓';
  color: var(--blue-mid);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}

/* ── Pre-register form ───────────────────── */
.pre-register-wrap {
  max-width: 580px;
  margin: 0 auto;
}
.pre-register-lead {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pre-register-lead .badge { margin-bottom: 0.85rem; }
.pre-register-lead h1 { margin-bottom: 0.75rem; }
.pre-register-lead p { font-size: 1.05rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.form-group label .req { color: #dc2626; margin-left: 2px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(19,38,92,0.09);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
  background: #ecfdf5;
  border-radius: var(--radius);
  border: 1.5px solid #6ee7b7;
}
.form-success-icon { font-size: 2.75rem; margin-bottom: 0.75rem; }
.form-success h3 { color: #065f46; margin-bottom: 0.5rem; }
.form-success p { color: #047857; font-size: 0.95rem; }

/* ── Company page ────────────────────────── */
.company-intro {
  max-width: 680px;
}
.company-intro h1 { margin-bottom: 1.25rem; }
.company-intro .lead { font-size: 1.15rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.value-card h3 { margin-bottom: 0.5rem; }

.contact-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 480px;
  margin-top: 2rem;
}
.contact-block h3 { margin-bottom: 1rem; }
.contact-block p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.contact-block a { color: var(--navy); text-decoration: none; font-weight: 500; }
.contact-block a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 240px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Utilities ───────────────────────────── */
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 1.75rem; }
.mt-lg  { margin-top: 2.5rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 1.75rem; }
.mb-lg  { margin-bottom: 2.5rem; }
.gap-sm { gap: 0.75rem; }

/* ── Page hero (inner pages) ─────────────── */
.page-hero {
  background: var(--bg-alt);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .badge { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { font-size: 1.1rem; max-width: 560px; }
