/**
 * Features page (Product template) — LicensesWP Core Demo
 */

/* ─── Hero ─── */
.feat-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.25rem;
  color: #eef6ff;
  overflow: hidden;
  background: linear-gradient(152deg, #031528 0%, #041833 38%, #063a8f 100%);
}

.feat-hero__bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.feat-hero__mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 78% 30%, rgba(63, 212, 232, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 12% 70%, rgba(11, 91, 211, 0.35), transparent 55%);
  animation: feat-mesh-drift 18s ease-in-out infinite alternate;
}

.feat-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(63, 212, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 212, 232, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
}

.feat-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.feat-hero__orb--a {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(63, 212, 232, 0.55), transparent 68%);
  animation: feat-orb-float 10s ease-in-out infinite;
}

.feat-hero__orb--b {
  width: 200px;
  height: 200px;
  bottom: 12%;
  left: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(11, 91, 211, 0.5), transparent 70%);
  animation: feat-orb-float 12s ease-in-out infinite reverse;
}

.feat-hero__grid-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .feat-hero__grid-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.feat-hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.feat-hero__brand span {
  color: var(--cyan);
}

.feat-hero__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.94);
}

.feat-hero__lead {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(238, 246, 255, 0.72);
}

.feat-hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.feat-hero .btn--ghost:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(63, 212, 232, 0.12);
}

/* ─── 3D hero scene ─── */
.feat-hero__stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  min-height: 320px;
}

.feat-scene {
  position: relative;
  width: min(100%, 420px);
  height: 340px;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-22deg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-scene__plane {
  position: absolute;
  inset-inline: 8%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
}

.feat-scene__plane--back {
  top: 18%;
  bottom: 8%;
  background: linear-gradient(145deg, rgba(11, 91, 211, 0.55), rgba(4, 24, 51, 0.9));
  transform: translateZ(-48px) scale(0.92);
}

.feat-scene__plane--mid {
  top: 10%;
  bottom: 14%;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(11, 91, 211, 0.25));
  backdrop-filter: blur(10px);
  transform: translateZ(0);
}

.feat-scene__bar {
  display: block;
  height: 10px;
  width: 72%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.feat-scene__bar--short {
  width: 48%;
  opacity: 0.7;
}

.feat-scene__chip {
  margin-top: auto;
  width: 42%;
  height: 28px;
  border-radius: 10px;
  background: rgba(63, 212, 232, 0.35);
}

.feat-scene__chip--accent {
  width: 28%;
  background: rgba(11, 91, 211, 0.55);
}

.feat-scene__plane--front {
  top: 0;
  bottom: 22%;
  display: grid;
  place-content: center;
  gap: 1rem;
  justify-items: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(231, 241, 248, 0.92));
  color: var(--navy);
  transform: translateZ(56px) translateY(-12px);
}

.feat-scene__plane--front img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(11, 91, 211, 0.25));
}

.feat-scene__stat {
  display: flex;
  gap: 0.45rem;
}

.feat-scene__stat em {
  display: block;
  width: 36px;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-style: normal;
}

.feat-scene__stat em:nth-child(2) {
  opacity: 0.7;
  width: 28px;
}

.feat-scene__stat em:nth-child(3) {
  opacity: 0.45;
  width: 22px;
}

.feat-scene__float {
  position: absolute;
  z-index: 4;
  animation: feat-float-bob 5.5s ease-in-out infinite;
}

.feat-scene__float .icon-badge {
  box-shadow: 0 14px 28px rgba(4, 24, 51, 0.28);
}

.feat-scene__float--key {
  top: 6%;
  left: -2%;
  transform: translateZ(90px);
  animation-delay: 0s;
}

.feat-scene__float--shield {
  top: 42%;
  right: -4%;
  transform: translateZ(110px);
  animation-delay: -1.8s;
}

.feat-scene__float--bolt {
  bottom: 4%;
  left: 18%;
  transform: translateZ(80px);
  animation-delay: -3.2s;
}

@keyframes feat-mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 3%, 0) scale(1.04); }
}

