/* ============================================================
   css/shared.css — Prowave Technology
   Shared design tokens, resets, and utilities
   Load this FIRST on every page, before any page-specific CSS
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colours */
  --pw-orange: #7c3aed;
  --pw-orange-dark: #5b21b6;
  --pw-orange-light: #a78bfa;
  --pw-orange-pale: #f5f0ff;
  --pw-orange-glow: rgba(124, 58, 237, 0.15);
  --pw-orange-shadow: 0 8px 32px rgba(124, 58, 237, 0.38);

  /* Dark palette */
  --pw-dark: #0a0f1a;
  --pw-dark2: #111827;
  --pw-dark-card: #1a2235;
  --pw-dark-border: rgba(255, 255, 255, 0.07);

  /* Text palette */
  --pw-ink: #0f172a;
  --pw-ink-mid: #334155;
  --pw-ink-soft: #64748b;
  --pw-ink-faint: #94a3b8;

  /* Background palette */
  --pw-bg: #ffffff;
  --pw-bg2: #f8fafc;
  --pw-bg3: #f1f5f9;
  --pw-border: #e2e8f0;
  --pw-border-light: #f1f5f9;

  /* Shadows */
  --pw-s1: 0 1px 3px rgba(0, 0, 0, 0.05);
  --pw-s2: 0 4px 20px rgba(0, 0, 0, 0.07);
  --pw-s3: 0 16px 48px rgba(0, 0, 0, 0.11);
  --pw-s4: 0 24px 64px rgba(0, 0, 0, 0.14);

  /* Border radii */
  --pw-r1: 8px;
  --pw-r2: 14px;
  --pw-r3: 20px;
  --pw-r4: 28px;
  --pw-rf: 999px;

  /* Typography */
  --pw-font-head: 'Plus Jakarta Sans', 'Syne', sans-serif;
  --pw-font-body: 'Inter', 'DM Sans', sans-serif;

  /* Layout */
  --pw-max-w: 1260px;
  --pw-section-py: 110px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--pw-font-body);
  color: var(--pw-ink-soft);
  background: var(--pw-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: color 0.25s;
}

button {
  font-family: var(--pw-font-head);
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── LAYOUT UTILITIES ── */
.pw-container {
  max-width: var(--pw-max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.pw-section {
  padding: var(--pw-section-py) 0;
}

.pw-section-alt {
  background: var(--pw-bg2);
}

.pw-section-dk {
  background: var(--pw-dark);
}

.pw-tc {
  text-align: center;
}

/* ── TYPOGRAPHY ── */
.pw-label {
  display: inline-block;
  font-family: var(--pw-font-head);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--pw-orange);
  background: var(--pw-orange-pale);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 6px 15px;
  border-radius: var(--pw-rf);
  margin-bottom: 18px;
}

.pw-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pw-orange);
  margin-right: 7px;
  vertical-align: middle;
}

.pw-h1 {
  font-family: var(--pw-font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--pw-ink);
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.pw-h2 {
  font-family: var(--pw-font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--pw-ink);
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.pw-sub {
  font-size: 1.04rem;
  color: var(--pw-ink-soft);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 56px;
}

.pw-accent {
  color: var(--pw-orange);
}

.pw-white {
  color: #fff !important;
}

/* ── BUTTONS ── */
.pw-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--pw-font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  padding: 14px 30px;
  border-radius: var(--pw-rf);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.pw-btn-lg {
  padding: 17px 38px;
  font-size: 0.95rem;
}

.pw-btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

.pw-btn-primary {
  background: var(--pw-orange);
  color: #fff;
  box-shadow: var(--pw-orange-shadow);
}

.pw-btn-primary:hover {
  background: var(--pw-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.pw-btn-outline {
  background: transparent;
  border: 1.5px solid var(--pw-border);
  color: var(--pw-ink);
}

.pw-btn-outline:hover {
  border-color: var(--pw-orange);
  color: var(--pw-orange);
  background: var(--pw-orange-pale);
}

.pw-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.pw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pw-btn-white {
  background: #fff;
  color: var(--pw-orange);
  font-weight: 700;
}

.pw-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
  color: var(--pw-orange-dark);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.rv,
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rl {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rr {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in,
.rl.in,
.rr.in,
.fade-up.visible {
  opacity: 1;
  transform: translate(0);
}

.d1 {
  transition-delay: 0.1s;
}

.d2 {
  transition-delay: 0.2s;
}

.d3 {
  transition-delay: 0.3s;
}

.d4 {
  transition-delay: 0.4s;
}

.d5 {
  transition-delay: 0.5s;
}

.d6 {
  transition-delay: 0.6s;
}

/* ── BACK TO TOP BUTTON ── */
#btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--pw-orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--pw-orange-shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

#btt.vis {
  opacity: 1;
  pointer-events: all;
}

#btt:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

/* ── PAGE-TOP SPACING (accounts for fixed nav) ── */
body {
  padding-top: 0;
}

.page-top-pad {
  padding-top: 96px;
}

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 900px) {
  :root {
    --pw-section-py: 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --pw-section-py: 60px;
  }

  .pw-container {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .rv,
  .rl,
  .rr,
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}