:root {
  --grad-start: #7B61FF;
  --grad-end:   #B69CFF;
  --purple-50:  #F4F0FF;
  --purple-100: #E8E1FF;
  --purple-700: #5B3FE0;
  --bg:         #F8F7FB;
  --surface:    #FFFFFF;
  --text:       #1A1A2E;
  --text-muted: #6B6B80;
  --text-soft:  #9A99AD;
  --divider:    #ECEAF3;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-xs:  0 2px 8px rgba(123,97,255,.06);
  --shadow-sm:  0 6px 20px rgba(123,97,255,.08);
  --shadow-md:  0 14px 36px rgba(123,97,255,.12);
  --shadow-lg:  0 24px 60px rgba(123,97,255,.18);
  --grad: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  --grad-soft: linear-gradient(135deg, rgba(123,97,255,.10), rgba(182,156,255,.10));
  --glow-purple: 0 0 0 1px rgba(123,97,255,.08), 0 24px 60px -16px rgba(123,97,255,.35);
  --glass-bg: rgba(255,255,255,.65);
  --glass-border: rgba(255,255,255,.7);
  --shadow-elev: 0 30px 80px -24px rgba(60,40,160,.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }

main { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 16px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123,97,255,.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(123,97,255,.42);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--divider);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--grad-start);
  color: var(--grad-start);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}

.link-ghost {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
}
.link-ghost:hover { color: var(--grad-start); }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.6);
  transform: scale(0);
  animation: ripple .6s ease-out;
}
.btn-outline .ripple { background: rgba(123,97,255,.18); }
@keyframes ripple {
  to { transform: scale(3); opacity: 0; }
}

/* Badge */
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--purple-50);
  color: var(--grad-start);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 20px; }
}
