:root { --bg: #0e0e10; --text: #efeff1; --accent: #9146ff; --muted: #adadb8; --card: #18181b; --border: #26262c; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }

/* Hero */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(60px, 8vw, 120px) 20px clamp(40px, 5vw, 80px); position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 18px; position: relative; z-index: 1; }
.hero h1 span { background: linear-gradient(90deg, var(--accent) 0%, #e2c0ff 45%, #fff 50%, #e2c0ff 55%, var(--accent) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 3.5s linear infinite; }
.hero p { font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--muted); max-width: min(600px, 90vw); line-height: 1.7; margin-bottom: 36px; position: relative; z-index: 1; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.btn-primary { background: var(--accent); color: #fff; border-radius: 8px; padding: 12px 28px; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: opacity .15s; }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 12px 28px; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Ambient background orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(145, 70, 255, .28) 0%, transparent 60%);
  top: -250px; left: -250px;
  animation: orbA 10s ease-in-out infinite alternate;
}
.hero::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(145, 70, 255, .20) 0%, transparent 60%);
  bottom: -200px; right: -250px;
  animation: orbB 14s ease-in-out infinite alternate;
}
@keyframes orbA {
  from { transform: translate(0, 0); }
  to   { transform: translate(120px, 80px); }
}
@keyframes orbB {
  from { transform: translate(0, 0); }
  to   { transform: translate(-90px, -70px); }
}
@keyframes shimmer {
  from { background-position: 100% 50%; }
  to   { background-position: -200% 50%; }
}

/* Features */
.features { max-width: clamp(1000px, 80vw, 1600px); margin: 0 auto; padding: 0 20px 80px; width: 100%; }
.features h2 { text-align: center; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease, border-color .2s ease; cursor: pointer; }
.feature-card.is-visible { opacity: 1; transform: none; }
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* Feature icon float */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.feature-card.is-visible .feature-icon { animation: iconFloat 3s ease-in-out infinite; }
.feature-card.is-visible:nth-child(2) .feature-icon { animation-delay:  .5s; }
.feature-card.is-visible:nth-child(3) .feature-icon { animation-delay: 1.0s; }
.feature-card.is-visible:nth-child(4) .feature-icon { animation-delay:  .3s; }
.feature-card.is-visible:nth-child(5) .feature-icon { animation-delay:  .8s; }
.feature-card.is-visible:nth-child(6) .feature-icon { animation-delay: 1.3s; }

/* Feature detail blocks */
.feature-details { max-width: clamp(800px, 55vw, 1100px); margin: 0 auto 80px; padding: 0 20px; display: flex; flex-direction: column; gap: 24px; }
.feature-detail-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.feature-detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.feature-detail-icon { font-size: 1.5rem; }
.feature-detail-block h3 { font-size: 1.05rem; font-weight: 700; }
.feature-detail-block p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.feature-detail-block p:last-of-type { margin-bottom: 20px; }
@keyframes highlightPulse {
  0%   { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(145, 70, 255, .25); }
  100% { border-color: var(--border); box-shadow: none; }
}
.feature-detail-block.is-highlighted { animation: highlightPulse 1s ease forwards; }

/* Hero entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero p, .hero-btns { animation: fadeUp .5s ease both; }
.hero h1   { animation-delay:   0ms; }
.hero p    { animation-delay: 120ms; }
.hero-btns { animation-delay: 240ms; }

/* Increase card breathing room on lower-res screens so hover border reads clearly */
@media (max-width: 900px) {
  .feature-card { padding: 26px 22px; }
}

/* Mobile layout */
@media (max-width: 640px) {
  .feature-detail-block { padding: 20px 16px; }
}

/* Reduced motion - disable all animation and reveal cards immediately */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  .hero h1, .hero p, .hero-btns { animation: none; }
  .hero h1 span { animation: none; background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); background-clip: unset; -webkit-background-clip: unset; }
  .feature-card { opacity: 1; transform: none; transition: none; }
  .feature-card.is-visible .feature-icon { animation: none; }
}

