*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --card-bg: #141414;
  --card-border: #2a2a2a;
  --featured-border: #7c3aed;
  --featured-badge: #7c3aed;
  --text: #e5e5e5;
  --text-muted: #9a9a9a;
  --check-purple: #7c3aed;
  --check-green: #4ade80;
  --cross-red: #ef4444;
  --minus-orange: #f97316;
  --nav-bg: #111111;
  --nav-border: #222222;
  --discord-bg: #5865f2;
}

body {
  background:
    radial-gradient(ellipse 120% 70% at 0% 5%,    rgba(124, 58, 237, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 100% 15%,  rgba(168, 85, 247, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 90%  55% at 50% 50%,   rgba(99,  52, 180, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 110% 65% at 20% 100%,  rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 80% 90%,   rgba(192, 38, 211, 0.06) 0%, transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a:hover { color: #fff; }

.nav-icon { font-size: 0.9rem; }

.btn-discord {
  background: var(--discord-bg);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px;
  transition: background 0.15s !important;
}
.btn-discord:hover { background: #4752c4 !important; }

/* ── INTRO SECTION ── */
.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.intro-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 6px 2px rgba(124, 58, 237, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.intro h1 span {
  background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.intro-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
}

.pill-icon { font-size: 0.85rem; }

.intro-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-primary {
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  border: 1px solid #2e2e2e;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: #555;
  color: #fff;
  transform: translateY(-1px);
}

.intro-divider {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a2a2a 20%, #2a2a2a 80%, transparent);
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── CARDS GRID ── */
.cards-section {
  padding: 1rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card.featured {
  border-color: var(--featured-border);
  border-width: 2px;
  padding-top: 2.25rem;
}

.badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--featured-badge);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 0 0 8px 8px;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ── FEATURE ROWS ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  margin: 0 -0.5rem;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 1px;
}

.icon svg { width: 11px; height: 11px; }

.icon-check  { background: var(--check-purple); color: #fff; }
.icon-cross  { background: var(--cross-red);    color: #fff; }
.icon-minus  { background: var(--minus-orange); color: #fff; }

/* ── CARD HOVER ── */
.card:hover {
  border-color: #7c3aed;
  box-shadow:
    0 0 0 1px #7c3aed,
    0 0 24px 4px rgba(124, 58, 237, 0.35),
    0 0 60px 10px rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
}

.card.featured:hover {
  border-color: #a855f7;
  box-shadow:
    0 0 0 2px #a855f7,
    0 0 30px 6px rgba(168, 85, 247, 0.45),
    0 0 70px 14px rgba(124, 58, 237, 0.2);
}

/* ── FEATURE ROW HOVER ── */
.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(90deg, #7c3aed, #c026d3, #7c3aed);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-item:hover::before { opacity: 1; }

.feature-item:hover {
  background: rgba(124, 58, 237, 0.08);
  box-shadow:
    0 0 12px 2px rgba(124, 58, 237, 0.2),
    0 0 24px 4px rgba(192, 38, 211, 0.08);
}

/* ══════════════════════════════
   SHOWCASE SECTION
══════════════════════════════ */
.showcase-section {
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 8rem);
}

.showcase-header {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.showcase-label {
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.75rem;
}

.showcase-title {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.showcase-sub {
  font-size: clamp(0.85rem, 1.5vw, 0.97rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── STAGE ── */
.showcase-stage {
  position: relative;
  perspective: clamp(800px, 120vw, 2000px);
  perspective-origin: 50% 50%;
  overflow: hidden;
  height: calc(clamp(200px, 27vw, 360px) + 6rem);
}

/* ── STACK ── */
.showcase-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* ── INDIVIDUAL FRAMES ── */
.showcase-frame {
  position: absolute;
  width: clamp(500px, 34vw, 333px);
  left: calc(var(--i) * clamp(333px, 13vw, 333px));
  top: 0;
  transform: translateY(-50%) scale(calc(var(--depth-scale) * var(--active-scale, 1)));
  transform-origin: center center;
  z-index: calc(10 - var(--i));
  background: #0d0c1a;
  overflow: visible;
  box-shadow:
    0 clamp(10px, 2vw, 28px) clamp(30px, 6vw, 80px) rgba(0,0,0,0.75),
    0 0 0 1px rgba(124,58,237,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.showcase-frame.frame-active {
  opacity: 1 !important;
  box-shadow:
    0 clamp(18px, 3vw, 44px) clamp(50px, 9vw, 100px) rgba(0,0,0,0.9),
    0 0 0 1px rgba(124,58,237,0.6),
    0 0 clamp(20px, 4vw, 48px) clamp(4px, 0.8vw, 10px) rgba(124,58,237,0.28);
  z-index: 50 !important;
}

.showcase-frame.frame-dim {
  opacity: calc(var(--depth-op) * 0.6);
}

/* Window chrome bar */
.frame-chrome {
  background: #181728;
  border-bottom: 1px solid #252338;
  padding: clamp(0.35rem, 0.8vw, 0.6rem) clamp(0.6rem, 1.2vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px) 0 0;
}

.chrome-dot {
  width: clamp(7px, 1vw, 10px);
  height: clamp(7px, 1vw, 10px);
  border-radius: 50%;
  flex-shrink: 0;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }

.chrome-title {
  font-size: clamp(0.58rem, 0.9vw, 0.72rem);
  font-weight: 600;
  color: #4a4a6a;
  margin-left: 0.4rem;
  flex: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-btns {
  font-size: clamp(0.55rem, 0.8vw, 0.68rem);
  color: #2a2a3a;
  letter-spacing: 0.1em;
}

.frame-body {
  width: 100%;
  height: clamp(170px, 23vw, 330px);
  overflow: hidden;
  border-radius: 0 0 clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px);
}

.frame-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0e0c1c 0%, #171232 55%, #0d0b1a 100%);
}

.img-placeholder span {
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 600;
  color: rgba(124,58,237,0.5);
}

.img-placeholder p {
  font-size: clamp(0.58rem, 0.85vw, 0.68rem);
  color: #222233;
}

/* ── GRADIENT VEIL ── */
.frame-veil {
  position: absolute;
  inset: 0;
  border-radius: clamp(6px, 1vw, 12px);
  background: linear-gradient(
    to right,
    rgba(13, 13, 13, 0.92) 0%,
    rgba(13, 13, 13, 0.55) 35%,
    rgba(13, 13, 13, 0.15) 65%,
    transparent 100%
  );
  opacity: var(--veil-op, 1);
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.3s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .cards-section { padding: 1rem 1rem 4rem; }
}