:root {
  --bg: #07070b;
  --bg-2: #0c0b12;
  --surface: #111119;
  --surface-2: #16151f;
  --border: rgba(168, 144, 255, 0.12);
  --border-strong: rgba(168, 144, 255, 0.28);
  --text: #f4f3f8;
  --text-dim: #a8a6b8;
  --text-mute: #6f6d80;
  --accent: #a890ff;
  --accent-2: #7c5cff;
  --accent-deep: #3a1f8a;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

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

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.dim { color: var(--text-dim); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ---- Ambient background ---- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 85% 90%, rgba(58, 31, 138, 0.16), transparent 65%),
    radial-gradient(1200px 800px at 50% 50%, rgba(168, 144, 255, 0.04), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168, 144, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 144, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.orb.a {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  animation: float1 22s ease-in-out infinite;
}
.orb.b {
  width: 520px; height: 520px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(58, 31, 138, 0.4), transparent 70%);
  animation: float2 28s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,-30px) scale(1.05); }
}
