/* ==========================================================================
   home.css — Home Page Specific Styles
   The split hero, showcase panels, process steps, stats section,
   about rows, features, integrations, social proof, how-it-works,
   and home-only responsive overrides.
   ========================================================================== */

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  max-width: 1260px; margin: 0 auto;
  padding: 9rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 92vh;
}

.hero-content { position: relative; z-index: 2; margin-top: -10px; }

.hero-label {
  display: inline-flex;
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  color: var(--gray-500); margin-bottom: 1.2rem;
  margin-left: calc(-1.2rem + 2px);
  letter-spacing: .2px; line-height: 1.5;
  padding: .4rem 1.2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  animation: fadeSlideUp .7s var(--ease-out-expo) both;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -1.8px;
  margin-bottom: 1.3rem; animation: fadeSlideUp .7s var(--ease-out-expo) .1s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
  font-size: 1.12rem; color: var(--gray-500); max-width: 460px;
  margin-bottom: 2.2rem; line-height: 1.8;
  animation: fadeSlideUp .7s var(--ease-out-expo) .2s both;
}

.hero-buttons {
  display: flex; gap: .8rem; margin-bottom: 2.2rem; flex-wrap: wrap;
  animation: fadeSlideUp .7s var(--ease-out-expo) .3s both;
}

.hero-meta {
  display: flex; gap: 1.8rem; flex-wrap: wrap;
  animation: fadeSlideUp .7s var(--ease-out-expo) .4s both;
}
.hero-meta-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--gray-400);
  font-family: var(--font-head); font-weight: 500;
}
.hero-meta-item .check { color: #16a34a; font-weight: 700; font-size: .9rem; }

/* ===== RIGHT COLUMN: Showcase + Process Steps ===== */
.hero-right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  margin-top: 1.5rem;
  animation: fadeSlideUp .8s var(--ease-out-expo) .3s both;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  position: relative;
  display: flex; align-items: center;
  margin-bottom: 2rem;
  z-index: 5;
  padding: 0 .5rem;
}
.process-step {
  display: flex; align-items: center; gap: .6rem;
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease-out-expo);
  position: relative;
  flex-shrink: 0;
}

/* Number circle with SVG ring progress */
.process-step-num-wrap {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.process-step-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .7rem; font-weight: 800;
  border-radius: 50%;
  transition: all .35s var(--ease-out-expo);
  z-index: 1;
}
.process-step-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 42px; height: 42px;
  z-index: 2;
}
.process-step-ring circle { fill: none; stroke-width: 2.5; }
.process-step-ring .ring-bg { stroke: transparent; }
.process-step-ring .ring-fill {
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  stroke-linecap: round;
  opacity: 0;
}

