:root {
  /* Apple Style Palette */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #111111;
  --text-muted: #6e6e73;
  --primary: #8b35ff;
  --primary-light: #9a4dff;
  --line: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
  
  /* Brand Accents */
  --teal: #0d9b86;
  --gold: #d4a64a;
  --red: #dc1f2a;
  
  /* Metrics & Radii */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --container: 1120px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroHeadline {
  from { opacity: 0; transform: translateY(36px) scale(0.98); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroPop {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -24px, 0) scale(1.08); }
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes conveyorMove {
  0% { transform: translateX(-100%); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* --- Global --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.brand img {
  height: 220px;
  width: auto;
  margin: -85px 0;
  display: block;
  max-height: none;
}

.footer-brand img {
  height: 180px;
  width: auto;
  margin: -60px 0;
  display: block;
  max-height: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-weight: 600;
}

.nav-cta:hover {
  background: #333333;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(139, 53, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  box-shadow: 0 18px 40px rgba(139, 53, 255, 0.25);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.1);
}

/* Dark context overrides */
.dark-section .btn-secondary,
.dark-card .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-section .btn-secondary:hover,
.dark-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Typography --- */
h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 800;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 800;
}

h3 {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(circle at top, rgba(139, 53, 255, 0.15), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(139, 53, 255, 0.12);
  filter: blur(40px);
  animation: floatOrb 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::before { top: 12%; left: -140px; }
.hero::after { right: -160px; bottom: 4%; animation-delay: 1.4s; background: rgba(139, 53, 255, 0.09); }

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 88vw);
  height: min(760px, 88vw);
  border: 1px solid rgba(139, 53, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 28s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 24px rgba(139, 53, 255, 0.7);
}

.orbit::before { top: 16%; left: 12%; }
.orbit::after { bottom: 11%; right: 18%; }

/* Ecommerce Conveyor */
.conveyor {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 53, 255, 0.12), transparent);
  transform: translateY(-50%);
}

.conveyor-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(139, 53, 255, 0.8);
  animation: conveyorMove 8s linear infinite;
  opacity: 0;
}

.conveyor-dot:nth-child(2) { animation-delay: 2s; }
.conveyor-dot:nth-child(3) { animation-delay: 4s; }
.conveyor-dot:nth-child(4) { animation-delay: 6s; }

/* Cart Path Animation */
.cart-animation-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 92vw);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.cart-svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  opacity: 0.08;
  stroke-width: 0.3;
  fill: none;
}

.cart-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 25px var(--primary);
  offset-path: path("M150,100 L250,500 L650,500 L750,150 L250,150"); /* Perfectly matches the basket outline */
  animation: moveOnCart 10s linear infinite;
}

@keyframes moveOnCart {
  0% { offset-distance: 0%; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.cart-dot:nth-child(2) { animation-delay: 2s; }
.cart-dot:nth-child(3) { animation-delay: 4s; }

/* Funnel Animation Wrap */
.funnel-animation-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 92vw);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.funnel-svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  opacity: 0.08;
  stroke-width: 0.3;
  fill: none;
}

.lead-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  offset-path: path("M100,120 L700,120 L450,450 L450,550 L350,550 L350,450 L100,120"); /* Perfectly matches the funnel outline */
  animation: moveInFunnel 12s linear infinite;
}

@keyframes moveInFunnel {
  0% { offset-distance: 0%; opacity: 0; }
  5%, 95% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.lead-dot:nth-child(2) { animation-delay: 3s; }
.lead-dot:nth-child(3) { animation-delay: 6s; }
.lead-dot:nth-child(4) { animation-delay: 9s; }

/* Proof Animation Wrap */
.proof-animation-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 85vw);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.proof-svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  opacity: 0.08;
  stroke-width: 0.3;
  fill: none;
}

.proof-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 30px var(--primary), 0 0 10px #fff;
  offset-path: path("M200,50 L600,50 L600,550 L200,550 Z"); /* Simplified rectangular loop */
  animation: moveOnProof 12s linear infinite;
}

