/* ── 9. FEATURES SECTION ────────────────────────────────────────────────── */
.features {
  background: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ── Scroll-driven carousel ── */
.hscroll-driver {
  /* height injected by JS */
  position: relative;
}

.hscroll-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.hscroll-header {
  padding-block: 0 var(--space-2);
}

.hscroll-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: 24px;
  margin-block: -24px;
}

.hscroll-strip {
  display: flex;
  gap: 20px;
  padding-inline: 0;
  will-change: transform;
}

.hcard__num {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

.hcard--1 { background: #6366f1; }
.hcard--2 { background: #ec4899; }
.hcard--3 { background: #f59e0b; }
.hcard--4 { background: #10b981; }
.hcard--5 { background: #3b82f6; }

/* ── hcard internal layout ── */
.hcard {
  flex-shrink: 0;
  width: clamp(220px, 38vw, 420px);
  height: 360px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #EAEAEA;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

@media (max-width: 640px) {
  .features {
    justify-content: flex-end;
    padding-bottom: 80px;
  }

  .hscroll-header {
    padding-inline: 20px;
    padding-block: 0 0;
    margin-bottom: 32px;
  }

  .hscroll-header .section-title {
    font-size: 1.75rem;
  }

  .hscroll-header .section-sub {
    font-size: 1rem;
  }

  .hscroll-cards-wrap {
    padding-inline: 0;
    max-width: none;
  }

  .hscroll-strip {
    padding-left: calc((100vw - (100vw - 40px)) / 2);
    padding-right: calc((100vw - (100vw - 40px)) / 2);
  }

  .hcard {
    width: calc(100vw - 40px);
    height: auto;
    min-height: 0;
    padding: 22px;
    gap: 16px;
    border-radius: 16px;
  }

  .hcard__title {
    font-size: 1.1rem;
  }

  .hcard__desc {
    font-size: 0.92rem;
  }
}

.hcard__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcard__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

.hcard__desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── shared mockup wrapper ── */
.hcard__mockup {
  background: #f1f2f4;
  border: 1px solid #e4e5e8;
  border-radius: 14px;
  padding: 14px 16px;
}

.hmock-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.hmock-dot--green { background: #22c55e; }

/* ── CARD 01: Vault mockup ── */
.hmock-vault { display: flex; flex-direction: column; gap: 10px; }
.hmock-vault__appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hmock-vault__appbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hmock-vault__appbar-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
}
.hmock-vault__balance-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hmock-vault__amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hmock-vault__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 2px;
}
.hmock-vault__amount {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hmock-vault__usdc {
  width: 12px;
  height: 12px;
}
.hmock-vault__token-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 3px 7px 3px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.hmock-vault__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.hmock-vault__network {
  font-size: 0.58rem;
  font-weight: 500;
  color: #bbb;
  letter-spacing: 0.04em;
}
.hmock-vault__gain {
  font-size: 0.62rem;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hmock-vault__gain-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: vaultPulse 1.8s ease-in-out infinite;
}
.hmock-vault__gain-label {
  font-weight: 500;
  color: #4ade80;
}
@keyframes vaultPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── CARD 02: Chart ── */
.hmock-chart { display: flex; flex-direction: column; gap: 8px; }
.hmock-chart__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hmock-chart__sublabel {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 1px;
}
.hmock-chart__stat {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hmock-chart__timeframes {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}
.hmock-chart__tf {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #bbb;
  padding: 2px 6px;
  border-radius: 4px;
  background: transparent;
}
.hmock-chart__tf--active {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.hmock-chart__bottom {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hmock-chart__graph-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hmock-chart__pool-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  flex-shrink: 0;
  width: 90px;
  padding-left: 10px;
  border-left: 1px solid #f0f0f0;
}
.hmock-chart__pool-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
}
.hmock-chart__pool-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hmock-chart__pool-apy {
  font-size: 0.58rem;
  font-weight: 600;
  color: #16a34a;
}
.hmock-chart__pool-btn {
  margin-top: 6px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hmock-apy-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid #86efac;
  white-space: nowrap;
}
.hmock-chart__svg {
  width: 100%;
  height: 42px;
}
.hmock-chart__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #ccc;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: -4px;
}
/* ── CARD 03: Sync ── */
.hmock-sync { display: flex; flex-direction: column; gap: 8px; }
.hmock-sync__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hmock-sync__pill {
  flex: 1;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hmock-sync__pill--yield {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.hmock-sync__pill--credit {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.hmock-sync__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
}
.hmock-sync__val {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
.hmock-sync__arrow { flex-shrink: 0; display: flex; }
.hmock-sync__note {
  font-size: 0.62rem;
  color: #bbb;
  text-align: center;
  font-weight: 500;
}

/* ── CARD 04: iPhone notification ── */
.hmock-iphone { display: flex; flex-direction: column; gap: 8px; }
.hmock-iphone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}
.hmock-iphone__time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.hmock-iphone__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hmock-iphone__notif {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.hmock-iphone__notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hmock-iphone__notif-app {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #555;
}
.hmock-iphone__app-bolt {
  width: 14px;
  height: 14px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.hmock-iphone__notif-time {
  font-size: 0.6rem;
  color: #aaa;
  font-weight: 500;
}
.hmock-iphone__notif-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.hmock-iphone__notif-body {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
}
.hmock-iphone__sub {
  font-size: 0.62rem;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* ── CARD 05: Send anywhere ── */
.hmock-send { display: flex; flex-direction: column; gap: 7px; }
.hmock-send__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hmock-send__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
}
.hmock-send__network {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  color: #555;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 2px 8px 2px 6px;
}
.hmock-send__net-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}
.hmock-send__amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 4px;
  border-bottom: 1px solid #f0f0f0;
}
.hmock-send__amount {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
}
.hmock-send__token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 3px 8px 3px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1d4ed8;
}
.hmock-send__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8fb;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 6px 10px;
}
.hmock-send__field-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
}
.hmock-send__field-val {
  font-size: 0.65rem;
  font-weight: 600;
  color: #555;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.hmock-send__fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #bbb;
  font-weight: 500;
}
.hmock-send__fee-val {
  color: #16a34a;
  font-weight: 700;
}
.hmock-send__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

/* Feature card — glassmorphism light */
.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition:
    transform   var(--duration-base) var(--ease-out),
    box-shadow  var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Subtle top-edge highlight for depth */
.feature-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.04);
}

/* Accent card — slightly darker background for visual hierarchy */
.feature-card--accent {
  background: linear-gradient(145deg, #f8f9fb 0%, #f1f2f5 100%);
  border-color: rgba(0, 0, 0, 0.07);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: var(--space-1);
}

.feature-card__desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  width: fit-content;
  margin-top: var(--space-1);
}

