/* ============================================================
   Handle · Home Page
   ============================================================ */

/* --- Hero / Carousel --- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.carousel {
  position: relative;
  height: min(640px, 92vh);
  min-height: 460px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slide-art {
  position: absolute;
  inset: 0;
  background: var(--slide-bg, radial-gradient(circle at 75% 30%, #2A93C4, #16232E 70%));
}

.slide-art svg {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  height: auto;
  opacity: 0.96;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding: 0 var(--gutter);
  max-width: 640px;
}

.slide-content .eyebrow {
  color: var(--blush);
}

.slide-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 14px 0 18px;
  color: var(--paper);
}

.slide-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(251, 250, 245, 0.8);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(251, 250, 245, 0.25);
  background: rgba(22, 35, 46, 0.35);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.carousel-nav:hover {
  background: rgba(251, 250, 245, 0.18);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 250, 245, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, width 0.2s ease;
}

.carousel-dots button.active {
  background: var(--sky);
  width: 26px;
  border-radius: var(--radius-pill);
}

/* --- Sections shared rhythm --- */

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 12px 0 16px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
}

/* --- Feature grid --- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sky-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--sky-dark);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* --- Signature: distillation path --- */

.distill {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 64px var(--gutter);
  position: relative;
  overflow: hidden;
}

.distill-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 920px;
  margin: 48px auto 0;
  flex-wrap: wrap;
}

.distill-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
  flex: 1 1 120px;
  text-align: center;
}

.distill.is-visible .distill-step {
  opacity: 1;
  transform: none;
}

.distill.is-visible .distill-step:nth-child(1) { transition-delay: 0.05s; }
.distill.is-visible .distill-step:nth-child(3) { transition-delay: 0.2s; }
.distill.is-visible .distill-step:nth-child(5) { transition-delay: 0.35s; }
.distill.is-visible .distill-step:nth-child(7) { transition-delay: 0.5s; }

.distill-step .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.distill-step span {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 100px;
}

.distill-arrow {
  flex: 0 0 auto;
  color: var(--line);
  opacity: 0.6;
}

.distill-arrow svg {
  width: 20px;
  height: 20px;
}

.distill-result {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease 0.65s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s;
}

.distill.is-visible .distill-result {
  opacity: 1;
  transform: scale(1);
}

.distill-result .orb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sky), var(--sky-dark));
  box-shadow: 0 0 0 6px var(--sky-tint), var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.distill-result .orb svg {
  width: 30px;
  height: 30px;
  stroke: var(--paper);
}

.distill-result span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.distill-caption {
  text-align: center;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* --- Privacy / architecture strip --- */

.privacy-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.privacy-copy .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.privacy-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 18px;
}

.privacy-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
}

.privacy-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
}

.privacy-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--sky-dark);
  margin-top: 2px;
}

.privacy-diagram {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-diagram svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* --- Usage stages timeline --- */

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

.stage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}

.stage-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--sky-tint);
  -webkit-text-stroke: 1.5px var(--sky);
  line-height: 1;
  margin-bottom: 18px;
}

.stage-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.stage-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.stage-card::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -24px;
  width: 24px;
  height: 2px;
  background: var(--line);
}

.stage-card:last-child::after {
  display: none;
}

/* --- Bottom CTA banner --- */

.cta-banner {
  background: linear-gradient(120deg, var(--sky-dark), var(--ink));
  border-radius: var(--radius-lg);
  padding: 64px var(--gutter);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--paper);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(251, 250, 245, 0.75);
  max-width: 420px;
}

.cta-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Responsive --- */

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-strip {
    grid-template-columns: 1fr;
  }
  .privacy-diagram {
    order: -1;
  }
  .stage-list {
    grid-template-columns: 1fr;
  }
  .stage-card::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .slide-art svg {
    opacity: 0.35;
    width: 80vw;
    right: -10%;
  }
  .slide-content {
    max-width: 100%;
  }
  .carousel {
    height: 560px;
  }
  .distill-steps {
    gap: 18px 8px;
  }
  .distill-arrow {
    display: none;
  }
  .cta-banner {
    text-align: center;
    justify-content: center;
  }
  .cta-banner-actions {
    justify-content: center;
  }
}
