/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  background: #fff;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
}
.site-nav .inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.site-nav .logo { flex-shrink: 0; }
.site-nav .logo img { height: 28px; display: block; }
.site-nav .nav-right {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: flex-end; gap: 0.625rem 0.75rem;
}
.site-nav .nav-link {
  font-size: 0.875rem; font-weight: 600; color: #1c1c1e;
  text-decoration: none; cursor: pointer;
}
/* Secondary nav pill — same geometry as .btn-contact, outline treatment */
.site-nav .btn-nav-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; box-sizing: border-box;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1c1c1e;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.site-nav .btn-nav-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.site-nav .btn-nav-secondary:focus-visible {
  outline: 2px solid #6b4eff;
  outline-offset: 2px;
}
.site-nav .btn-nav-secondary svg { width: 14px; height: 14px; flex-shrink: 0; }

.site-nav .btn-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; box-sizing: border-box;
  background: #1c1c1e; color: #fff;
  font-size: 0.875rem; font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #1c1c1e;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.site-nav .btn-contact:hover { background: #333; border-color: #333; }
.site-nav .btn-contact:focus-visible {
  outline: 2px solid #6b4eff;
  outline-offset: 2px;
}
.site-nav .btn-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-contact-text--short { display: none; }

/* ── Shared section helpers ───────────────────────────────── */
.section-light   { background: #fff; }
.section-alt     { background: #f5f5f7; }
.section-dark    {
  background: #0d0d1a;
  background-image: url('/images/framer-dark-bg_03f8b64d.png');
  background-size: cover; background-position: center;
}
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm  { max-width: 960px;  margin: 0 auto; padding: 0 1.5rem; }
.container-xs  { max-width: 768px;  margin: 0 auto; padding: 0 1.5rem; }
.section-pad   { padding: 6rem 0; }
.text-center   { text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(107,78,255,.08); border: 1px solid rgba(107,78,255,.15);
  border-radius: 9999px; padding: .375rem 1rem;
  color: #6b4eff; font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-label-dark {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 9999px; padding: .375rem 1rem;
  color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #1c1c1e; letter-spacing: -.02em; text-wrap: balance;
}
.section-heading-white { color: #fff; }
.section-subtext {
  color: #6b6b6b; font-size: 1rem; line-height: 1.7;
  max-width: 640px; margin: 1rem auto 0; text-wrap: balance;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1c1c1e; color: #fff;
  font-size: .875rem; font-weight: 600;
  padding: 12px 24px; border-radius: 9999px;
  text-decoration: none; transition: background .15s;
}
.btn-dark:hover { background: #333; }
.btn-dark svg { width: 16px; height: 16px; }
.btn-purple {
  display: inline-flex; align-items: center; gap: 8px;
  background: #6b4eff; color: #fff;
  font-size: .875rem; font-weight: 600;
  padding: 12px 24px; border-radius: 9999px;
  text-decoration: none; transition: background .15s;
}
.btn-purple:hover { background: #5a3ee0; }
.btn-purple svg { width: 16px; height: 16px; }

/* ── Fade-in-up (CSS scroll-driven + JS fallback) ─────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.fade-in-up {
  opacity: 1;
  transform: none;
}

.js-ready .fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s cubic-bezier(0.22, 1, 0.36, 1), transform .62s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-ready .fade-in-up.visible {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .fade-in-up {
    animation: fade-in-up .55s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  .js-ready .fade-in-up,
  .js-ready .fade-in-up.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  min-height: auto; display: flex; flex-direction: column;
  background: #fff; overflow: hidden;
}
.hero-bottom-blur {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 180px; z-index: 10;
  pointer-events: none; overflow: hidden;
  transition: opacity .3s;
}
.hero-bottom-blur .blur-layer {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-text-wrap {
  max-width: 896px; margin: 0 auto; padding: 3.5rem 1.5rem 1.4rem;
  text-align: center;
}
.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.5rem); line-height: 1.15;
  color: #1c1c1e; letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: #6b6b6b; font-size: 1.1rem; line-height: 1.6;
  max-width: 560px; margin: 0 auto 2rem;
}
.hero-img-wrap {
  flex: 0 0 auto; display: flex; justify-content: center;
  align-items: flex-end; padding-top: 1.25rem; overflow: visible;
  perspective: 1200px; margin-top: 0; margin-bottom: -70px; position: relative; z-index: 2;
}
/* Ambient glow behind mockup */
.hero-img-wrap::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  width: min(520px, 90vw);
  height: min(420px, 55vh);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(107,78,255,.28) 0%, rgba(107,78,255,.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-breathe 8s ease-in-out infinite;
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.hero-img-parallax {
  position: relative;
  z-index: 1;
  will-change: transform;
  transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-img-reveal {
  animation: hero-img-reveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
@keyframes hero-img-reveal {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-img-drift {
  animation: hero-img-drift 5.5s ease-in-out 0.9s infinite;
}
@keyframes hero-img-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-img-inner {
  width: min(700px, 85vw);
  transform: rotateX(14deg) scale(1.05);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition: filter 0.5s ease;
  filter: drop-shadow(0 40px 80px rgba(107,78,255,.35)) drop-shadow(0 20px 40px rgba(0,0,0,.25));
}
.hero-img-inner img { width: 100%; height: auto; display: block; }
.hero-img-inner {
  transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1), filter .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-wrap::before { animation: none; opacity: 0.7; transform: translateX(-50%) scale(1); }
  .hero-img-reveal { animation: none; opacity: 1; transform: none; }
  .hero-img-drift { animation: none; }
  .hero-img-parallax,
  .hero-img-inner { transition: none; }
}

/* ── Feature cards (What is Distributal) ─────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 0;
}
.feature-card {
  background: #fff; border: 1px solid rgba(0,0,0,.07);
  border-radius: 1rem; padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: .875rem;
}
.feature-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f5f5f7; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 18px; height: 18px; color: #6b6b6b; }
.feature-card .card-title { font-weight: 600; font-size: .95rem; color: #1c1c1e; text-wrap: balance; }
.feature-card .card-sub   { font-size: .875rem; color: #6b6b6b; margin-top: .25rem; }
.smartphone-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #e8f5e9; border-radius: 9999px; padding: .75rem 1.5rem;
  color: #2e7d32; font-weight: 600; font-size: .95rem; margin-top: 3rem;
}
.smartphone-badge svg { width: 18px; height: 18px; }

/* ── Why it pays (dark) ───────────────────────────────────── */
.dark-section {
  position: relative;
  isolation: isolate;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,20,.56) 0%, rgba(9,9,20,.72) 100%);
  z-index: -1;
  pointer-events: none;
}
.dark-section h2 { color: #fff; }
.dark-why-content {
  position: relative;
  z-index: 1;
}
.dark-why-heading {
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.dark-two-col {
  display: flex; flex-direction: row; align-items: center; gap: 4rem;
}
.dark-two-col .col-text { flex: 1; }
.dark-two-col .col-img  { flex: 1; display: flex; justify-content: center; }
.dark-two-col p.intro { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; line-height: 1.7; }
.check-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.check-list li {
  color: rgba(255,255,255,.8); margin-bottom: .85rem;
  display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem;
}
.check-list li svg { width: 18px; height: 18px; color: #fff; flex-shrink: 0; margin-top: .15rem; }
.dark-note { color: rgba(255,255,255,.6); margin-top: 1.5rem; font-style: italic; font-size: .95rem; }
.phone-frame {
  border-radius: 24px; overflow: hidden;
  width: min(340px, 90vw); aspect-ratio: 1/1;
  box-shadow: 0 24px 60px rgba(107,78,255,.4);
}
.phone-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center top; transform: scale(1.12);
}

/* ── What it does ─────────────────────────────────────────── */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
.role-card {
  background: #fff; border-radius: 1.25rem; padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
}
.role-emoji {
  width: 3rem; height: 3rem; border-radius: .75rem; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.role-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: #1c1c1e; margin-bottom: 1rem;
}
.dot-list { list-style: none; padding: 0; margin: 0; }
.dot-list li {
  color: #6b6b6b; margin-bottom: .625rem;
  display: flex; gap: .75rem; font-size: .9rem; line-height: 1.5;
}
.dot-list li .dot { color: #c0c0c0; flex-shrink: 0; }
.simplicity-card {
  background: #fff; border-radius: 1.25rem; padding: 2.5rem;
  border: 1px solid rgba(0,0,0,.06);
}
.simplicity-inner { display: flex; flex-direction: row; align-items: flex-start; gap: 2rem; }
.simplicity-inner .col-text { flex: 1; }
.simplicity-inner .col-img  { flex: 1; display: flex; justify-content: center; }
.simplicity-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 1.5rem; color: #1c1c1e; margin-bottom: 1rem;
}

/* ── Screenshot gallery (CSS scroll-snap, no JS) ──────────── */
.slideshow-wrap { width: 100%; max-width: 900px; margin: 0 auto; }
.slideshow {
  display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.18);
  aspect-ratio: 16/10;
  scrollbar-width: none;
}
.slideshow::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Case study (dark) ────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.25rem; padding: 1.75rem;
}
.case-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: rgba(107,78,255,.25); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem;
}
.case-icon svg { width: 22px; height: 22px; color: rgba(255,255,255,.9); }
.case-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  color: #fff; margin-bottom: .75rem; font-size: 1.05rem; line-height: 1.4;
}
.case-card p { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.7; }
.case-result-list { list-style: none; padding: 0; margin: 0; }
.case-result-list li {
  color: #fff; margin-bottom: .625rem;
  display: flex; gap: .625rem; align-items: flex-start;
  font-size: .875rem; line-height: 1.5;
}
.case-result-list li svg { width: 16px; height: 16px; color: #fff; flex-shrink: 0; margin-top: .1rem; }

/* ── ICP section ──────────────────────────────────────────── */
.icp-two-col {
  display: flex; flex-direction: row; align-items: center; gap: 4rem;
}
.icp-two-col .col-img  { flex: 1; }
.icp-two-col .col-text { flex: 1; }
.icp-frame {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.12); aspect-ratio: 1/1;
}
.icp-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.icp-two-col h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: #1c1c1e;
  letter-spacing: -.02em; text-wrap: balance; margin-bottom: 1.25rem; line-height: 1.2;
}
.icp-two-col p { color: #6b6b6b; font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.icp-bold { color: #1c1c1e; font-weight: 700; font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.5; }

/* ── Calculator promo section ────────────────────────────── */
.calc-promo { position: relative; overflow: hidden; }
.calc-promo-bg-left, .calc-promo-bg-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: clamp(.6rem, 1.2vw, .85rem); color: rgba(107,78,255,.07);
  line-height: 2.2; user-select: none; pointer-events: none; white-space: pre;
}
.calc-promo-bg-left  { left: 2%; text-align: right; }
.calc-promo-bg-right { right: 2%; text-align: left; }

/* ── CTA section ─────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a0533 60%, #0d0d1a 100%);
  border-radius: 1.5rem; padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(107,78,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(107,78,255,.06) 1px, transparent 1px);
  background-size: 60px 60px; border-radius: 1.5rem; pointer-events: none;
}
.cta-box::after {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,78,255,.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-col { flex: 1 1 300px; position: relative; z-index: 1; }
.cta-box h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); color: #fff;
  letter-spacing: -.02em; text-wrap: balance; line-height: 1.1;
}
.cta-box .cta-body { flex: 1 1 280px; position: relative; z-index: 1; }
.cta-box .cta-body .cta-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: #fff; margin-bottom: .75rem;
}
.cta-box .cta-body p { color: rgba(255,255,255,.65); margin-bottom: 1.5rem; line-height: 1.6; text-wrap: balance; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #1c1c1e; padding: 3rem 0; }
.site-footer .inner {
  max-width: 1152px; margin: 0 auto; padding: 0 3rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.site-footer .footer-logo img { height: 20px; display: block; }
.site-footer .footer-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.site-footer .footer-links a {
  color: rgba(255,255,255,.55); font-size: .875rem; font-weight: 500;
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .copy { color: rgba(255,255,255,.4); font-size: .875rem; margin: 0; }

/* ── Blog shared ─────────────────────────────────────────── */
.blog-nav-link { font-size: .875rem; font-weight: 600; text-decoration: none; color: #1c1c1e; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dark-two-col, .icp-two-col, .simplicity-inner { flex-direction: column; gap: 2.5rem; }
  .dark-two-col .col-img, .icp-two-col .col-img { width: 100%; }
  .phone-frame, .icp-frame { width: min(340px, 90%); margin: 0 auto; }
}
@media (max-width: 768px) {
  .site-nav .inner {
    padding: 0 1rem;
    height: auto;
    min-height: 56px;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
  .site-nav .logo img { height: 24px; }
  .site-nav .nav-right { gap: 0.5rem 0.5rem; max-width: calc(100% - 116px); }
  .site-nav .btn-nav-secondary,
  .site-nav .btn-contact {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.8125rem;
  }
  .site-nav .btn-nav-secondary svg,
  .site-nav .btn-contact svg { width: 13px; height: 13px; }

  .feature-grid, .role-grid, .case-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 3.5rem 0; }
  .hero-text-wrap { padding: 2.25rem 1.25rem 1.1rem; }
  .hero-h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-img-wrap { padding-top: .65rem; margin-top: 0; margin-bottom: -40px; }
  .hero-img-inner { width: min(340px, 92vw); }
  .cta-box { flex-direction: column; }
  .simplicity-inner { flex-direction: column; }
  .calc-promo-bg-left, .calc-promo-bg-right { display: none; }
  .slideshow { border-radius: 14px; }
  .site-footer .inner {
    padding: 0 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .footer-right { align-items: flex-start; }
  .site-footer .footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .container, .container-sm, .container-xs { padding: 0 1rem; }
  .section-pad { padding: 2.5rem 0; }
  .feature-card { padding: 1rem; }
  .role-card, .simplicity-card { padding: 1.5rem; }
  .case-card { padding: 1.25rem; }

  .site-nav .inner { padding-left: 0.875rem; padding-right: 0.875rem; }
  .site-nav .nav-right { max-width: calc(100% - 100px); }
  .site-nav .btn-nav-secondary,
  .site-nav .btn-contact { padding: 10px 12px; }
}

/* Very narrow: shorter contact label (accessible name stays via aria-label on <a>) */
@media (max-width: 360px) {
  .btn-contact-text--long { display: none !important; }
  .btn-contact-text--short { display: inline !important; }
}