@keyframes moveOnProof {
  0% { offset-distance: 0%; opacity: 0; }
  5%, 95% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.proof-dot:nth-child(2) { animation-delay: 3.3s; }
.proof-dot:nth-child(3) { animation-delay: 6.6s; }

.cart-icon-path {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #444444;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 53, 255, 0.12);
  box-shadow: 0 18px 50px rgba(139, 53, 255, 0.08);
  animation: heroPop 0.85s ease both;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  animation: heroHeadline 1s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 0.12s;
}

.hero p {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  color: var(--text-muted);
  letter-spacing: -0.025em;
  animation: heroPop 0.9s ease both;
  animation-delay: 0.28s;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroPop 0.9s ease both;
  animation-delay: 0.42s;
}

/* --- Layout & Sections --- */
section {
  padding: 110px 0;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 21px;
  letter-spacing: -0.02em;
}

/* --- Cards --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 42px;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.card p {
  color: #66666b;
  font-size: 18px;
}

.card-label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 53, 255, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

/* --- Dark Sections --- */
.dark-section {
  background: var(--text);
  color: #ffffff;
}

.dark-section .section-header p {
  color: #b8b8bd;
}

.dark-card {
  background: #1d1d1f;
}

.dark-card p {
  color: #b8b8bd;
}

.dark-card h3 {
  color: #ffffff;
}

/* --- Proof & Metrics --- */
.proof-number {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 850;
  margin-bottom: 12px;
}

.proof-card {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Markets / Market Pills --- */
.markets {
  margin-top: 60px;
  text-align: center;
}

.markets-title {
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

.market-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  color: #222222;
  font-size: 18px;
  font-weight: 700;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}

.market-pill.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.market-pill:hover {
  box-shadow: 0 14px 34px rgba(139, 53, 255, 0.12);
  transform: translateY(-2px);
}

/* --- Offer Panel & Form --- */
.offer-panel {
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.offer-panel h2 {
  margin-bottom: 24px;
}

.checklist {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 16px;
  color: #333333;
  font-size: 18px;
}

.team-checklist {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
}

.checklist li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 12px;
}

.form-card {
  background: var(--white);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.09);
}

.form-card h3 {
  margin-bottom: 32px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Added spacing between fields */
}

input, select, textarea {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  background: var(--white);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  height: 120px;
  padding: 16px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 53, 255, 0.12);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* --- Footer --- */
.footer {
  position: relative;
  padding: 80px 0 40px;
  background:
    radial-gradient(circle at top right, rgba(139, 53, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 53, 255, 0.35);
  box-shadow: 0 14px 34px rgba(139, 53, 255, 0.12);
}

.copyright {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: #77777c;
  font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --container: 94%;
  }
  
  .offer-panel {
    padding: 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  
  h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.03em; }
  h2 { font-size: 32px; line-height: 1.2; }
  h3 { font-size: 20px; }
  
  .hero p { font-size: 18px; margin-top: 20px; }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 40px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Enforce Single Column */
  .grid, .grid.two, .grid.three, .grid.four {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .grid.grid-mobile-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .team-checklist {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .card {
    padding: 32px 24px;
    min-height: auto;
  }
  
  /* Navigation Fixes */
  .mobile-menu-toggle {
    display: flex;
    z-index: 110;
  }
  
  .nav-links.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    gap: 32px;
    transition: all 0.4s cubic-bezier(.2,.8,.2,1);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
  }
  
  .nav-links a:not(.nav-cta) {
    display: block !important;
    font-size: 28px;
    font-weight: 700;
  }
  
  .nav-cta {
    width: 240px;
    text-align: center;
    font-size: 18px;
    padding: 16px;
    margin-top: 20px;
  }
  
  /* Toggle Animation */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    transform: rotate(-45deg);
  }

  .brand img { height: 180px; margin: -70px 0; }
  
  /* Hero Animation Scaling */
  .orbit {
    width: 280px;
    height: 280px;
  }
  
  .funnel-animation-wrap, 
  .cart-animation-wrap, 
  .proof-animation-wrap {
    width: 100vw;
    height: 100vw;
    transform: translate(-50%, -40%) scale(0.65);
    opacity: 0.4;
  }
  
  /* Form Optimizations */
  .form-card { padding: 32px 20px; }
  
  /* Footer Re-alignment */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 40px;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-brand img {
    height: 140px;
    margin: -45px auto;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  
  .hero { padding-top: 100px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  .market-pill {
    font-size: 15px;
    padding: 10px 16px;
  }
}
