/* Features page — cosmic editorial (dark) */

.features-page {
  --feat-max: 1380px;
  --feat-text: 650px;
  --section-space: clamp(3.5rem, 6vw, 5.25rem);
  --section-space-tight: clamp(2.25rem, 4vw, 3.5rem);
}

.features-page .frame-wrap {
  max-width: var(--feat-max);
}

/* ===== HERO ===== */
.features-hero {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 85% 10%, rgba(232, 135, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 55% at 10% 80%, rgba(94, 200, 232, 0.08), transparent 50%),
    linear-gradient(180deg, #080b12 0%, #0b0e17 100%) !important;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.features-hero-media,
.features-hero-wash,
.features-hero-fade {
  display: none !important;
}

.features-hero-inner {
  position: relative !important;
  left: auto;
  top: auto;
  transform: none;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.75rem, 5.5vw, 4rem) 1.5rem clamp(2.5rem, 4.5vw, 3.25rem);
  text-align: center;
}

.features-hero-inner::before {
  display: none;
}

.features-hero .eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #8b93a5 !important;
}

.features-hero .page-h1 {
  margin: 1rem auto 0;
  font-size: clamp(2.25rem, 3.2vw, 3.25rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 20ch;
  color: #eef1f6 !important;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.features-hero .title-line {
  display: none;
}

.features-hero-lead {
  max-width: 640px;
  margin: 1.25rem auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: #b0b8c8 !important;
}

.features-hero-meta {
  margin: 0.9rem auto 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #7a8496 !important;
}

.motion-ready .features-hero .eyebrow {
  opacity: 0;
  animation: feat-eyebrow 0.55s ease 0.05s forwards;
}
.motion-ready .features-hero .page-h1 {
  opacity: 0;
  transform: translateY(6px);
  animation: feat-h1 0.7s ease 0.16s forwards;
}
.motion-ready .features-hero-lead,
.motion-ready .features-hero-meta {
  opacity: 0;
  animation: feat-fade 0.55s ease 0.36s forwards;
}
@keyframes feat-eyebrow { to { opacity: 1; } }
@keyframes feat-h1 { to { opacity: 1; transform: translateY(0); } }
@keyframes feat-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .features-hero .eyebrow,
  .motion-ready .features-hero .page-h1,
  .motion-ready .features-hero-lead,
  .motion-ready .features-hero-meta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.features-page .features-hero {
  background:
    radial-gradient(ellipse 55% 70% at 85% 10%, rgba(232, 135, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 55% at 10% 80%, rgba(94, 200, 232, 0.08), transparent 50%),
    linear-gradient(180deg, #080b12 0%, #0b0e17 100%) !important;
}

/* ===== ON THIS PAGE ===== */
.features-page .features-surface-d {
  background: #080b12 !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.75rem !important;
}
.features-page .crumbs {
  margin-bottom: 1rem;
  color: #7a8496;
}
.features-page .page-toc {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem !important;
  background:
    linear-gradient(180deg, rgba(22, 26, 38, 0.9), rgba(11, 14, 23, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.25);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.features-page .page-toc .toc-label {
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  color: #8b93a5 !important;
}
.features-page .page-toc ul {
  max-width: 100%;
  margin-inline: auto;
}
.features-page .page-toc a {
  font-size: 1rem;
  font-weight: 600;
  color: #e8ecf4 !important;
  transition: transform 200ms ease, color 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}
.features-page .page-toc a::before {
  width: 6px;
  height: 6px;
  background: #5ec8e8 !important;
  border-radius: 2px;
  transition: background 200ms ease, transform 200ms ease;
}
.features-page .page-toc a:hover {
  color: #f0b35a !important;
  transform: translateX(3px);
  border-bottom-color: rgba(232, 135, 58, 0.35);
}
.features-page .page-toc a:hover::before {
  background: #e8873a !important;
  transform: scale(1.15);
}
html[dir="rtl"] .features-page .page-toc a:hover {
  transform: translateX(-3px);
}

/* ===== FEATURE DIVIDERS ===== */
.features-page .cloud-sep-feature {
  height: 56px;
  margin: 0.35rem 0;
}
.features-page .cloud-sep-feature::before,
.features-page .cloud-sep-feature::after {
  display: none !important;
}
.features-page .cloud-sep-feature .haze {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  padding: 0.38rem 1.1rem;
  color: #aeb6c8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 24px rgba(232, 135, 58, 0.1);
  background: rgba(11, 14, 23, 0.95) !important;
}
.features-page .cloud-sep-feature .haze::before,
.features-page .cloud-sep-feature .haze::after {
  display: none !important;
}

/* ===== SPACING ===== */
.features-page .section-pad {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.features-page .section-intro {
  max-width: 880px;
}
.features-page .section-intro p {
  max-width: var(--feat-text);
  color: #b0b8c8;
}
.features-page .section-h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #eef1f6 !important;
}
.features-page .section-intro + article,
.features-page .section-intro + ul,
.features-page .section-intro + .feature-shot-wide,
.features-page .section-intro + .section-stack,
.features-page .section-intro + .mt-10 {
  margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}

/* ===== SURFACES ===== */
.features-surface-a {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(94, 200, 232, 0.06), transparent 60%),
    #080b12 !important;
}
.features-surface-b {
  background:
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 135, 58, 0.07), transparent 55%),
    #0b0e17 !important;
}
.features-surface-c {
  background:
    radial-gradient(ellipse 55% 40% at 10% 30%, rgba(94, 200, 232, 0.05), transparent 55%),
    #080b12 !important;
}
.features-surface-d {
  background: #080b12 !important;
}

.features-wash-soft {
  position: relative;
}
.features-wash-soft::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1rem;
  transform: translateX(-50%);
  width: min(520px, 70%);
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(232, 135, 58, 0.12), transparent 70%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.features-wash-soft > * {
  position: relative;
  z-index: 1;
}

.features-cta-wash {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(232, 135, 58, 0.1), transparent 60%),
    #0b0e17 !important;
}
.features-cta-wash::before {
  display: none;
}

/* ===== EDITORIAL LAYOUTS ===== */
.features-editorial {
  align-items: center;
}
.features-editorial .feature-copy {
  max-width: 34rem;
}
.features-editorial .feature-copy h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  color: #eef1f6 !important;
}

