/* DeepSentrics — crisp white + deep navy */
:root {
  --ink: #0A1628;            /* deep navy, near-black */
  --ink-2: #1E2A3D;
  --ink-3: #4A5568;
  --ink-4: #6B7280;
  --ink-5: #9CA3AF;
  --line: #E5E9F0;
  --line-2: #EEF1F6;
  --bg: #FFFFFF;
  --bg-2: #F7F9FC;
  --bg-3: #F1F4F9;
  --accent: #0B5FFF;         /* enterprise blue */
  --accent-2: #0048D6;
  --accent-soft: #E8F0FF;
  --accent-ink: #001F5C;
  --cyan: #00B8D9;           /* kept as a secondary highlight */
  --green: #059669;
  --amber: #B45309;

  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 1px rgba(10, 22, 40, 0.03);
  --shadow: 0 2px 4px rgba(10, 22, 40, 0.04), 0 8px 24px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 4px 12px rgba(10, 22, 40, 0.06), 0 20px 48px rgba(10, 22, 40, 0.10);
}

/* dark mode */
[data-theme="dark"] {
  --ink: #F2F5FA;
  --ink-2: #D5DCE8;
  --ink-3: #9AA4B6;
  --ink-4: #7E8899;
  --ink-5: #5C6678;
  --line: #1E2838;
  --line-2: #15202F;
  --bg: #0A1220;
  --bg-2: #0E1828;
  --bg-3: #121E30;
  --accent: #4A8BFF;
  --accent-2: #78A8FF;
  --accent-soft: #12223F;
  --accent-ink: #CFE0FF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ———————— Layout shell ———————— */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .shell { padding: 0 24px; } }

/* ———————— Nav ———————— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-2);
}
[data-theme="dark"] .nav { background: rgba(10,18,32,0.72); }

.nav-inner { display: flex; align-items: center; height: 80px; gap: 40px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 60px; width: auto; }
[data-theme="dark"] .brand-logo { filter: invert(1) brightness(1.1); }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-link.is-active { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

/* ———————— Mobile Nav Toggle ———————— */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.2s;
}
.nav-toggle span:nth-child(2) { margin: 3px 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* ———————— Mobile Nav Styles ———————— */
@media (max-width: 768px) {
  .nav-inner {
    position: relative;
    height: 64px;
  }
  
  .brand-logo {
    height: 48px !important;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: var(--shadow);
  }
  
  .nav-toggle[aria-expanded="true"] ~ .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
    width: 100%;
  }
  
  .nav-cta {
    display: none !important;
  }
}

/* ———————— Buttons ———————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.1px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(11,95,255,.3); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-5); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* ———————— Hero ———————— */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 100px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.2px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 600; margin: 20px 0 0;
  color: var(--ink);
}
.h1 em {
  font-style: normal; font-family: var(--font-display);
  font-weight: 400; color: var(--ink-3);
  letter-spacing: -0.03em;
}
.h1 .accent { color: var(--accent); font-style: normal; }

.lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-3);
  margin: 24px 0 0; max-width: 540px;
}

.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 28px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-4);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item strong { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* ———————— Hero visual (quote preview card) ———————— */
.hero-visual {
  position: relative;
}

/* ———————— Sections ———————— */
.section { padding: 96px 0; border-top: 1px solid var(--line-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 56px; gap: 40px; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 600;
  max-width: 640px; margin: 0;
}
.section-title em { font-style: normal; font-family: var(--font-display); font-weight: 400; color: var(--ink-3); }
.section-sub { font-size: 16px; color: var(--ink-3); max-width: 420px; line-height: 1.5; }

/* ———————— Customers section ———————— */
.customers-section { text-align: center; }
.customers-inner { text-align: center; }
.customers-title { margin: 14px auto 14px !important; max-width: none !important; text-align: center; }
.customers-sub { font-size: 16px; color: var(--ink-3); max-width: 560px; margin: 0 auto 48px; line-height: 1.5; text-align: center; }
.customers-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.customer-tile {
  flex: 1 1 0;
  min-width: 180px;
  max-width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  transition: border-color .2s, background .2s, transform .2s;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 880px) { .customer-tile { flex: 1 1 40%; max-width: none; } }
.customer-tile img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.customer-tile:hover { border-color: var(--ink-5); background: var(--bg); transform: translateY(-2px); }
.customer-tile--invert-light img { filter: invert(1); }
[data-theme="dark"] .customer-tile--invert-light img { filter: none; }
.customers-foot { font-size: 14px; color: var(--ink-4); margin: 40px auto 0; text-align: center; }

/* ———————— Value cards (Paradigm Shift) ———————— */
.values {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg);
}
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.value {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line-2);
  position: relative;
  transition: background .2s;
}
.value:last-child { border-right: none; }
@media (max-width: 960px) {
  .value:nth-child(2) { border-right: none; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
.value:hover { background: var(--bg-2); }
.value-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-5);
  letter-spacing: 0.1em; margin-bottom: 28px;
}
.value-icon {
  width: 32px; height: 32px; color: var(--accent); margin-bottom: 20px;
}
.value h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 10px; color: var(--ink);
}
.value p {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3);
}

