/* =========================================================
   Base — reset, type, shell
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body.premium-landing {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.premium-landing.has-custom-cursor,
body.premium-landing.has-custom-cursor * {
  cursor: none !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection {
  background: rgba(232, 197, 71, 0.3);
  color: #fff;
}

/* Ambient background */
.px-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(62, 207, 239, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(124, 108, 240, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 197, 71, 0.06), transparent 50%),
    linear-gradient(180deg, #070b14 0%, var(--bg-void) 40%, #060910 100%);
}

.px-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

#px-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.px-shell {
  position: relative;
  z-index: 1;
}

.px-container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Typography */
.px-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.px-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.px-lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  max-width: 38ch;
}

.px-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
}

.px-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
}

.px-section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.px-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 48px);
  flex-wrap: wrap;
}

.px-section-head p {
  color: var(--text-secondary);
  max-width: 36ch;
  font-size: 0.95rem;
}

.px-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-gold-hi);
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) ease;
}

.px-link:hover {
  gap: 12px;
  color: var(--hover-gold);
}

.px-link::after {
  content: "→";
  font-size: 1.05em;
}

/* Custom cursor */
.px-cursor,
.px-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-custom-cursor .px-cursor,
body.has-custom-cursor .px-cursor-ring {
  opacity: 1;
}

.px-cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 12px rgba(232, 197, 71, 0.8);
  mix-blend-mode: difference;
}

.px-cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 71, 0.55);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), border-color 0.2s ease, background 0.2s ease;
}

body.cursor-hover .px-cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(232, 197, 71, 0.9);
  background: rgba(232, 197, 71, 0.08);
}

@media (max-width: 899px) {
  body.premium-landing.has-custom-cursor,
  body.premium-landing.has-custom-cursor * {
    cursor: auto !important;
  }
  .px-cursor, .px-cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
