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

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

:root {
  --c-bg:        #F9FAFB;
  --c-dark:      #111827;
  --c-card:      #FFFFFF;
  --c-purple:    #8B5CF6;
  --c-blue:      #3B82F6;
  --c-pink:      #D946EF;
  --c-muted:     #6B7280;
  --c-border:    #E5E7EB;
  --grad-main:   linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #D946EF 100%);
  --grad-alt:    linear-gradient(135deg, #D946EF 0%, #8B5CF6 100%);
  --shadow-card: 0 4px 32px rgba(17,24,39,.06), 0 1px 4px rgba(17,24,39,.04);
  --shadow-lg:   0 16px 64px rgba(17,24,39,.12), 0 4px 16px rgba(17,24,39,.08);
  --radius-card: 2rem;
  --radius-sm:   1rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
p { color: var(--c-muted); }

/* ── Layout helpers ── */
.site-wrap   { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-gap { padding: 5rem 0; }
.card-float  {
  background: var(--c-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.card-dark {
  background: var(--c-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #1f2937;
}

/* ── Gradient text ── */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,.35); }
.btn-grad { background: var(--grad-main); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 24px rgba(17,24,39,.3); }

/* ── Nav ── */
.nav-pill {
  position: sticky;
  top: 1rem;
  z-index: 50;
  margin: 1rem auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}
.nav-inner {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 9999px;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(17,24,39,.08);
}
.nav-logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; }
.nav-logo span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--c-dark); font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--c-purple); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-pill { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + .5rem);
    left: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-border);
    gap: 1.25rem;
    z-index: 100;
  }
}

/* ── Hero ── */
.hero-card {
  background: var(--c-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  padding: 5rem 3rem 4rem;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-waves { position: absolute; right: -4rem; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  width: fit-content;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-main); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; max-width: 700px; margin-bottom: 1.5rem; }
.hero-sub   { font-size: 1.1rem; color: rgba(255,255,255,.6); max-width: 520px; margin-bottom: 2.5rem; }

.hero-stats { display: flex; gap: 2.5rem; list-style: none; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.75rem; color: #fff; font-weight: 800; line-height: 1; }
.hero-stats em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.45); margin-top: .25rem; }

/* ── Mobile section spacing override ── */
@media (max-width: 640px) {
  [style*="padding-bottom:5rem"] { padding-bottom: 2.5rem !important; }
  [style*="padding-bottom:4rem"] { padding-bottom: 2rem !important; }
}

/* ── Two-col adaptive grid (viz block + form) ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── Solutions grid ── */
.solutions-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.sol-item {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s, box-shadow .25s;
}
.sol-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sol-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-title { font-size: 1.2rem; font-weight: 700; color: var(--c-dark); }
.sol-desc  { font-size: .9rem; color: var(--c-muted); line-height: 1.7; }
.sol-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.sol-features li { font-size: .85rem; color: var(--c-muted); display: flex; align-items: center; gap: .5rem; }
.sol-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-main); flex-shrink: 0; }
.sol-tag {
  display: inline-block;
  margin-top: auto;
  padding: .35rem .9rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(139,92,246,.1);
  color: var(--c-purple);
  width: fit-content;
}

/* ── Methodology ── */
.method-card {
  background: var(--c-dark);
  border-radius: var(--radius-card);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.method-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.method-item { display: flex; flex-direction: column; gap: .75rem; }
.method-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.method-num.accent { background: var(--grad-main); border: none; }
.method-label { font-weight: 700; color: #fff; font-size: 1rem; }
.method-desc  { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.method-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ── Form / Lead ── */
.lead-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 3.5rem 3rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.form-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.form-grid li { display: flex; flex-direction: column; gap: .5rem; }
.form-grid li.full-width { grid-column: 1 / -1; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--c-dark); letter-spacing: .03em; text-transform: uppercase; }
.form-input, .form-select {
  padding: .875rem 1.25rem;
  border: 1.5px solid var(--c-border);
  border-radius: .875rem;
  font-size: .9375rem;
  font-family: inherit;
  background: var(--c-bg);
  color: var(--c-dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
  background: #fff;
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.25rem center; padding-right: 2.75rem; cursor: pointer; }
.form-submit {
  padding: 1rem 2.5rem;
  background: var(--grad-main);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  width: 100%;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139,92,246,.4); }

/* ── Trust logos strip ── */
.trust-strip {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item { opacity: .4; transition: opacity .2s; }
.trust-item:hover { opacity: .7; }

/* ── Chart / visual block ── */
.viz-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.viz-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.viz-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }
.viz-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.viz-sub   { font-size: .8rem; color: rgba(255,255,255,.4); }
.bar-track { background: rgba(255,255,255,.08); border-radius: 9999px; height: 6px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 9999px; background: var(--grad-main); transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  z-index: 999;
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.5rem;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  max-width: 680px;
  width: calc(100% - 3rem);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); }
.cookie-text { font-size: .85rem; color: rgba(255,255,255,.65); flex: 1; line-height: 1.5; }
.cookie-text a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-accept {
  padding: .6rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background: var(--grad-main);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,.45); }