/* ———————— How it works ———————— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--ink-5); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.step h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.step-detail {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-4);
  display: flex; align-items: center; gap: 8px;
}

/* ———————— Quote preview section ———————— */
.quote-preview-section {
  background: var(--bg-2);
}
.quote-preview-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
}
@media (max-width: 960px) { 
  .quote-preview-grid { grid-template-columns: 1fr; }
  .quote-preview-second { display: none; }
}

.quote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
  transition: transform .4s;
}
.quote-card:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }

.qc-top {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2);
}
.qc-top-l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.qc-top-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.qc-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent-ink); letter-spacing: 0.04em;
}
.qc-body { padding: 28px 32px 32px; }
.qc-label { font-size: 12px; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.qc-price {
  margin-top: 6px;
  font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.qc-price-curr { font-size: 32px; color: var(--ink-4); font-weight: 500; }
.qc-price-num { font-variant-numeric: tabular-nums; }
.qc-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2);
  gap: 12px;
}
.qc-metric-label { font-size: 10.5px; color: var(--ink-5); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.qc-metric-val { font-size: 17px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.qc-metric-val.accent { color: var(--accent); }
.qc-metric-val.cyan { color: var(--cyan); }
.qc-bar {
  margin-top: 24px;
  height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden;
}
.qc-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan));
  width: 38%;
  animation: barGrow 2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes barGrow { from { width: 0 } to { width: 38% } }
.qc-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-4);
}

/* ———————— Case study ———————— */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative; overflow: hidden;
}
.case-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .case-grid { grid-template-columns: 1fr; } .case { padding: 36px 28px; } }
.case-quote {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink); margin: 0;
}
.case-quote::before { content: '"'; margin-right: 4px; color: var(--accent); }
.case-quote::after { content: '"'; margin-left: 4px; color: var(--accent); }
.case-attrib { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.case-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0B5FFF);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.case-name { font-weight: 600; font-size: 15px; }
.case-role { font-size: 13px; color: var(--ink-4); }

.case-stats { display: grid; grid-template-columns: 1fr; gap: 20px; }
.case-stat {
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
}
.case-stat-val {
  font-size: 40px; letter-spacing: -0.03em; font-weight: 600;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px;
}
.case-stat-unit { font-size: 20px; color: var(--ink-4); font-weight: 500; }
.case-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ———————— CTA band ———————— */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 56px;
  color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 28px; } }
.cta-band::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,95,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(26px, 2.8vw, 36px); font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 10px; position: relative;
}
.cta-band h2 em { font-family: var(--font-display); font-style: normal; font-weight: 400; color: #7FB8FF; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.65); font-size: 16px; max-width: 500px; position: relative; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.2); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.cta-band .btn-accent { background: #fff; color: var(--ink); }
.cta-band .btn-accent:hover { background: #E8F0FF; }

/* ———————— Footer ———————— */
.footer { padding: 72px 0 48px; border-top: 1px solid var(--line-2); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-2);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin: 0 0 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-3); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-brand-tag { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin-top: 16px; max-width: 300px; }
.footer-foot {
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-4); flex-wrap: wrap; gap: 12px;
}

/* ———————— Tweak panel ———————— */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  font-size: 13px;
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks-panel h4 span { color: var(--ink-4); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label { font-size: 11px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.tweak-opts { display: flex; flex-direction: column; gap: 6px; }
.tweak-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); cursor: pointer; background: var(--bg);
  transition: all .12s; font-size: 13px; text-align: left;
}
.tweak-opt:hover { background: var(--bg-2); border-color: var(--ink-5); }
.tweak-opt.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.tweak-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px; border-radius: 8px; background: var(--bg-2);
}
.tweak-switch {
  width: 36px; height: 20px; border-radius: 10px; background: var(--line);
  position: relative; cursor: pointer; transition: background .15s; border: none; padding: 0;
}
.tweak-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.tweak-switch.is-on { background: var(--accent); }
.tweak-switch.is-on::after { transform: translateX(16px); }
