/* ============================================
   HOME - Apple-inspired light theme
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f6fc 0%, #ffffff 60%);
}

/* Minimalist tech circuit background */
.hero-bg-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(102, 67, 181, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ---- Text side ---- */
.hero-text {
  flex: 1;
  max-width: 440px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6643b5;
  background: rgba(102, 67, 181, 0.08);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: #6643b5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 980px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  background-color: #5536a0;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background-color: transparent;
  color: #6643b5;
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  border: 1px solid #6643b5;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-secondary:hover {
  background-color: rgba(102, 67, 181, 0.06);
  transform: translateY(-1px);
}

/* ---- Wave separator between text & visual ---- */
.hero-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-width: 40px;
  align-self: stretch;
  position: relative;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ---- Visual side ---- */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  position: relative;
}

/* Background image behind cards */
.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  box-shadow: 0 0 40px 3px rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  border: none;
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
  mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   LAYERED SERVICE CARDS
   ============================================ */
.hero-stack {
  position: relative;
  width: 580px;
  height: 660px;
  z-index: 1;
}

/* Connector lines SVG */
.stack-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Shared card base ---- */
.svc-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 67, 181, 0.12);
}

/* Small card variant */
.svc-card-sm {
  padding: 12px 16px;
  gap: 10px;
  border-radius: 12px;
}