/* App window chrome */
.features-page .win-chrome {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
  background: #10131c !important;
}
.features-page .win-chrome .bar {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #1a1f2c, #121622) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.features-page .win-chrome .dot {
  width: 8px;
  height: 8px;
}
.features-page .feature-shot {
  max-width: none;
  width: 100%;
}
.features-page .feature-shot-wide {
  max-width: min(1180px, 100%);
  width: 100%;
}
.features-page .win-chrome.shot-lift:hover {
  transform: translateY(-3px) scale(1.006);
  border-color: rgba(240, 179, 90, 0.28) !important;
}

/* Wide crop that bleeds slightly */
.features-bleed {
  width: min(100vw - 1.25rem, calc(var(--feat-max) + 56px));
  margin-left: auto;
  margin-right: auto;
}

/* GIMP personality micro-details */
.features-crop-marks {
  position: relative;
}
.features-crop-marks::before,
.features-crop-marks::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(94, 200, 232, 0.35);
  border-style: solid;
  pointer-events: none;
}
.features-crop-marks::before {
  top: -6px;
  left: -6px;
  border-width: 1px 0 0 1px;
}
.features-crop-marks::after {
  bottom: -6px;
  right: -6px;
  border-width: 0 1px 1px 0;
}

.features-layer-ticks {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  opacity: 0.45;
}
.features-layer-ticks span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.features-layer-ticks span:nth-child(2) {
  width: 18px;
  opacity: 0.7;
}
.features-layer-ticks span:nth-child(3) {
  width: 12px;
  opacity: 0.45;
}

.features-checker {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, #5b8fb8 25%, transparent 25%),
    linear-gradient(-45deg, #5b8fb8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #5b8fb8 75%),
    linear-gradient(-45deg, transparent 75%, #5b8fb8 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

.features-page .sticky-grab {
  border-radius: 1.05rem;
}
.features-page .sticky-grab:hover {
  transform: translateY(-3px);
}

.features-page .compare-table {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(16, 19, 28, 0.9);
}
.features-page .compare-table th,
.features-page .compare-table td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.features-page .spec-strip {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.features-page .spec-strip > div {
  background: rgba(16, 19, 28, 0.95) !important;
}
.features-page .rounded-\[14px\].border,
.features-page .overflow-x-auto.rounded-\[14px\] {
  background: rgba(16, 19, 28, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 640px) {
  .features-hero .page-h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.35rem) !important;
    max-width: none;
  }
  .features-crop-marks::before,
  .features-crop-marks::after {
    display: none;
  }
}