/* Step colors */
.process-step:nth-child(1) .process-step-num { background: #E8F4FD; color: var(--secondary); }
.process-step:nth-child(3) .process-step-num { background: #FFF0EC; color: var(--orange); }
.process-step:nth-child(5) .process-step-num { background: #FFF7D6; color: #B8960A; }
.process-step:nth-child(1) .ring-fill { stroke: var(--secondary); }
.process-step:nth-child(3) .ring-fill { stroke: var(--orange); }
.process-step:nth-child(5) .ring-fill { stroke: var(--accent); }

/* Active & visited states */
.process-step.active:nth-child(1) .process-step-num,
.process-step.visited:nth-child(1) .process-step-num { background: var(--secondary); color: var(--white); }
.process-step.active:nth-child(3) .process-step-num,
.process-step.visited:nth-child(3) .process-step-num { background: var(--orange); color: var(--white); }
.process-step.active:nth-child(5) .process-step-num,
.process-step.visited:nth-child(5) .process-step-num { background: var(--accent); color: var(--gray-900); }

.process-step-label {
  font-family: var(--font-head); font-size: .78rem;
  font-weight: 700; color: var(--gray-400);
  transition: color .3s; white-space: nowrap;
}
.process-step.active .process-step-label,
.process-step.visited .process-step-label { color: var(--gray-900); }

/* Connecting lines */
.process-line {
  flex: 1; height: 2px;
  background: var(--gray-200);
  position: relative;
  min-width: 20px; margin: 0 .15rem;
  overflow: visible;
}
.process-line-fill {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0; border-radius: 1px;
  transition: width .6s var(--ease-out-expo), opacity .4s ease;
  opacity: 1;
}
.process-line:nth-child(2) .process-line-fill { background: linear-gradient(90deg, var(--secondary), var(--orange)); }
.process-line:nth-child(4) .process-line-fill { background: linear-gradient(90deg, var(--orange), var(--accent)); }
.process-line.filled .process-line-fill { width: 100%; }

/* ===== SHOWCASE CONTAINER ===== */
.showcase {
  position: relative;
  width: 100%;
  min-height: 420px;
  margin-bottom: 4rem;
  perspective: 1200px;
  transform: rotateY(-2deg) rotateX(1.5deg);
  transition: transform .6s var(--ease-out-expo);
}
.showcase:hover { transform: rotateY(-0.5deg) rotateX(0.5deg); }

.showcase-body {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow:
    0 4px 6px rgba(17, 66, 174, .03),
    0 12px 40px rgba(17, 66, 174, .06),
    0 40px 80px rgba(17, 66, 174, .08);
  overflow: hidden;
}

.showcase-content { position: relative; min-height: 420px; padding: 1.5rem; }

.phase-panel {
  position: absolute; inset: 0; padding: 1.5rem; padding-bottom: 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo);
  transform: translateX(30px);
}
.phase-panel.active { opacity: 1; pointer-events: auto; transform: translateX(0); }

/* ===== PHASE 1: Lead Capture ===== */
.lead-inbox { display: flex; flex-direction: column; gap: .575rem; }
.lead-inbox-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.lead-inbox-title {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: .5rem;
}
.lead-inbox-badge {
  background: var(--secondary); color: var(--white);
  font-size: .6rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-pill);
}
.lead-inbox-filter { font-size: .72rem; color: var(--gray-400); font-weight: 600; font-family: var(--font-head); }

.lead-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: .85rem 1rem; display: flex; align-items: flex-start; gap: .8rem;
  transition: all .3s var(--ease-out-expo); cursor: default;
  opacity: 0; transform: translateY(12px);
}
.lead-card.animate-in { animation: cardSlideIn .5s var(--ease-out-expo) forwards; }
.lead-card:nth-child(2) { animation-delay: .15s; }
.lead-card:nth-child(3) { animation-delay: .3s; }
.lead-card:nth-child(4) { animation-delay: .45s; }
.lead-card:nth-child(5) { animation-delay: .6s; }
@keyframes cardSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.lead-card:hover { border-color: var(--secondary); box-shadow: 0 4px 12px rgba(26, 155, 252, .08), 0 1px 3px rgba(0, 0, 0, .03); }
.lead-card--new { border-left: 3px solid var(--secondary); }
.lead-card--processing { border-left: 3px solid var(--orange); }
.lead-card--done { border-left: 3px solid #2ACB42; }

.lead-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.lead-info { flex: 1; min-width: 0; }
.lead-name { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--gray-900); margin-bottom: .15rem; }
.lead-company { font-size: .72rem; color: var(--gray-400); font-weight: 500; margin-bottom: .3rem; }
.lead-meta { display: flex; gap: .6rem; align-items: center; }
.lead-tag { font-size: .6rem; font-weight: 600; padding: .12rem .45rem; border-radius: var(--radius-pill); font-family: var(--font-head); }
.lead-tag--email { background: #EEF4FF; color: var(--primary); }
.lead-tag--form { background: #FFF0EC; color: var(--orange); }
.lead-tag--web { background: #DCFCE7; color: #16A34A; }
.lead-time { font-size: .62rem; color: var(--gray-400); }

.lead-card-status {
  display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
  font-size: .62rem; font-weight: 600; font-family: var(--font-head);
  padding: .2rem .5rem; border-radius: var(--radius-pill);
}
.status--new { background: #E8F4FD; color: var(--secondary); }
.status--processing { background: #FFF7ED; color: var(--orange); }
.status--done { background: #DCFCE7; color: #16A34A; }
.lead-pulse { width: 6px; height: 6px; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.lead-pulse--blue { background: var(--secondary); }
.lead-pulse--orange { background: var(--orange); }
.lead-pulse--green { background: #2ACB42; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

/* ===== PHASE 2: Calculation ===== */
.calc-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; overflow: visible; }
.calc-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.calc-panel-header {
  padding: .7rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: var(--gray-700);
  display: flex; align-items: center; gap: .4rem;
}
.calc-panel-body { padding: .8rem 1rem; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .75rem; opacity: 0;
}
.calc-row.animate-in { animation: calcRowIn .4s var(--ease-out-expo) forwards; }
.calc-row:nth-child(1) { animation-delay: .1s; }
.calc-row:nth-child(2) { animation-delay: .25s; }
.calc-row:nth-child(3) { animation-delay: .4s; }
.calc-row:nth-child(4) { animation-delay: .55s; }
.calc-row:nth-child(5) { animation-delay: .7s; }
@keyframes calcRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.calc-item-name { color: var(--gray-700); font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.calc-item-qty { background: var(--gray-100); padding: .15rem .5rem; border-radius: 4px; font-size: .65rem; font-weight: 600; color: var(--gray-500); }
.calc-item-price { font-weight: 700; color: var(--gray-900); font-family: var(--font-head); font-size: .78rem; }
.calc-total {
  display: flex; justify-content: space-between; padding: .7rem 0 .3rem; margin-top: .3rem;
  border-top: 2px solid var(--gray-200); font-family: var(--font-head); font-weight: 800; font-size: .9rem;
}
.calc-total-label { color: var(--gray-700); }
.calc-total-value { color: var(--primary); }

.preview-doc { padding: .8rem; }
.preview-doc-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-100);
}
.preview-doc-logo {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
}
.preview-doc-title { font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--gray-700); }
.preview-doc-number { font-size: .6rem; color: var(--gray-400); }
.preview-line { height: 6px; border-radius: 3px; background: var(--gray-100); margin-bottom: .4rem; opacity: 0; }
.preview-line.animate-in { animation: lineGrow .6s var(--ease-out-expo) forwards; }
@keyframes lineGrow { from { opacity: 0; width: 0; } to { opacity: 1; width: var(--w, 80%); } }
.preview-table { margin-top: .6rem; }
.preview-table-row { display: flex; gap: .3rem; margin-bottom: .25rem; }
.preview-table-cell { height: 5px; border-radius: 2px; background: var(--gray-100); flex: 1; }
.preview-table-cell--header { background: var(--gray-200); height: 6px; }

/* Offer preview mockup (split layout like real Quoteq offers) */
.offer-mockup {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  overflow: visible;
  display: flex;
  min-width: 140%;
}
.offer-sidebar {
  width: 130px; min-width: 130px;
  background: linear-gradient(160deg, var(--dark), #0e2460);
  padding: 1rem .9rem; display: flex; flex-direction: column; justify-content: space-between;
  color: rgba(255, 255, 255, .9);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.offer-sidebar-logo { width: 28px; height: 28px; margin-bottom: 1.2rem; opacity: .9; }
.offer-sidebar-title {
  font-family: var(--font-head); font-size: .72rem; font-weight: 800;
  color: var(--white); line-height: 1.25; margin-bottom: .4rem;
}
.offer-sidebar-sub { font-size: .52rem; color: rgba(255, 255, 255, .45); line-height: 1.5; }
.offer-sidebar-footer { font-size: .48rem; color: rgba(255, 255, 255, .25); margin-top: auto; }
.offer-main {
  flex: 1; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem;
  background: var(--gray-50);
  min-width: 300px;
}
.offer-main-title {
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: .15rem;
}
.offer-main-text { font-size: .55rem; color: var(--gray-500); line-height: 1.5; margin-bottom: .3rem; }
.offer-products {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 6px; padding: .4rem .5rem;
}
.offer-product-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .2rem 0; font-size: .55rem;
  border-bottom: 1px solid var(--gray-100);
}
.offer-product-row:last-child { border: none; }
.offer-product-name { color: var(--gray-700); font-weight: 500; }
.offer-product-price { color: var(--gray-900); font-weight: 700; font-family: var(--font-head); font-size: .58rem; }
.offer-product-total {
  display: flex; justify-content: space-between;
  padding: .3rem 0 .1rem; margin-top: .15rem;
  border-top: 1.5px solid var(--gray-200);
  font-family: var(--font-head); font-weight: 800; font-size: .65rem;
}
.offer-product-total-val { color: var(--primary); }
.offer-cta-btn {
  align-self: flex-start;
  padding: .2rem .6rem; border-radius: 5px;
  background: #11b875; color: var(--white);
  font-family: var(--font-head); font-size: .55rem; font-weight: 700;
  border: none;
}

/* ===== PHASE 3: Delivery ===== */
.delivery-layout { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.delivery-email {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.delivery-email-header {
  padding: .7rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: .3rem;
}
.delivery-email-field { display: flex; align-items: center; gap: .5rem; font-size: .72rem; }
.delivery-email-label { font-weight: 700; color: var(--gray-400); font-family: var(--font-head); width: 35px; flex-shrink: 0; }
.delivery-email-value { color: var(--gray-700); font-weight: 500; }
.delivery-email-body { padding: 1rem; }
.delivery-email-greeting { font-size: .78rem; color: var(--gray-700); margin-bottom: 1rem; line-height: 1.6; }

.delivery-attachment {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem;
  background: linear-gradient(135deg, rgba(17, 66, 174, .03), rgba(26, 155, 252, .03));
  border: 1px solid rgba(17, 66, 174, .1); border-radius: var(--radius-sm);
  opacity: 0;
}
.delivery-attachment.animate-in { animation: attachSlide .5s var(--ease-out-expo) forwards; }
@keyframes attachSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.delivery-attachment-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.delivery-attachment-info { flex: 1; }
.delivery-attachment-name { font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: var(--gray-900); }
.delivery-attachment-size { font-size: .62rem; color: var(--gray-400); }

.delivery-send-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: .75rem; font-weight: 700; cursor: pointer; opacity: 0;
}
.delivery-send-btn.animate-in { animation: btnAppear .4s var(--ease-spring) .7s forwards; }
@keyframes btnAppear { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.delivery-status-bar {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
}
.delivery-status-item {
  display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 600;
  font-family: var(--font-head); opacity: 0;
}
.delivery-status-item.animate-in { animation: statusPop .4s var(--ease-spring) forwards; }
.delivery-status-item:nth-child(1) { animation-delay: .9s; }
.delivery-status-item:nth-child(2) { animation-delay: 1.2s; }
.delivery-status-item:nth-child(3) { animation-delay: 1.5s; }
@keyframes statusPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.status-check { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-check--done { background: #DCFCE7; color: #16A34A; }
.status-check--pending { background: var(--gray-100); color: var(--gray-400); }
.delivery-status-label { color: var(--gray-500); }
.delivery-status-label--done { color: #16A34A; }

.delivery-notif {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: .55rem .8rem; display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08); opacity: 0; z-index: 5;
}
.delivery-notif.animate-in { animation: notifSlide .5s var(--ease-spring) 1.8s forwards; }
@keyframes notifSlide { from { opacity: 0; transform: translateX(20px) scale(.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.delivery-notif-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #FFD84D);
  display: flex; align-items: center; justify-content: center;
}
.delivery-notif-text { font-family: var(--font-head); font-size: .68rem; font-weight: 700; color: var(--gray-700); }
.delivery-notif-sub { font-size: .58rem; color: var(--gray-400); font-weight: 500; }

/* Delivery timeline */
.delivery-timeline {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: .7rem .8rem;
}
.delivery-timeline-header {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .4rem;
}
.timeline-step {
  display: flex; align-items: flex-start; gap: .5rem;
  padding-bottom: .5rem; position: relative;
  opacity: 0;
}
.timeline-step.animate-in { animation: cardSlideIn .4s var(--ease-out-expo) forwards; }
.timeline-step:nth-child(3) { animation-delay: .15s; }
.timeline-step:nth-child(4) { animation-delay: .30s; }
.timeline-step:nth-child(5) { animation-delay: .45s; }
.timeline-step:nth-child(6) { animation-delay: .60s; }
.timeline-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 8px; top: 18px; bottom: 0;
  width: 1.5px; background: var(--gray-200);
}
.timeline-step.done::after { background: #16A34A; }
.timeline-dot {
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.timeline-dot--done { background: #DCFCE7; color: #16A34A; }
.timeline-dot--active { background: #E8F4FD; color: var(--secondary); animation: pulse 2s ease-in-out infinite; }
.timeline-info { flex: 1; }
.timeline-label { font-family: var(--font-head); font-size: .65rem; font-weight: 700; color: var(--gray-700); }
.timeline-time { font-size: .55rem; color: var(--gray-400); }

/* Customer view panel */
.customer-view {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.customer-view-header {
  padding: .55rem .8rem; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  color: var(--gray-700); display: flex; align-items: center; gap: .35rem;
}
.customer-view-body { padding: .7rem .8rem; }
.customer-view-text { font-size: .65rem; color: var(--gray-500); line-height: 1.5; margin-bottom: .5rem; }
.customer-view-items { display: flex; flex-direction: column; gap: .4rem; }

/* ===== FLOATING OVERLAYS ===== */
.phase-overlay {
  position: absolute; bottom: 0; left: 50%; z-index: 6;
  transform: translateX(-50%) translateY(70%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  box-shadow: 0 8px 32px rgba(17, 66, 174, .12);
  opacity: 0; pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.phase-overlay.animate-in {
  animation: overlayIn .5s var(--ease-spring) .5s forwards;
}
@keyframes overlayIn {
  from { opacity: 0; transform: translateX(-50%) translateY(calc(70% + 12px)) scale(.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(70%) scale(1); }
}
/* Floating label on top edge */
.phase-overlay-heading {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head); font-size: .7rem;
  font-weight: 700; white-space: nowrap;
  padding: .25rem .9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(17, 66, 174, .15);
}
.phase-overlay-pills { display: flex; gap: .5rem; justify-content: center; }
.phase-overlay-pill {
  font-size: .88rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 8px;
  font-family: var(--font-head); white-space: nowrap;
  display: flex; align-items: center; gap: .3rem;
  background: linear-gradient(135deg, rgba(17, 66, 174, .07), rgba(26, 155, 252, .07));
  color: var(--primary);
}
.pill--blue { background: #E8F4FD; color: var(--secondary); }
.pill--orange { background: #FFF0EC; color: var(--orange); }
.pill--green { background: #DCFCE7; color: #16A34A; }
.pill--yellow { background: #FFF7D6; color: #B8960A; }
.pill--gray { background: var(--gray-100); color: var(--gray-500); }
.pill-icon { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; }

.phase-overlay-flow {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
}
.phase-overlay-flow-step {
  padding: .35rem .8rem; border-radius: 8px;
  background: var(--gray-100); color: var(--gray-700);
  display: flex; align-items: center; gap: .3rem;
}
.phase-overlay-flow-arrow { color: var(--gray-300); font-size: .8rem; }
.phase-overlay-flow-step--primary {
  background: linear-gradient(135deg, rgba(17, 66, 174, .08), rgba(26, 155, 252, .08));
  color: var(--primary);
}
.phase-overlay-flow-step--side {
  background: var(--gray-50); color: var(--gray-400);
  font-size: .62rem; border: 1px dashed var(--gray-200);
}

.phase-overlay-checks { display: flex; flex-direction: column; gap: .4rem; }
.phase-overlay-check {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  color: var(--gray-700);
}
.phase-overlay-check .oc-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.oc-icon--blue { background: #E8F4FD; color: var(--secondary); }
.oc-icon--yellow { background: #FFF7D6; color: #B8960A; }
.oc-icon--green { background: #DCFCE7; color: #16A34A; }

/* ===== STATS ===== */
.stats {
  position: relative; z-index: 2;
  max-width: 1260px; margin: -1rem auto 0;
  padding: 0 2rem 3rem;
}
.stats-separator {
  width: 100%; height: 2px;
  background: var(--gray-200);
  border-radius: 1px;
  opacity: .6; mix-blend-mode: multiply;
  margin-bottom: 4rem;
}
.stats-layout {
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.stats-left { position: relative; }
.stats-viewport {
  position: relative;
  min-height: 90px;
  overflow: visible;
}
.stat-slide {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 0 1rem;
  pointer-events: none;
  align-items: baseline;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}
.stat-slide.active { opacity: 1; transform: translateY(0); }
.stat-slide.exit-up { opacity: 0; transform: translateY(-24px); }
.stat-big {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-text {
  font-size: 1.4rem; color: var(--gray-700);
  line-height: 1.3; font-weight: 500;
}
.stat-text b { color: var(--gray-900); }
.stat-source {
  grid-column: 2;
  font-size: .72rem; color: var(--gray-400);
  font-family: var(--font-head); font-weight: 500;
  font-style: italic; margin-top: .4rem;
}
/* Stats nav dots */
.stats-dots {
  display: flex; gap: .4rem; margin-top: .8rem;
  position: relative; z-index: 2;
}
.stats-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-200); border: none;
  cursor: pointer; transition: all .25s; padding: 0;
}
.stats-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
/* Stats icon */
.stats-icon {
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== ABOUT ROWS ===== */
.about-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  margin-bottom: 4rem;
}
.about-row--reverse { direction: rtl; }
.about-row--reverse > * { direction: ltr; }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-placeholder {
  width: 100%; max-width: 400px; height: 260px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #EEF4FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center;
}
.about-text h4 {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  color: var(--secondary); margin-bottom: .5rem;
}
.about-text h3 {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800; letter-spacing: -.5px; margin-bottom: 1rem;
}
.about-text p {
  font-size: 1rem; color: var(--gray-500); line-height: 1.75;
}

/* ===== FEATURES SECTION (8 items) ===== */
.features-section { background: linear-gradient(180deg, var(--bg), #EDF2FF, var(--bg)); }
.func-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.func-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all .3s var(--ease-out-expo);
}
.func-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .02);
  border-color: transparent;
}
.func-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #EEF4FF; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.func-item h4 {
  font-family: var(--font-head); font-size: .95rem;
  font-weight: 700; margin-bottom: .4rem; letter-spacing: -.2px;
}
.func-item p {
  font-size: .82rem; color: var(--gray-500); line-height: 1.6;
}

/* ===== INTEGRATIONS LOGOS ===== */
.integrations-header { margin-bottom: 2rem; }
.integrations-header .overline {
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--secondary); margin-bottom: .8rem;
}
.integrations-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800; letter-spacing: -1px; color: var(--gray-900);
}
/* integrations-logos moved to app.css */

/* ===== SOCIAL PROOF ===== */
.social-proof { text-align: center; padding: 2rem 0; }
.sp-quote {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600; color: var(--gray-700);
  line-height: 1.5; max-width: 640px; margin: 0 auto 1.5rem;
  font-style: italic;
}
.sp-author {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  font-size: .88rem; color: var(--gray-500);
}
.sp-author strong { color: var(--gray-900); font-weight: 700; }
.sp-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--white);
}

/* ===== FEATURES GRID (3-col cards) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.f-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 0;
  transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo), border-color .35s;
  position: relative; overflow: hidden;
}
.f-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04), 0 24px 64px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .02);
  border-color: transparent;
}
/* Visual area with mini illustration */
.f-card-visual {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.f-card:nth-child(1) .f-card-visual { background: linear-gradient(135deg, #EEF4FF, #DBEAFE); }
.f-card:nth-child(2) .f-card-visual { background: linear-gradient(135deg, #FFF7D6, #FEF3C7); }
.f-card:nth-child(3) .f-card-visual { background: linear-gradient(135deg, #FFF0EC, #FFEDD5); }
.f-illust { position: relative; width: 160px; height: 140px; transition: transform .35s var(--ease-out-expo); }
.f-illust-shape { position: absolute; border-radius: 10px; }
.f-card:hover .f-illust { transform: scale(1.06); }
/* Card 1: person + doc + chat */
.fi-person { position: absolute; top: 5px; left: 5px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, .05); display: flex; align-items: center; justify-content: center; }
.fi-doc { width: 80px; height: 100px; background: var(--white); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); top: 5px; left: 55px; border-radius: 8px; display: flex; flex-direction: column; padding: 10px; gap: 5px; }
.fi-doc .line { height: 4px; border-radius: 2px; background: var(--gray-200); }
.fi-doc .line:nth-child(1) { width: 50%; background: var(--primary); opacity: .6; }
.fi-doc .line:nth-child(2) { width: 80%; }
.fi-doc .line:nth-child(3) { width: 65%; }
.fi-doc .line:nth-child(4) { width: 90%; background: var(--secondary); opacity: .3; }
.fi-doc .line:nth-child(5) { width: 45%; }
.fi-badge { position: absolute; top: 0; right: 7px; background: var(--primary); color: var(--white); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; box-shadow: 0 2px 6px rgba(17, 66, 174, .25); }
.fi-chat { position: absolute; bottom: 2px; left: 75px; width: 60px; background: var(--white); box-shadow: 0 4px 12px rgba(0, 0, 0, .05); border-radius: 8px 8px 2px 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.fi-chat .ln { height: 3px; border-radius: 2px; background: var(--gray-200); }
.fi-chat .ln:first-child { width: 80%; background: var(--secondary); opacity: .4; }
/* Card 2: calc diagram nodes */
.fi-node { position: absolute; width: 40px; height: 24px; border-radius: 6px; background: var(--white); box-shadow: 0 3px 10px rgba(0, 0, 0, .05); display: flex; align-items: center; justify-content: center; font-size: .45rem; font-family: var(--font-head); font-weight: 700; color: var(--gray-500); }
.fi-node--result { width: 65px; height: 32px; border-radius: 8px; background: var(--white); box-shadow: 0 4px 16px rgba(0, 0, 0, .06); font-size: .55rem; color: var(--primary); border: 1.5px solid rgba(17, 66, 174, .15); }
.fi-flow-line { position: absolute; height: 1.5px; background: var(--gray-300); transform-origin: left; }
.fi-plus { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: var(--gray-900); box-shadow: 0 2px 6px rgba(254, 200, 14, .3); }
/* Card 3: integration hub */
.fi-hub { width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 16px rgba(0, 0, 0, .06); position: absolute; top: 44px; left: 55px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.fi-spoke { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); display: flex; align-items: center; justify-content: center; font-size: .55rem; }
.fi-connector { position: absolute; height: 1.5px; background: var(--gray-300); transform-origin: left; z-index: 1; }

.f-card-body { padding: 1.5rem 1.8rem 1.8rem; }
.f-card-body h3 {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 800; letter-spacing: -.3px; margin-bottom: .6rem;
}
.f-card-body p { font-size: .9rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }
.f-link {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.f-link svg { transition: transform .2s; }
.f-link:hover svg { transform: translateX(4px); }

/* ===== HOW IT WORKS (3-step visual) ===== */
.how-it-works { background: linear-gradient(180deg, var(--bg), #EDF2FF, var(--bg)); }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: hiw; }
.hiw-step { text-align: center; position: relative; }
.hiw-step::before {
  counter-increment: hiw; content: counter(hiw);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto 1.2rem;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(17, 66, 174, .15);
}
.hiw-step h3 {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; margin-bottom: .5rem;
}
.hiw-step p { font-size: .88rem; color: var(--gray-500); line-height: 1.7; max-width: 280px; margin: 0 auto; }
/* Connecting line between steps */
.hiw-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 24px; left: calc(50% + 34px);
  width: calc(100% - 68px); height: 2px;
  background: linear-gradient(90deg, var(--secondary), rgba(26, 155, 252, .2));
}

/* ===== RESPONSIVE — HOME ONLY ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 7.5rem; min-height: auto; gap: 2.5rem; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-right { width: min(600px, 100%); margin: 0 auto; margin-top: 0; text-align: left; }
  .showcase-body { border-radius: var(--radius); }
  .showcase { transform: none; }
  .showcase:hover { transform: none; }
  .process-steps { justify-content: center; }
  .feature-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .feature-grid .f-card { width: calc(50% - .75rem); }
  .about-row, .about-row--reverse { grid-template-columns: 1fr; gap: 2rem; }
  .about-row--reverse { direction: ltr; }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { margin-top: 0; }
  .hero-label { white-space: nowrap; margin-left: 0; }
  .hero-meta { gap: .6rem 1rem; justify-content: center; }
  .phase-overlay { min-width: auto; white-space: normal; padding: .8rem 1.2rem; }
}

@media (max-width: 900px) {
  .hero { padding: 6.5rem 1.2rem 2rem; gap: 2rem; overflow: clip; }
  .hero h1 { letter-spacing: -1.2px; }
  .showcase-content { min-height: 420px; }
  .process-step-label { font-size: .68rem; }
  .feature-grid .f-card { width: calc(50% - .75rem) !important; }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: .6rem .8rem; }
  .hero-meta-item { font-size: .72rem; }
}

@media (max-width: 600px) {
  .feature-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 1.2rem; }
  .feature-grid .f-card { width: 100% !important; }
  .f-card-visual { height: 170px; }
  .f-card-body { padding: 1.2rem 1.4rem 1.4rem; }
  .process-step { flex-direction: column; gap: .15rem; }
  .process-step-label { font-size: .85rem; text-align: center; }
  .stats-layout { grid-template-columns: 1fr; }
  .stats-icon { display: none; }
  .stats-viewport { height: auto; overflow: visible; }
  .stat-slide { position: relative; transform: none !important; }
  .stat-slide.active { opacity: 1; }
  .stat-slide:not(.active) { display: none; }
  .stat-slide { display: flex; flex-wrap: wrap; gap: .5rem; }
  .stat-big { width: 100%; }
  .stat-text { font-size: 1.1rem; }
  .stat-source { margin-top: .2rem; grid-column: 1 / -1; }
  .hero-right { margin-top: 1rem; }
  .showcase { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-cta--lg, .btn-outline { width: 100%; text-align: center; }
  .delivery-notif { display: none; }
  .process-step-label { font-size: 1.1rem; }
  .process-step-num-wrap { width: 48px; height: 48px; }
  .process-step-ring { width: 48px; height: 48px; }
  .process-step-num { width: 34px; height: 34px; font-size: .85rem; }
  .phase-overlay { display: none; }
  .func-grid { grid-template-columns: 1fr; }
}
