/* ============================================
   Aurora — Features Page Styles
   Editorial layout with transitions, not fixed colors
   ============================================ */

/* --- Page Header / Hero --- */
.features-header {
  padding: calc(var(--space-24) + 88px) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.features-header__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  overflow: clip;
}

.features-header__glow-1 {
  position: absolute;
  width: calc(100% - 80px);
  height: 500px;
  top: 20%;
  left: 40px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  filter: blur(90px);
  animation: aurora-drift 22s ease-in-out infinite;
}

.features-header__glow-2 {
  position: absolute;
  width: calc(100% - 80px);
  height: 400px;
  top: 60%;
  left: 40px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 30% 50%, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  animation: aurora-drift 28s ease-in-out infinite reverse;
}

.features-header__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.features-header__title {
  font-size: var(--text-hero-desktop);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: var(--space-6);
}

.features-header__desc {
  font-size: var(--text-hero-body-desktop);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

.features-header__preview {
  position: relative;
  max-width: 760px;
  margin: var(--space-8) auto 0;
  padding: 12px;
  border: 1px solid rgba(96,165,250,0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 6%, rgba(52,211,153,0.22), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(56,189,248,0.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.026)),
    rgba(5,12,20,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 34px 100px rgba(0,0,0,0.30),
    0 0 0 1px rgba(52,211,153,0.06);
  isolation: isolate;
}

.features-header__preview::before,
.features-header__preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.features-header__preview::before {
  inset: 16px 34px -28px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(52,211,153,0.20), transparent 68%);
  filter: blur(28px);
  opacity: 0.78;
}

.features-header__preview::after {
  inset: auto 72px -14px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,0.24);
  filter: blur(16px);
}

.features-header__preview-screen {
  position: relative;
  min-height: 268px;
  padding: 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(52,211,153,0.16), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(56,189,248,0.18), transparent 34%),
    linear-gradient(180deg, rgba(56,108,142,0.34), rgba(20,45,61,0.50) 42%, rgba(8,18,30,0.78));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.28);
}

.features-header__preview-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 18px;
  margin: 0 -18px;
  color: rgba(255,255,255,0.68);
  background:
    linear-gradient(180deg, rgba(4,10,17,0.78), rgba(4,10,17,0.56));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
  line-height: 1;
}

.features-header__preview-bar span:last-child {
  justify-self: end;
}

.features-header__preview-bar strong {
  color: #fff;
}

.features-header__preview-notch {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 172px;
  height: 30px;
  border-radius: 0 0 20px 20px;
  background: #03080e;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 0;
  transform: translateX(-50%);
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.26);
}

.features-header__preview-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.9fr);
  gap: 14px;
  max-width: 620px;
  margin: 58px auto 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 10%, rgba(52,211,153,0.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.030)),
    rgba(4,12,22,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 52px rgba(0,0,0,0.24);
}

.features-header__preview-pill {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(96,165,250,0.18), transparent 42%),
    linear-gradient(180deg, rgba(15,32,50,0.96), rgba(6,14,24,0.94));
  border: 1px solid rgba(255,255,255,0.16);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 34px rgba(0,0,0,0.22);
}

.features-header__preview-art {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #34d399, #38bdf8 48%, #f472b6);
  box-shadow: 0 14px 32px rgba(56,189,248,0.18);
}

.features-header__preview-pill strong,
.features-header__preview-pill em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.features-header__preview-pill strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.features-header__preview-pill em {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-style: normal;
}

.features-header__preview-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.features-header__preview-bars i {
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent-green);
  animation: preview-bars 850ms ease-in-out infinite;
}

.features-header__preview-bars i:nth-child(2) { height: 20px; animation-delay: 120ms; }
.features-header__preview-bars i:nth-child(3) { height: 16px; animation-delay: 240ms; }

@keyframes features-preview-bars {
  0%, 100% { transform: scaleY(0.7); opacity: 0.62; }
  50% { transform: scaleY(1); opacity: 1; }
}

.features-header__preview-bars i {
  animation-name: features-preview-bars;
}

.features-header__preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.features-header__preview-grid span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 47px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.74);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.features-header__preview-grid i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(52,211,153,0.44);
  flex: 0 0 auto;
}

