/* ============================================================
   BrijCode — About Features
   Category rows + stats + horizon arc under counters
   ============================================================ */

.about-features {
  --af-navy: #061326;
  --af-navy-2: #071a33;
  --af-marigold: var(--marigold, #f29a1f);
  --af-white: #f4f7fb;
  --af-muted: rgba(168, 186, 210, 0.72);
  --af-card-bg: rgba(8, 24, 45, 0.72);
  --af-card-border: rgba(100, 130, 160, 0.18);
  --af-arc-stroke: rgba(100, 180, 220, 0.28);
  --af-rule: rgba(242, 154, 31, 0.45);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--af-navy);
  background-image: linear-gradient(180deg, #08182e 0%, var(--af-navy-2) 22%, var(--af-navy) 55%, #050f1f 100%);
  color: var(--af-white);
  padding: 30px 0;
}

.about-features__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-features__ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(242, 154, 31, 0.06) 0%, transparent 58%),
    radial-gradient(ellipse 80% 48% at 50% 100%, rgba(48, 88, 130, 0.1) 0%, transparent 65%);
}

.about-features__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  --af-grid-color: rgba(140, 175, 210, 0.07);
  background-image:
    linear-gradient(var(--af-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--af-grid-color) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 100% 92% at 50% 42%, #000 10%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 42%, #000 10%, transparent 88%);
}

.about-features__header {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.about-features__stats-wrap {
  position: relative;
  left: 50%;
  width: min(1280px, 108vw);
  margin: 20px 0;
  padding-bottom: 50px;
  transform: translateX(-50%);
  isolation: isolate;
}

.about-features__stats-grid {
  position: absolute;
  inset: -28px -8% -12px;
  z-index: 0;
  pointer-events: none;
  --af-stats-grid-color: rgba(140, 175, 210, 0.085);
  background-image:
    linear-gradient(var(--af-stats-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--af-stats-grid-color) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 92% 88% at 50% 38%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 38%, #000 18%, transparent 82%);
}

.about-features__stats {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s ease 0.2s,
    transform 0.75s ease 0.2s;
}

.about-features__horizon {
  position: absolute;
  left: 50%;
  top: calc(100% - clamp(44px, 5.5vw, 62px));
  z-index: 2;
  width: min(122%, 1320px);
  height: clamp(96px, 12vw, 148px);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.28s;
}

.about-features__horizon-glow {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 0;
  width: min(46%, 480px);
  height: clamp(56px, 7vw, 88px);
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(72, 210, 255, 0.62) 0%,
    rgba(56, 170, 245, 0.34) 32%,
    rgba(40, 120, 210, 0.12) 58%,
    transparent 78%
  );
  filter: blur(22px);
}

.about-features__horizon-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about-features__horizon-path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.about-features__horizon-path--main {
  stroke: url(#about-features-horizon-grad);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(96, 220, 255, 0.75)) drop-shadow(0 0 22px rgba(64, 180, 255, 0.45));
}

.about-features__horizon-path--soft {
  stroke: url(#about-features-horizon-grad);
  stroke-width: 0.85;
  opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(56, 170, 245, 0.28));
}

.about-features__horizon-path--faint {
  stroke: url(#about-features-horizon-grad);
  stroke-width: 0.55;
  opacity: 0.28;
}

.about-features__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 36px);
}

.about-features__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.68rem, 0.75vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--af-marigold);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.about-features__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--af-marigold);
  box-shadow: 0 0 8px rgba(242, 154, 31, 0.45);
}

.about-features__title {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s ease 0.08s,
    transform 0.75s ease 0.08s;
}

.about-features__title-line {
  display: block;
  color: var(--af-white);
}

.about-features__title-line--accent {
  color: var(--af-marigold);
}

.about-features__description {
  margin: 0 auto;
  max-width: min(720px, 100%);
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.9rem, 1.05vw, 1.0625rem);
  line-height: 1.62;
  color: var(--af-muted);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s ease 0.14s,
    transform 0.75s ease 0.14s;
}

.about-features__stat {
  margin: 0;
  text-align: center;
}

.about-features__stat-value {
  margin: 0 0 4px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--af-white);
}

.about-features__stat-label {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
  line-height: 1.4;
  color: rgba(168, 186, 210, 0.78);
}

.about-features__categories {
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

.about-features__category + .about-features__category {
  margin-top: clamp(28px, 3.5vw, 40px);
}

.about-features__category-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 22px);
}

.about-features__category-label {
  flex-shrink: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.625rem, 0.7vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-marigold);
}

.about-features__category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--af-rule) 0%, rgba(242, 154, 31, 0.12) 100%);
}

.about-features__category-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--af-marigold);
  box-shadow: 0 0 10px rgba(242, 154, 31, 0.5);
}

.about-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 16px);
}

.about-features__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 0;
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 16px;
  background: var(--af-card-bg);
  border: 1px solid var(--af-card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(14px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    opacity 0.55s ease;
}

.about-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(4, 14, 28, 0.9);
  border: 1px solid rgba(100, 130, 160, 0.22);
  color: var(--af-marigold);
  box-shadow: 0 0 0 1px rgba(242, 154, 31, 0.04);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.about-features__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-features__card-body {
  min-width: 0;
  flex: 1;
}

.about-features__card-title {
  margin: 0 0 6px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--af-white);
}

.about-features__card-text {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.8125rem, 0.88vw, 0.875rem);
  line-height: 1.52;
  color: var(--af-muted);
}

.about-features__card:hover,
.about-features__card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(130, 165, 200, 0.32);
  background: rgba(10, 28, 52, 0.82);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(242, 154, 31, 0.05);
}

.about-features__card:hover .about-features__icon,
.about-features__card:focus-within .about-features__icon {
  color: #ffb04a;
  border-color: rgba(242, 154, 31, 0.3);
  box-shadow: 0 0 14px rgba(242, 154, 31, 0.12);
}

.about-features.is-revealed .about-features__eyebrow,
.about-features.is-revealed .about-features__title,
.about-features.is-revealed .about-features__description,
.about-features.is-revealed .about-features__stats {
  opacity: 1;
  transform: translateY(0);
}

.about-features.is-revealed .about-features__horizon {
  opacity: 1;
}

.about-features.is-revealed .about-features__card {
  opacity: 1;
  transform: translateY(0);
}

.about-features.is-revealed .about-features__card:nth-child(1) { transition-delay: 0.04s; }
.about-features.is-revealed .about-features__card:nth-child(2) { transition-delay: 0.07s; }
.about-features.is-revealed .about-features__card:nth-child(3) { transition-delay: 0.1s; }
.about-features.is-revealed .about-features__card:nth-child(4) { transition-delay: 0.13s; }

@media (prefers-reduced-motion: reduce) {
  .about-features__eyebrow,
  .about-features__title,
  .about-features__description,
  .about-features__stats,
  .about-features__horizon,
  .about-features__card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-features__card:hover,
  .about-features__card:focus-within {
    transform: none;
  }
}
