/* ============================================================
   PIVOT POWER — Global Styles
   Resets, base, shared components used across all pages.
   ============================================================ */

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

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

img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ── BASE ── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
}

/* ── PAGE WRAPPER ── */
.page-body {
  padding-top: var(--nav-height);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-7);
}

.section {
  padding: var(--space-9) var(--space-7);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Inside .dark sections, section-alt uses dark palette automatically */

.section-alt .container {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── TYPOGRAPHY ── */
.serif   { font-family: var(--font-serif); }
.serif-i { font-family: var(--font-serif); font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.5s ease-in-out infinite;
}

.sec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.sec-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.14;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.sec-title em {
  font-style: italic;
  color: var(--gold);
}

.sec-body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 56ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: #FFFFFF;
  padding: 0.82rem 1.7rem;
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  padding: 0.78rem 1.6rem;
  border: 1px solid var(--gold-border);
}
.btn-outline:hover {
  background: var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.78rem 1.6rem;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.55rem 1.1rem;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--gold-border);
}

.card-lift:hover {
  transform: translateY(-3px);
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge-soon {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ── TYPE CHIP ── */
.type-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

@keyframes typingPulse {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── DARK SECTION UTILITY ──
   Use on any <section> or <div> that should flip to dark mode.
   Pairs with .dark class from tokens.css.
   ───────────────────────────────────────────── */
.section-dark {
  background: var(--bg);
  color: var(--text);
}

/* ── CTA BAND — shared across all pages (always dark) ── */
.cta-band {
  background: linear-gradient(140deg, #131620 0%, #1A1D26 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: var(--space-10) var(--space-7);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(200,169,110,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  color: var(--text);
  max-width: 18ch;
  margin: 0 auto var(--space-4);
}

.cta-band-title em {
  font-style: italic;
  color: var(--gold);
}

.cta-band-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 50ch;
  margin: 0 auto var(--space-7);
  line-height: 1.75;
}

.cta-band-note {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: var(--space-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Fingerprint background */
.cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-band-bg img {
  width: 120%;
  max-width: none;
  height: auto;
  opacity: 0.08;
  filter: blur(1px);
  transform: rotate(-12deg) scale(1.1);
}

/* Sparkler video */
.cta-band-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* Content above backgrounds */
.cta-band-title,
.cta-band-sub,
.cta-band .btn,
.cta-band .btn-primary,
.cta-band .btn-ghost,
.cta-band-note,
.cta-band > .reveal {
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 768px) {
  .container,
  .section {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
