/* =====================================================
   BASE — reset · body · typography · scrollbar
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Subtle texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(194,24,91,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 85%, rgba(232,144,26,0.05) 0%, transparent 60%),
    var(--bg-primary);
}

/* ── Soft floating orbs ── */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(233,30,140,0.22) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat1 24s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(100,30,160,0.18) 0%, transparent 70%);
  bottom: 10%; left: -150px;
  animation: orbFloat2 30s ease-in-out infinite alternate;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.16) 0%, transparent 70%);
  top: 40%; right: 20%;
  animation: orbFloat3 20s ease-in-out infinite alternate;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(194,24,91,0.14) 0%, transparent 70%);
  bottom: 25%; right: 5%;
  animation: orbFloat4 26s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, 70px) scale(1.08); }
  100% { transform: translate(30px, -40px) scale(0.94); }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -50px) scale(1.06); }
  100% { transform: translate(-20px, 35px) scale(0.96); }
}
@keyframes orbFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 60px) scale(1.10); }
  100% { transform: translate(-30px, -25px) scale(0.92); }
}
@keyframes orbFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-55px, -40px) scale(1.07); }
  100% { transform: translate(25px, 50px) scale(0.90); }
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }

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

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

/* ── Gradient text ── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ── Selection ── */
::selection {
  background: rgba(194, 24, 91, 0.18);
  color: var(--text-primary);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
