/* ════════════════════════════════════════════════════════════════════════════
   drivenBIdata — Ocean & Slate Design System
   ════════════════════════════════════════════════════════════════════════════ */

/* Reset & Custom Properties */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #0ea5e9;
  --accent-deep: #0284c7;
  --accent-light: #e0f2fe;
  --teal: #14b8a6;
  --teal-light: #ccfbf1;
  --dark-section: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: rgba(255,255,255,0.07);
  --radius: 14px;
  --radius-lg: 20px;
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --error-light: #fee2e2;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════ NAV ════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 0 3rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,248,250,0.8);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.logo {
  font-size: 1.2rem; font-weight: 400; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo b { font-weight: 800; color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.85rem;
  font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 0.5rem 1.2rem;
  border-radius: 8px; font-weight: 600; font-size: 0.85rem; transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent-deep); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; }

/* ════════════════════════════ FLASH MESSAGES ════════════════════════════ */
.flash-messages {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 99; width: 100%; max-width: 600px; padding: 0 1rem;
}
.flash-message {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; border-radius: 10px; margin-bottom: 0.5rem;
  font-size: 0.9rem; font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.flash-error, .flash-danger { background: var(--error-light); color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: var(--accent-light); color: #0369a1; border: 1px solid #bae6fd; }
.flash-close {
  background: none; border: none; font-size: 1.25rem; cursor: pointer;
  color: inherit; opacity: 0.6; transition: opacity 0.15s;
}
.flash-close:hover { opacity: 1; }

/* ════════════════════════════ HERO ════════════════════════════ */
.hero {
  padding: 10rem 3rem 6rem;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--surface);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: 3.6rem; font-weight: 800; line-height: 1.06;
  letter-spacing: -0.045em; margin-bottom: 1.25rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; line-height: 1.7; color: var(--muted);
  max-width: 440px; margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions { display: flex; gap: 0.75rem; animation: fadeUp 0.6s 0.3s ease both; }

/* Buttons */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: 0.8rem 1.75rem; border-radius: 10px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,165,233,0.25); }
.btn-secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--border);
  padding: 0.8rem 1.75rem; border-radius: 10px; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  text-decoration: none; font-family: inherit;
}
.btn-secondary:hover { border-color: var(--ink); }

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