/* ---- Icons ---- */
.svc-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-icon-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-icon-purple { background: rgba(102, 67, 181, 0.1); color: #6643b5; }
.svc-icon-violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.svc-icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.svc-icon-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.svc-icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.svc-icon-success { background: rgba(102, 67, 181, 0.1); color: #6643b5; }

/* ---- Text ---- */
.svc-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  display: block;
  line-height: 1.2;
}

.svc-name-sm {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.svc-desc {
  font-size: 12px;
  font-weight: 400;
  color: #86868b;
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

.svc-tag {
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
  display: block;
  margin-top: 1px;
}

.svc-tag-live { color: #22c55e; }

/* ---- Card text layout ---- */
.svc-ai,
.svc-web,
.svc-product,
.svc-idea {
  flex-direction: row;
}

.svc-ai .svc-icon ~ *,
.svc-web .svc-icon ~ *,
.svc-product .svc-icon ~ *,
.svc-idea .svc-icon ~ * {
  display: flex;
  flex-direction: column;
}

.svc-ai,
.svc-web,
.svc-product {
  flex-wrap: wrap;
}

.svc-ai .svc-desc,
.svc-web .svc-desc {
  flex-basis: 100%;
  padding-left: 54px;
}

/* ---- Card positions ---- */
.svc-idea {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border-color: rgba(102, 67, 181, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8f6fc 100%);
  display: none;
}

.svc-ai {
  top: 120px;
  left: -50px;
  z-index: 2;
  width: 230px;
}

.svc-web {
  top: 420px;
  right: 0;
  z-index: 2;
  max-width: 230px;
  animation: floatSlow 4s ease-in-out infinite 1s;
}

.svc-db {
  top: 290px;
  left: 30px;
  z-index: 2;
  animation: floatSlow 4s ease-in-out infinite 0.5s;
}

.svc-mobile {
  top: 315px;
  right: -50px;
  z-index: 1;
  animation: floatSlow 4s ease-in-out infinite 1.5s;
}

.svc-product {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border-color: rgba(102, 67, 181, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8f6fc 100%);
}

.svc-idea:hover,
.svc-product:hover {
  transform: translateX(-50%) translateY(-4px);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================
   SECTION SEPARATOR
   ============================================ */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  background-color: #ffffff;
}

.separator-line {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e8e8ed 20%, #e8e8ed 80%, transparent 100%);
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  width: 100%;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6643b5;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 60px;
}

/* ============================================
   SECTION 1 - Who Is It For?
   ============================================ */
.audience {
  background-color: #ffffff;
  position: relative;
}

.audience-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.audience-illustration {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.handshake-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  transform: rotate(20deg);
}

.audience-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.audience-card {
  padding: 32px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e8e8ed;
  box-shadow: 0 4px 24px rgba(102, 67, 181, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Colored top accent line */
.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  transition: opacity 0.3s ease;
}

.audience-card:nth-child(1)::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.audience-card:nth-child(2)::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.audience-card:nth-child(3)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.audience-card:nth-child(4)::before { background: linear-gradient(90deg, #6643b5, #8b5cf6); }

.audience-card:nth-child(2),
.audience-card:nth-child(3) {
  padding: 24px 20px;
  transform: scale(0.85);
  transform-origin: center;
}

.audience-card:hover {
  border-color: rgba(102, 67, 181, 0.2);
  box-shadow: 0 12px 40px rgba(102, 67, 181, 0.12);
  transform: translateY(-6px);
}

.audience-card:nth-child(1):hover,
.audience-card:nth-child(4):hover {
  transform: translateY(-6px);
}

/* Large icons with colored circles */
.audience-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
}

.audience-card:nth-child(1) .audience-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(251, 146, 60, 0.08) 100%);
  color: #f97316;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
}

.audience-card:nth-child(2) .audience-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(74, 222, 128, 0.08) 100%);
  color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.12);
}

.audience-card:nth-child(3) .audience-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(96, 165, 250, 0.08) 100%);
  color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.audience-card:nth-child(4) .audience-icon {
  background: linear-gradient(135deg, rgba(102, 67, 181, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: #6643b5;
  box-shadow: 0 4px 16px rgba(102, 67, 181, 0.12);
}

.audience-icon svg {
  width: 26px;
  height: 26px;
}

.audience-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #6e6e73;
}

/* ============================================
   SECTION 2 - How It Works
   ============================================ */
.how-it-works {
  background-color: #f5f5f7;
  position: relative;
  overflow: hidden;
}

.hiw-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(102, 67, 181, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hiw-step {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e8e8ed;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

.hiw-step:hover {
  border-color: #6643b5;
  box-shadow: 0 8px 30px rgba(102, 67, 181, 0.1);
  transform: translateY(-4px);
}

.hiw-step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6643b5;
  background: rgba(102, 67, 181, 0.08);
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 20px;
}

.hiw-circle {
  width: 56px;
  height: 56px;
  min-height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(102, 67, 181, 0.15);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6643b5;
  box-shadow: 0 4px 16px rgba(102, 67, 181, 0.08);
  margin-bottom: 20px;
}

.hiw-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.hiw-step p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #6e6e73;
}

/* Dashed connector between steps */
.hiw-connector {
  display: flex;
  align-items: center;
  width: 60px;
  min-width: 40px;
  padding-top: 80px;
}

/* ============================================
   HOW IT WORKS - CTA
   ============================================ */
.hiw-cta {
  text-align: center;
  margin-top: 64px;
  padding: 48px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e8e8ed;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
}

.hiw-cta h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.hiw-cta p {
  font-size: 15px;
  font-weight: 400;
  color: #6e6e73;
  margin-bottom: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media screen and (max-width: 1024px) {
  .hero-container {
    gap: 40px;
    padding: 40px 32px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .hero-image-wrapper {
    border-radius: 20px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-bg-image {
    height: 360px;
  }

  .hero-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  /* Icon-only cards on tablet */
  .svc-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 10px;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
  }

  .svc-card .svc-name,
  .svc-card .svc-name-sm,
  .svc-card .svc-desc,
  .svc-card .svc-tag {
    display: none;
  }

  .svc-ai { top: 28px; left: 24px; right: auto; bottom: auto; animation: none; }
  .svc-web { top: 28px; right: 24px; left: auto; bottom: auto; animation: none; }
  .svc-db { top: 50%; left: 24px; right: auto; bottom: auto; transform: translateY(-50%); animation: none; }
  .svc-mobile { top: 50%; right: 24px; left: auto; bottom: auto; transform: translateY(-50%); animation: none; }
  .svc-product { bottom: 24px; left: 50%; top: auto; right: auto; transform: translateX(-50%); }

  .hero-wave { display: none; }

  .section-container {
    padding: 80px 32px;
  }

  .audience-content {
    gap: 40px;
  }

  .handshake-img {
    max-width: 380px;
  }

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

  .audience-card {
    padding: 28px 20px;
  }

  .audience-card:nth-child(2),
  .audience-card:nth-child(3) {
    padding: 28px 20px;
    transform: none;
  }

  .hiw-connector {
    width: 40px;
    min-width: 30px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .hero {
    padding-top: 64px;
    min-height: auto;
  }

  .hero-bg-grid {
    background-size: 24px 24px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
    letter-spacing: -0.02em;
  }

  .hero-badge,
  .hero-subtitle,
  .hero-actions {
    display: none;
  }

  /* Hide wave on mobile */
  .hero-wave { display: none; }
  .stack-lines { display: none; }
  .hero-bg-circuit { display: none; }

  /* Hero visual: image with icons overlay */
  .hero-visual {
    max-width: 340px;
    width: 100%;
    position: relative;
  }

  .hero-image-wrapper {
    display: block;
    position: relative;
    inset: auto;
    border-radius: 18px;
    box-shadow: 0 0 24px 2px rgba(0, 0, 0, 0.15);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-bg-image {
    height: 280px;
    border-radius: 18px;
  }

  /* Stack overlays on top of image */
  .hero-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  /* Cards become icon-only circles over the image */
  .svc-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 10px;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: none;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
  }

  /* Hide ALL text inside cards on mobile */
  .svc-card .svc-name,
  .svc-card .svc-name-sm,
  .svc-card .svc-desc,
  .svc-card .svc-tag {
    display: none;
  }

  .svc-idea { display: none; }

  /* Position icons referencing desktop layout:
     Desktop: AI=top-left, DB=mid-left, Web=bottom-right, Mobile=mid-right, Product=bottom-center
     Mobile image: 340x280 area */

  /* AI — top left (desktop: top:120, left:-50 → upper-left) */
  .svc-ai {
    top: 20px;
    left: 16px;
    right: auto;
    bottom: auto;
  }

  /* Web — top right (desktop: top:420, right:0 → shifted to upper-right on mobile) */
  .svc-web {
    top: 20px;
    right: 16px;
    left: auto;
    bottom: auto;
  }

  /* DB — middle left (desktop: top:290, left:30) */
  .svc-db {
    top: 50%;
    left: 16px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Mobile — middle right (desktop: top:315, right:-50) */
  .svc-mobile {
    top: 50%;
    right: 16px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Product — bottom center (desktop: bottom:-30, left:50%) */
  .svc-product {
    bottom: 16px;
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    border-color: rgba(102, 67, 181, 0.2);
  }

  .svc-card:hover {
    transform: translateY(-2px);
  }

  .svc-db:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .svc-mobile:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .svc-product:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .section-container {
    padding: 64px 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .audience-content {
    flex-direction: column;
    gap: 32px;
  }

  .audience-illustration {
    max-width: 100%;
  }

  .handshake-img {
    transform: rotate(20deg);
    max-width: 300px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .audience-card {
    padding: 28px 22px;
  }

  .audience-card:nth-child(2),
  .audience-card:nth-child(3) {
    padding: 28px 22px;
    transform: none;
  }

  .audience-icon {
    width: 52px;
    height: 52px;
  }

  .audience-icon svg {
    width: 24px;
    height: 24px;
  }

  .hiw-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hiw-step {
    max-width: 100%;
    width: 100%;
  }

  .hiw-connector {
    display: none;
  }

  .hiw-cta {
    padding: 32px 24px;
    margin-top: 48px;
  }

  .hiw-dot-pattern {
    background-size: 20px 20px;
  }
}
