/* ============================================
   PoleStrike Landing Page — Custom Styles
   ============================================ */

/* --- CSS Custom Properties (Official PoleStrike Brand System) --- */
:root {
  /* Official 6-color brand palette */
  --ps-red: #F32F1E;       /* Electric Red */
  --ps-amber: #F5A623;     /* Amber */
  --ps-green: #28F942;     /* Electric Green */
  --ps-cyan: #0AEDE7;      /* Cyan */
  --ps-purple: #AE40EB;    /* Vivid Purple */
  --ps-magenta: #E20BE6;   /* Electric Magenta */

  /* Primary Brand Gradient — continuous sweep, 6 stops */
  --rainbow-gradient: linear-gradient(
    90deg,
    var(--ps-red),
    var(--ps-amber),
    var(--ps-green),
    var(--ps-cyan),
    var(--ps-purple),
    var(--ps-magenta)
  );

  /* Typography stacks (per graphic standard) */
  --font-display: 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-mono: 'SF Mono', Consolas, 'Courier New', monospace;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
}

/* --- Base Reset & Body --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* GSAP handles smooth scroll */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.4;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display type — headlines use Impact/Arial Black per graphic standard */
h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 400; /* Impact is naturally bold; no need to bump weight */
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* --- Liquid Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

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

/* --- Rainbow Outline Text (white fill + sharp rainbow gradient stroke) ---
   Matches the CTA button ring — crisp, not faded.
   Requires a data-text attribute matching the element's text content,
   which is populated automatically by main.js. */
.rainbow-glow-text {
  position: relative;
  display: inline-block;
  color: #000;
  /* Give the 4px text-stroke room at the edges so it doesn't get clipped */
  padding-inline: 6px;
  margin-inline: -6px;
}

.rainbow-glow-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-text-stroke: 4px transparent;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--ps-red),
    var(--ps-amber),
    var(--ps-green),
    var(--ps-cyan),
    var(--ps-purple),
    var(--ps-magenta)
  );
  -webkit-background-clip: text;
          background-clip: text;
}

/* --- Rainbow Gradient Border (pseudo-element technique) --- */
.gradient-border {
  position: relative;
  background: #000;
  border-radius: 16px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: var(--rainbow-gradient);
  z-index: -1;
}

/* --- Patent Pending Badge --- */
.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.1);
  color: var(--ps-amber);
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 166, 35, 0.2); }
  50% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.45); }
}

/* --- CTA Button with Rainbow Gradient --- */
/* --- CTA Button: solid dark body, rainbow gradient ring only, cyan text --- */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-cyan);
  background: rgba(15, 15, 20, 0.88);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  z-index: 0;
}

/* Thin rainbow ring created via ::before with padding + mask */
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(243, 47, 30, 0.55),
    rgba(245, 166, 35, 0.55),
    rgba(40, 249, 66, 0.55),
    rgba(10, 237, 231, 0.55),
    rgba(174, 64, 235, 0.55),
    rgba(226, 11, 230, 0.55),
    rgba(243, 47, 30, 0.55),
    rgba(245, 166, 35, 0.55),
    rgba(40, 249, 66, 0.55),
    rgba(10, 237, 231, 0.55),
    rgba(174, 64, 235, 0.55),
    rgba(226, 11, 230, 0.55)
  );
  background-size: 300% 100%;
  background-position: 0% 0%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: background-position 1.2s ease, opacity 0.3s ease;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.cta-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(10, 237, 231, 0.18),
    0 0 28px rgba(174, 64, 235, 0.15);
}

.cta-button:hover::before {
  background-position: 100% 0%;
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

/* --- Sticky Header --- */
/* Transparent over hero video; gains subtle backdrop once scrolled */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* --- Glow Effect Utility --- */
.glow-soft {
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.15),
              0 0 80px rgba(226, 11, 230, 0.08);
}

/* --- Rainbow Glow (edges only, directional colored box-shadows, pulsing) --- */
.rainbow-glow {
  position: relative;
  animation: rainbow-glow-pulse 5s ease-in-out infinite;
}

/* Stagger feature-card pulses so they aren't in lockstep */
.rainbow-glow:nth-child(2) { animation-delay: -1.25s; }
.rainbow-glow:nth-child(3) { animation-delay: -2.5s; }
.rainbow-glow:nth-child(4) { animation-delay: -3.75s; }

@keyframes rainbow-glow-pulse {
  0%, 100% {
    /* Each of the 6 brand colors gets its own clock position around the card */
    box-shadow:
      0 -10px 30px rgba(243, 47, 30, 0.22),     /* 12 o'clock: red */
      12px -7px 30px rgba(245, 166, 35, 0.22),  /*  2 o'clock: amber */
      12px 7px 30px rgba(40, 249, 66, 0.22),    /*  4 o'clock: green */
      0 10px 30px rgba(10, 237, 231, 0.22),     /*  6 o'clock: cyan */
      -12px 7px 30px rgba(174, 64, 235, 0.22),  /*  8 o'clock: purple */
      -12px -7px 30px rgba(226, 11, 230, 0.22); /* 10 o'clock: magenta */
  }
  50% {
    box-shadow:
      0 -16px 55px rgba(243, 47, 30, 0.4),
      18px -11px 55px rgba(245, 166, 35, 0.4),
      18px 11px 55px rgba(40, 249, 66, 0.4),
      0 16px 55px rgba(10, 237, 231, 0.4),
      -18px 11px 55px rgba(174, 64, 235, 0.4),
      -18px -11px 55px rgba(226, 11, 230, 0.4);
  }
}

/* --- Form Input Styling --- */
.email-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.email-input:focus {
  border-color: var(--ps-cyan);
  box-shadow: 0 0 0 3px rgba(10, 237, 231, 0.2);
}

/* --- Section Divider (subtle gradient line) --- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent
  );
}

/* --- Fade-in Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

/* --- Success/Error States --- */
.form-success {
  color: var(--ps-green);
  font-weight: 600;
}

.form-error {
  color: var(--ps-red);
  font-weight: 600;
}

/* --- Smooth scrollbar (WebKit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