/* ═══════════════════════ HERO VISUAL — PBI DASHBOARD ═══════════════════════ */
.hero-visual { position: relative; animation: fadeUp 0.7s 0.25s ease both; }
.pbi-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
/* Top ribbon — mimics PBI toolbar */
.pbi-ribbon {
  background: #f3f2f1;
  border-bottom: 1px solid #edebe9;
  padding: 0.4rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.pbi-ribbon-dots { display: flex; gap: 4px; }
.pbi-ribbon-dots span { width: 8px; height: 8px; border-radius: 50%; }
.pbi-ribbon-dots span:nth-child(1) { background: #e74c3c; }
.pbi-ribbon-dots span:nth-child(2) { background: #f5a623; }
.pbi-ribbon-dots span:nth-child(3) { background: #2ecc71; }
.pbi-ribbon-title { font-size: 0.7rem; font-weight: 600; color: #605e5c; letter-spacing: 0.01em; }
.pbi-ribbon-tabs { margin-left: auto; display: flex; gap: 0.5rem; }
.pbi-ribbon-tab {
  font-size: 0.6rem; font-weight: 500; color: #a19f9d;
  padding: 0.2rem 0.5rem; border-radius: 3px; background: transparent;
}
.pbi-ribbon-tab.active { background: #fff; color: #323130; box-shadow: 0 0.5px 2px rgba(0,0,0,0.1); }

/* Report canvas */
.pbi-canvas {
  padding: 1.25rem;
  background: #f9f9f9;
}
.pbi-report-title {
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.2rem;
}
.pbi-report-sub { font-size: 0.65rem; color: #a19f9d; margin-bottom: 1rem; }

/* Slicers row */
.pbi-slicers { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pbi-slicer {
  font-size: 0.6rem; font-weight: 500; padding: 0.25rem 0.65rem;
  border-radius: 4px; border: 1px solid #edebe9; background: #fff; color: #605e5c;
  display: flex; align-items: center; gap: 0.3rem;
}
.pbi-slicer.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.pbi-slicer i { font-size: 0.55rem; }

/* KPI row */
.pbi-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.pbi-kpi {
  background: #fff; border-radius: 8px; padding: 0.75rem 0.6rem;
  border: 1px solid #edebe9; text-align: center;
}
.pbi-kpi .kpi-val { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.pbi-kpi .kpi-val.up { color: #107c10; }
.pbi-kpi .kpi-val.accent { color: var(--accent); }
.pbi-kpi .kpi-val.dark { color: var(--ink); }
.pbi-kpi .kpi-label { font-size: 0.55rem; color: #a19f9d; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
.pbi-kpi .kpi-delta { font-size: 0.55rem; font-weight: 600; margin-top: 0.15rem; }
.pbi-kpi .kpi-delta.up { color: #107c10; }
.pbi-kpi .kpi-delta.down { color: #d13438; }

/* Charts row */
.pbi-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.6rem; }
.pbi-chart-card {
  background: #fff; border-radius: 8px; padding: 0.85rem;
  border: 1px solid #edebe9;
}
.pbi-chart-card h5 { font-size: 0.65rem; font-weight: 600; color: #323130; margin-bottom: 0.6rem; }
.pbi-chart-card svg { width: 100%; display: block; }

/* Donut center text */
.donut-center { font-size: 0.75rem; font-weight: 800; fill: var(--ink); }
.donut-center-lbl { font-size: 0.4rem; fill: #a19f9d; }

/* Legend */
.pbi-legend { display: flex; gap: 0.7rem; margin-top: 0.5rem; flex-wrap: wrap; }
.pbi-legend-item { display: flex; align-items: center; gap: 0.25rem; font-size: 0.55rem; color: #605e5c; }
.pbi-legend-dot { width: 6px; height: 6px; border-radius: 2px; }

/* ═══════════════════════ LOGOS BAR ═══════════════════════ */
.logos-bar {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 3rem;
  display: flex; align-items: center; gap: 3rem;
  border-top: 1px solid var(--border);
}
.logos-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; font-weight: 500; }
.logos-list { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.logos-list span { font-size: 0.88rem; font-weight: 700; color: #cbd5e1; letter-spacing: 0.02em; }

/* ═══════════════════════ SECTION SHARED ═══════════════════════ */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem;
}
.section-title { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.section-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 480px; margin-bottom: 3rem; }

/* ═══════════════════════ SERVICES ═══════════════════════ */
.services {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 3rem;
}
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.srv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.25s;
}
.srv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.srv-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.05rem;
}
.srv-icon.sky { background: var(--accent-light); color: var(--accent); }
.srv-icon.teal { background: var(--teal-light); color: var(--teal); }
.srv-icon.slate { background: var(--border-light); color: var(--ink-soft); }
.srv-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.srv-card p { font-size: 0.85rem; line-height: 1.6; color: var(--muted); margin-bottom: 1.25rem; }
.srv-link {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all 0.2s;
}
.srv-link:hover { gap: 0.6rem; }

/* ════════════════════════ FABRIC FLOW ════════════════════════ */
.fabric-flow {
  max-width: 1200px; margin: 0 auto;
  padding: 0 3rem 5rem;
}
.flow-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.flow-ribbon {
  background: #f3f2f1; border-bottom: 1px solid #edebe9;
  padding: 0.45rem 1.2rem; display: flex; align-items: center; gap: 0.75rem;
}
.flow-dots { display: flex; gap: 4px; }
.flow-dots span { width: 8px; height: 8px; border-radius: 50%; }
.flow-dots span:nth-child(1) { background: #e74c3c; }
.flow-dots span:nth-child(2) { background: #f5a623; }
.flow-dots span:nth-child(3) { background: #2ecc71; }
.flow-ribbon-title { font-size: 0.7rem; font-weight: 600; color: #605e5c; }
.flow-ribbon-tag {
  margin-left: auto; font-size: 0.55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem; border-radius: 4px;
  background: var(--accent-light); color: var(--accent);
}
.flow-canvas {
  padding: 2rem 2.5rem 1.75rem; background: #f9f9f9;
}
.flow-heading { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.1rem; }
.flow-sub { font-size: 0.62rem; color: #a19f9d; margin-bottom: 2rem; }

.pipeline {
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.pipeline::before {
  content: ''; position: absolute; top: 40px; left: 52px; right: 52px; height: 2px;
  background: repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 8px, transparent 8px, transparent 14px);
  z-index: 0;
}
.pipeline::after {
  content: ''; position: absolute; top: 37px; left: 52px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: 0.6; z-index: 1;
  animation: particleFlow 3s ease-in-out infinite;
}
@keyframes particleFlow {
  0% { left: 52px; opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { left: calc(100% - 60px); opacity: 0; }
}
.stage {
  display: flex; flex-direction: column; align-items: center;
  z-index: 2; flex: 0 0 auto; width: 110px;
}
.stage-icon { width: 80px; height: 80px; position: relative; margin-bottom: 0.7rem; }
.stage-icon svg { width: 100%; height: 100%; }
.stage-label { font-size: 0.72rem; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 0.15rem; }
.stage-desc { font-size: 0.55rem; color: #a19f9d; text-align: center; line-height: 1.4; }
.flow-arrow {
  flex: 1; display: flex; align-items: center; justify-content: center;
  z-index: 1; margin-top: -28px;
}
.flow-arrow svg { display: block; }

/* ════════════════════════ WHY US ════════════════════════ */
.why-us {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 3rem 5rem;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s;
}
.why-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.why-card .icon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 0.95rem;
}
.why-card:nth-child(1) .icon-circle { background: var(--accent-light); color: var(--accent); }
.why-card:nth-child(2) .icon-circle { background: var(--teal-light); color: var(--teal); }
.why-card:nth-child(3) .icon-circle { background: #fef3c7; color: #d97706; }
.why-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.84rem; line-height: 1.6; color: var(--muted); }

/* ═══════════════════════ CASE STUDIES ═══════════════════════ */
.cases {
  background: var(--dark-section);
  color: #fff;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 4.5rem 3rem;
}
.cases .section-eyebrow { color: var(--teal); }
.cases .section-title { color: #fff; }
.cases .section-desc { color: rgba(255,255,255,0.4); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cs-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
}
.cs-card:hover { border-color: rgba(14,165,233,0.2); transform: translateY(-2px); }
.cs-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem; border-radius: 6px; margin-bottom: 0.9rem;
}
.cs-tag.retail { background: rgba(14,165,233,0.15); color: #7dd3fc; }
.cs-tag.edu { background: rgba(20,184,166,0.15); color: #5eead4; }
.cs-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.cs-card p { font-size: 0.84rem; line-height: 1.6; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.cs-stats { display: flex; gap: 2rem; }
.cs-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.cs-stats .lbl { font-size: 0.65rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.05em; }
.cs-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-top: 1.25rem; transition: gap 0.2s;
}
.cs-link:hover { gap: 0.6rem; }
.cases-footer { text-align: center; margin-top: 2rem; }
.cases-footer a { color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.cases-footer a:hover { color: #fff; }

/* ════════════════════════ CTA ════════════════════════ */
.cta {
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 3rem 5rem; text-align: center;
}
.cta h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.75rem; }
.cta p { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ════════════════════════ FOOTER ════════════════════════ */
footer {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 3rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-top: 0.75rem; max-width: 320px; }
.footer-col h5 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.84rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-newsletter p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  flex: 1; padding: 0.55rem 0.75rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.8rem; font-family: inherit;
  background: var(--surface); color: var(--ink); outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: #94a3b8; }
.newsletter-form button {
  background: var(--accent); color: #fff; border: none;
  padding: 0.55rem 1rem; border-radius: 8px; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s;
  white-space: nowrap; font-family: inherit;
}
.newsletter-form button:hover { background: var(--accent-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--muted); text-decoration: none; font-size: 1rem; transition: color 0.15s; }
.footer-social a:hover { color: var(--accent); }

/* ════════════════════════ INNER PAGE STYLES ════════════════════════ */
.page-header {
  padding: 8rem 3rem 3rem;
  max-width: 1200px; margin: 0 auto;
}
.page-content {
  max-width: 1200px; margin: 0 auto;
  padding: 0 3rem 5rem;
}

/* ════════════════════════ FORM STYLES ════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.4rem;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}
textarea { resize: vertical; min-height: 120px; }
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Form card container */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Error states */
.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--error);
}
.invalid-feedback {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.25rem;
}

/* ════════════════════════ REVEAL ANIMATIONS ════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.on { opacity: 1; transform: translateY(0); }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; gap: 2.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .srv-grid, .why-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .cases { margin: 0 1rem 2rem; padding: 3rem 1.5rem; }
  nav { padding: 0 1.5rem; }
  .services, .why-us, .cta { padding-left: 1.5rem; padding-right: 1.5rem; }
  .fabric-flow { padding-left: 1.5rem; padding-right: 1.5rem; }
  .pipeline { flex-direction: column; gap: 1.5rem; }
  .pipeline::before, .pipeline::after { display: none; }
  .flow-arrow { transform: rotate(90deg); margin-top: 0; }
  .flow-canvas { padding: 1.5rem; }
  .logos-bar { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  footer { padding: 2rem 1.5rem; }
  .page-header, .page-content { padding-left: 1.5rem; padding-right: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.5rem; gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
  .pbi-kpis { grid-template-columns: repeat(2, 1fr); }
  .pbi-charts { grid-template-columns: 1fr; }
  .pbi-slicers { flex-wrap: wrap; }
  .section-title { font-size: 1.8rem; }
  .cta h2 { font-size: 1.8rem; }
}