/* --- Feature Overview --- */
.features-overview {
  padding: var(--space-10) 0 var(--space-12);
  position: relative;
}

.features-overview__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: var(--space-8);
  align-items: stretch;
}

.features-overview__copy {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 18% 12%, rgba(52,211,153,0.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 70px rgba(0,0,0,0.16);
}

.features-overview__title {
  max-width: 500px;
  margin: 0 0 var(--space-4);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.features-overview__desc {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.65;
}

.features-overview__grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.features-overview__item {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-card-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.045);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.features-overview__item:hover,
.features-overview__item:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-green) 42%, var(--border-soft));
  background: rgba(255,255,255,0.075);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  outline: none;
}

.features-overview__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(145deg, rgba(52,211,153,0.18), rgba(56,189,248,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--accent-green);
}

.features-overview__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features-overview__item strong {
  display: block;
  margin-top: auto;
  font-size: 17px;
  line-height: 1.2;
}

.features-overview__item span:last-child {
  color: var(--text-secondary);
  font-size: var(--text-small);
  line-height: 1.45;
}

/* --- Feature Row (Editorial Alternating Layout) --- */
.feature-row {
  padding: var(--space-20) 0;
  position: relative;
  overflow: clip;
  scroll-margin-top: 80px;
}

/* Gradient divider between rows — transition not solid line */
.feature-row + .feature-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-soft) 25%, var(--border-soft) 75%, transparent 100%);
}

.feature-row__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Alternate the feature rows after the overview section. */
.feature-row:nth-child(odd) .feature-row__inner {
  direction: rtl;
}

.feature-row:nth-child(odd) .feature-row__content,
.feature-row:nth-child(odd) .feature-row__visual {
  direction: ltr;
}

/* --- Feature Row Content (Text Side) --- */
.feature-row__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.feature-row__eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-green);
  opacity: 0.4;
}

.feature-row__title {
  font-size: var(--text-section-desktop);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: var(--space-4);
}

.feature-row__desc {
  font-size: var(--text-hero-body-desktop);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

/* --- Feature Detail List --- */
.feature-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.feature-detail:hover {
  transform: translateX(4px);
}

.feature-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-button-sm);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(145deg, rgba(52,211,153,0.18), rgba(56,189,248,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px rgba(0,0,0,0.12);
  transition: all 0.35s var(--ease);
}

.feature-detail:hover .feature-detail__icon {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(145deg, rgba(52,211,153,0.26), rgba(56,189,248,0.14));
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 14px 28px rgba(52, 211, 153, 0.12);
  transform: scale(1.05);
}

.feature-detail__icon svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

.feature-row:nth-of-type(2) { --feature-accent: #34d399; --feature-accent-2: #38bdf8; }
.feature-row:nth-of-type(3) { --feature-accent: #60a5fa; --feature-accent-2: #34d399; }
.feature-row:nth-of-type(4) { --feature-accent: #38bdf8; --feature-accent-2: #a78bfa; }
.feature-row:nth-of-type(5) { --feature-accent: #ff8fb8; --feature-accent-2: #f59e0b; }
.feature-row:nth-of-type(6) { --feature-accent: #a78bfa; --feature-accent-2: #34d399; }

.feature-row .feature-detail__icon,
.feature-row .feature-mini-card__icon,
.feature-row .feature-visual__icon {
  color: var(--feature-accent, var(--accent-green));
}

.feature-row .feature-detail__icon,
.feature-row .feature-mini-card__icon,
.feature-row .feature-visual__icon {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--feature-accent, #34d399) 26%, transparent), color-mix(in srgb, var(--feature-accent-2, #38bdf8) 12%, transparent));
}

.feature-detail__text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature-detail__text p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Feature Row Visual (Illustration Side) --- */
.feature-row__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-visual-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}

/* Gradient overlay — uses transitions for atmospheric feel */
.feature-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.02) 0%,
    rgba(56, 189, 248, 0.02) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.feature-visual-card:hover::before {
  opacity: 1;
}

.feature-visual-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

/* Large icon in visual card */
.feature-visual__icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.24), transparent 32%),
    linear-gradient(145deg, rgba(52,211,153,0.18), rgba(56,189,248,0.1));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 40px rgba(0,0,0,0.16);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease);
}