@keyframes feat-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -18px, 0); }
}

@keyframes feat-float-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ─── Shared sections ─── */
.feat-section {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}

.feat-section .section__title {
  max-width: 28ch;
}

.feat-section .section__lead {
  max-width: 46rem;
  color: #1a2b40;
  opacity: 0.82;
}

.feat-pillars {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .feat-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-pillar {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feat-pillar__glow {
  position: absolute;
  width: 140px;
  height: 140px;
  top: -40px;
  right: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 212, 232, 0.28), transparent 70%);
  pointer-events: none;
}

.feat-pillar h3 {
  margin: 0.85rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feat-pillar p {
  margin: 0;
  color: #3d5168;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ─── Timeline ─── */
.feat-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .feat-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feat-timeline__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 1.15rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feat-timeline__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  padding-top: 0.35rem;
}

.feat-timeline__item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.feat-timeline__item p {
  margin: 0;
  color: #3d5168;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ─── Modules ─── */
.feat-modules {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .feat-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .feat-modules {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feat-module {
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feat-module h3 {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.feat-module p {
  margin: 0;
  color: #3d5168;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ─── Split ─── */
.feat-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .feat-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
  }

  .feat-split--flip .feat-split__copy {
    order: 2;
  }

  .feat-split--flip .feat-split__visual {
    order: 1;
  }
}

.feat-split__copy {
  min-width: 0;
}

.feat-checklist {
  list-style: none;
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.feat-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  color: #1a2b40;
  font-size: 0.95rem;
  line-height: 1.45;
}

.feat-checklist .icon {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feat-split__visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0.35rem 0;
}

/* 3D order block */
.feat-block3d {
  position: relative;
  width: 260px;
  height: 170px;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-28deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-block3d__face {
  position: absolute;
  border-radius: 14px;
}

.feat-block3d__face--front {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(145deg, #fff, #eef5fb);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(4, 24, 51, 0.18);
  transform: translateZ(28px);
}

.feat-block3d__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.feat-block3d__face--front strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.feat-block3d__face--front small {
  color: var(--cyan-deep);
  font-weight: 600;
}

.feat-block3d__face--side {
  top: 0;
  bottom: 0;
  width: 28px;
  right: -28px;
  background: linear-gradient(180deg, #0b5bd3, #041833);
  transform: rotateY(90deg) translateZ(0);
  transform-origin: left center;
}

.feat-block3d__face--top {
  left: 0;
  right: 0;
  height: 28px;
  top: -28px;
  background: linear-gradient(90deg, #3fd4e8, #0b5bd3);
  transform: rotateX(90deg);
  transform-origin: bottom center;
  opacity: 0.9;
}

/* Code panel */
.feat-code {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: #041833;
  color: #d7e8ff;
  border: 1px solid rgba(63, 212, 232, 0.25);
  box-shadow: 0 22px 44px rgba(4, 24, 51, 0.28);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.7;
}

.feat-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.feat-code__muted { color: rgba(215, 232, 255, 0.45); }
.feat-code__kw { color: #3fd4e8; }
.feat-code__fn { color: #8ec8ff; }
.feat-code__str { color: #9dffa8; }

/* ─── Security grid ─── */
.feat-security {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .feat-security {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-security__card {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feat-security__card h3 {
  margin: 0.85rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feat-security__card p {
  margin: 0;
  color: #3d5168;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ─── Durations ─── */
.feat-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.feat-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(4, 24, 51, 0.08);
  transform: perspective(600px) rotateX(4deg);
}

.feat-duration--hot {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(11, 91, 211, 0.28);
}

/* ─── Inventory ─── */
.feat-inventory {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 700px) {
  .feat-inventory {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feat-inventory li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.94rem;
}

.feat-inventory .icon {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.12rem;
}

/* ─── CTA ─── */
.feat-cta .section__eyebrow {
  color: var(--blue);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .feat-hero__mesh,
  .feat-hero__orb,
  .feat-scene__float {
    animation: none !important;
  }

  .feat-scene,
  .feat-block3d {
    transform: none !important;
  }
}