.cookie-decline {
  padding: .6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ── Section headers ── */
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 1rem;
}
.sec-kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-purple); }
.sec-title { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--c-dark); max-width: 640px; }
.sec-title-light { color: #fff; }
.sec-sub { font-size: 1rem; color: var(--c-muted); max-width: 520px; margin-top: .75rem; }
.sec-sub-light { color: rgba(255,255,255,.5); }

/* ── Policy pages ── */
.policy-wrap { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.policy-card { background: #fff; border-radius: var(--radius-card); padding: 3rem 3rem; border: 1px solid var(--c-border); box-shadow: var(--shadow-card); }
.policy-card h1 { font-size: 2rem; margin-bottom: .5rem; }
.policy-card h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; color: var(--c-dark); }
.policy-card p  { font-size: .9375rem; line-height: 1.75; margin-bottom: 1rem; }
.policy-card ul { list-style: disc; padding-left: 1.5rem; color: var(--c-muted); font-size: .9375rem; line-height: 1.75; }
.policy-date  { font-size: .8rem; color: var(--c-muted); margin-bottom: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-purple); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 2rem; }
.back-link:hover { gap: .75rem; }

/* ── Thanks page ── */
.thanks-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.thanks-card { background: #fff; border-radius: var(--radius-card); padding: 4rem 3rem; text-align: center; max-width: 560px; width: 100%; border: 1px solid var(--c-border); box-shadow: var(--shadow-card); }

/* ── Footer ── */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.5); padding: 4rem 1.5rem 2rem; }
.footer-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-col-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
}
.footer-logo-text { font-weight: 900; font-size: 1.1rem; letter-spacing: -.03em; }
.footer-logo-text span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ════ TABLET (≤ 900px) ════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .two-col-grid { gap: 2rem; }

  .method-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ════ MOBILE (≤ 640px) ════ */
@media (max-width: 640px) {

  /* Base */
  body { font-size: 15px; }
  .site-wrap { padding: 0 1rem; }
  .section-gap { padding: 3rem 0; }

  /* Nav */
  .nav-pill { margin: .625rem auto; padding: 0 1rem; }
  .nav-inner { padding: .625rem 1rem; }

  /* Hero */
  .hero-card {
    padding: 2.5rem 1.25rem 2rem;
    min-height: auto;
    border-radius: 1.5rem;
  }
  .hero-waves { display: none; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-sub   { font-size: .9375rem; }
  .hero-stats {
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .hero-stats strong { font-size: 1.4rem; }

  /* Section headers */
  .sec-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Sections vertical spacing */
  .site-wrap.section-gap,
  section.site-wrap { padding-bottom: 2.5rem; }

  /* Solutions */
  .solutions-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sol-item { padding: 1.75rem 1.25rem; border-radius: 1.5rem; }

  /* Viz / two-col grid → single column */
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-dark { padding: 2.5rem 1.25rem !important; border-radius: 1.5rem; }
  .viz-grid  { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .viz-value { font-size: 1.5rem; }

  /* Methodology */
  .method-card { padding: 2.5rem 1.25rem; border-radius: 1.5rem; }
  .method-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Lead form */
  .lead-card { padding: 2rem 1.25rem; border-radius: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-grid li.full-width { grid-column: 1; }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    bottom: .75rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }
  .site-footer { padding: 3rem 1rem 1.5rem; }

  /* Policy pages */
  .policy-card { padding: 1.75rem 1.25rem; border-radius: 1.5rem; }
  .policy-wrap { padding: 2rem 1rem; }

  /* Thanks page */
  .thanks-card { padding: 2.5rem 1.25rem; border-radius: 1.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
}

/* ════ VERY SMALL (≤ 400px) ════ */
@media (max-width: 400px) {
  .hero-title { font-size: 1.875rem; }
  .viz-grid   { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── Contact page ── */
.contact-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-item-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-purple); }
.contact-item-val   { font-size: .9375rem; color: var(--c-dark); font-weight: 500; }
.contact-item-val a { color: var(--c-purple); text-decoration: none; }
.contact-item-val a:hover { text-decoration: underline; }

/* ── dfn / bdi / kbd semantic highlights ── */
dfn  { font-style: normal; font-weight: 700; color: var(--c-dark); border-bottom: 1.5px dashed var(--c-purple); cursor: help; }
bdi  { background: linear-gradient(135deg,rgba(139,92,246,.12),rgba(217,70,239,.12)); border-radius: .3em; padding: .05em .35em; font-weight: 600; color: var(--c-purple); }
kbd  { background: var(--c-dark); color: #fff; border-radius: .35em; padding: .1em .45em; font-family: inherit; font-size: .9em; font-weight: 600; letter-spacing: .02em; }

dfn.light  { color: rgba(255,255,255,.9); border-bottom-color: rgba(217,70,239,.6); }
bdi.light  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
kbd.light  { background: rgba(255,255,255,.12); color: #fff; }