.feature-visual-card:hover .feature-visual__icon {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.3), transparent 32%),
    linear-gradient(145deg, rgba(52,211,153,0.26), rgba(56,189,248,0.15));
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 22px 48px rgba(52, 211, 153, 0.12);
  transform: scale(1.05);
}

.feature-visual__icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.24));
}

/* Decorative floating elements inside visual card */
.feature-visual__float {
  position: absolute;
  border-radius: var(--radius-card-sm);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  font-size: var(--text-small);
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.feature-visual__float--tl {
  top: 16%;
  left: 8%;
  transform: translate(-8px, -4px);
}

.feature-visual__float--tr {
  top: 12%;
  right: 8%;
  transform: translate(8px, -4px);
}

.feature-visual__float--bl {
  bottom: 16%;
  left: 12%;
  transform: translate(-8px, 4px);
}

.feature-visual__float--br {
  bottom: 12%;
  right: 8%;
  transform: translate(8px, 4px);
}

/* Floats appear on card hover with smooth transition */
.feature-visual-card:hover .feature-visual__float {
  opacity: 1;
  transform: translate(0, 0);
}

/* Glow effect behind visual card — transition-based */
.feature-visual-card__glow {
  position: absolute;
  width: 70%;
  height: 60%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s var(--ease);
}

.feature-visual-card:hover .feature-visual-card__glow {
  opacity: 0.4;
}

.feature-visual-card__glow--green {
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
}

.feature-visual-card__glow--cyan {
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

/* --- Feature Mini Cards (used in some visual areas) --- */
.feature-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.feature-mini-card {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card-sm);
  padding: var(--space-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.35s var(--ease);
}

.feature-mini-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-mini-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.2), transparent 34%),
    linear-gradient(145deg, rgba(52,211,153,0.16), rgba(56,189,248,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  color: var(--accent-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 22px rgba(0,0,0,0.12);
  transition: all 0.35s var(--ease);
}

.feature-mini-card:hover .feature-mini-card__icon {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.26), transparent 34%),
    linear-gradient(145deg, rgba(52,211,153,0.24), rgba(56,189,248,0.14));
  border-color: rgba(52, 211, 153, 0.28);
  transform: scale(1.08);
}

.feature-mini-card__icon svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

.feature-mini-card__label {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* --- CTA Section --- */
.features-cta {
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.features-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.features-cta__glow {
  position: absolute;
  width: 700px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  animation: aurora-pulse 4s ease-in-out infinite;
}

.features-cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.features-cta__title {
  font-size: var(--text-section-desktop);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: var(--space-4);
}

.features-cta__desc {
  font-size: var(--text-hero-body-desktop);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.features-cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Reveal Animations --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .features-header__preview-bars i {
    animation: none;
  }

  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-detail:hover,
  .feature-visual-card:hover,
  .feature-mini-card:hover {
    transform: none;
  }

  .feature-visual__float {
    opacity: 1;
    transform: none;
  }

  .feature-visual-card__glow {
    opacity: 0.3;
  }
}

/* --- Light Mode Overrides --- */
[data-theme="light"] .feature-visual-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-visual-card:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-visual-card::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.04) 0%, rgba(56, 189, 248, 0.04) 100%);
}

[data-theme="light"] .features-overview__copy,
[data-theme="light"] .features-overview__item {
  background: rgba(255,255,255,0.62);
  border-color: rgba(18,33,48,0.08);
  box-shadow: 0 18px 52px rgba(18,33,48,0.08);
}

[data-theme="light"] .features-overview__item:hover,
[data-theme="light"] .features-overview__item:focus-visible {
  background: rgba(255,255,255,0.86);
  border-color: rgba(5,150,105,0.24);
}

[data-theme="light"] .features-header__preview {
  border-color: rgba(18,33,48,0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(43,182,133,0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.36)),
    rgba(255,255,255,0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 30px 90px rgba(18,33,48,0.12);
}

[data-theme="light"] .features-header__preview-screen {
  border-color: rgba(18,33,48,0.10);
  background:
    radial-gradient(circle at 86% 18%, rgba(56,140,240,0.13), transparent 32%),
    linear-gradient(180deg, rgba(229,247,245,0.72), rgba(195,224,226,0.58) 44%, rgba(246,250,249,0.68));
}

[data-theme="light"] .features-header__preview-bar,
[data-theme="light"] .features-header__preview-notch {
  background: rgba(18,33,48,0.86);
}

[data-theme="light"] .features-header__preview-surface,
[data-theme="light"] .features-header__preview-grid span {
  border-color: rgba(18,33,48,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.42)),
    rgba(255,255,255,0.36);
}

[data-theme="light"] .feature-visual__float {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-detail__icon {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.15);
}

[data-theme="light"] .feature-mini-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-mini-card:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-mini-card__icon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.18);
}

[data-theme="light"] .feature-visual__icon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .features-header__title {
    font-size: var(--text-hero-tablet);
  }

  .features-header__desc {
    font-size: var(--text-hero-body-tablet);
  }

  .feature-row__title {
    font-size: var(--text-section-tablet);
  }

  .feature-row__desc {
    font-size: var(--text-hero-body-tablet);
  }

  .feature-row__inner {
    gap: var(--space-10);
  }

  .features-overview__inner {
    grid-template-columns: 1fr;
  }

  .features-cta__title {
    font-size: var(--text-section-tablet);
  }

  .features-cta__desc {
    font-size: var(--text-hero-body-tablet);
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .features-header {
    padding: calc(var(--space-16) + 80px) 0 var(--space-10);
  }

  .features-overview {
    padding-top: var(--space-8);
  }

  .features-header__title {
    font-size: var(--text-hero-mobile);
  }

  .features-header__desc {
    font-size: var(--text-hero-body-mobile);
  }

  .features-header__preview {
    margin-top: var(--space-6);
    padding: 8px;
    border-radius: 22px;
  }

  .features-header__preview-screen {
    min-height: 0;
    padding: 0 12px 12px;
    border-radius: 16px;
  }

  .features-header__preview-bar {
    margin: 0 -12px;
    padding: 0 12px;
  }

  .features-header__preview-notch {
    width: 116px;
    height: 22px;
  }

  .features-header__preview-surface {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 34px;
    padding: 18px 12px 12px;
  }

  .features-header__preview-pill {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .features-header__preview-art {
    width: 36px;
    height: 36px;
  }

  .features-header__preview-grid {
    grid-template-columns: 1fr;
  }

  .features-header__preview-grid span {
    justify-content: flex-start;
  }

  .feature-row {
    padding: var(--space-16) 0;
  }

  .feature-row__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Reset direction on mobile (always text then visual) */
  .feature-row:nth-child(odd) .feature-row__inner {
    direction: ltr;
  }

  .features-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-row__visual {
    order: -1;
  }

  .feature-row__desc {
    font-size: var(--text-hero-body-mobile);
    max-width: 100%;
  }

  .feature-row__title {
    font-size: var(--text-section-mobile);
  }

  .feature-visual-card {
    max-width: 100%;
  }

  /* Release the 4:3 ratio ONLY when the card holds a mini-card grid —
     otherwise the grid sat in a half-empty wrapper on mobile. */
  .feature-visual-card:has(.feature-mini-cards) {
    aspect-ratio: auto;
    padding: var(--space-6) var(--space-5);
  }

  .feature-mini-cards {
    max-width: 100%;
    gap: var(--space-3);
  }

  .feature-mini-card {
    padding: var(--space-3);
  }

  .features-cta {
    padding: var(--space-16) 0;
  }

  .features-cta__title {
    font-size: var(--text-section-mobile);
  }

  .features-cta__desc {
    font-size: var(--text-hero-body-mobile);
  }

  /* .features-cta__actions mobile layout is handled by the
     shared .dual-cta component — no page-specific override needed */

  .feature-visual__float--tl,
  .feature-visual__float--tr,
  .feature-visual__float--bl,
  .feature-visual__float--br {
    display: none;
  }

  .feature-mini-cards {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .features-header__content {
    padding: 0 var(--space-4);
  }

  .features-overview {
    padding-top: var(--space-6);
  }

  .features-overview__inner {
    padding: 0 var(--space-4);
  }

  .features-overview__grid {
    grid-template-columns: 1fr;
  }

  .features-overview__item {
    min-height: 0;
  }

  .feature-row__inner {
    padding: 0 var(--space-4);
  }

  .features-cta__content {
    padding: 0 var(--space-4);
  }
}
