/* ═══════════════════════════════════════════════════════════
   @property — Registers CSS custom properties so the browser
   can interpolate them in transitions (gradient animation).
   Adapted from gradient-button component for GetLeadFlow brand.
   ═══════════════════════════════════════════════════════════ */

/* ─── Primary button gradient properties ────────────────── */
@property --btn-pos-x {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
@property --btn-pos-y {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
@property --btn-spread-x {
  syntax: '<percentage>';
  initial-value: 200%;
  inherits: false;
}
@property --btn-spread-y {
  syntax: '<percentage>';
  initial-value: 200%;
  inherits: false;
}
@property --btn-color-1 {
  syntax: '<color>';
  initial-value: #22C55E;
  inherits: false;
}
@property --btn-color-2 {
  syntax: '<color>';
  initial-value: #16A34A;
  inherits: false;
}
@property --btn-color-3 {
  syntax: '<color>';
  initial-value: #14532D;
  inherits: false;
}
@property --btn-color-4 {
  syntax: '<color>';
  initial-value: #0D2818;
  inherits: false;
}
@property --btn-color-5 {
  syntax: '<color>';
  initial-value: #0A1410;
  inherits: false;
}
@property --btn-stop-1 {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
@property --btn-stop-2 {
  syntax: '<percentage>';
  initial-value: 25%;
  inherits: false;
}
@property --btn-stop-3 {
  syntax: '<percentage>';
  initial-value: 55%;
  inherits: false;
}
@property --btn-stop-4 {
  syntax: '<percentage>';
  initial-value: 78%;
  inherits: false;
}
@property --btn-stop-5 {
  syntax: '<percentage>';
  initial-value: 100%;
  inherits: false;
}
@property --btn-border-angle {
  syntax: '<angle>';
  initial-value: 140deg;
  inherits: false;
}
@property --btn-border-c1 {
  syntax: '<color>';
  initial-value: hsla(142, 75%, 60%, 0.15);
  inherits: false;
}
@property --btn-border-c2 {
  syntax: '<color>';
  initial-value: hsla(142, 75%, 40%, 0.7);
  inherits: false;
}

/* ─── Orange button gradient properties ─────────────────── */
@property --obtn-color-1 {
  syntax: '<color>';
  initial-value: #0A0F1E;
  inherits: false;
}
@property --obtn-color-2 {
  syntax: '<color>';
  initial-value: #451A03;
  inherits: false;
}
@property --obtn-color-3 {
  syntax: '<color>';
  initial-value: #92400E;
  inherits: false;
}
@property --obtn-color-4 {
  syntax: '<color>';
  initial-value: #D97706;
  inherits: false;
}
@property --obtn-color-5 {
  syntax: '<color>';
  initial-value: #F59E0B;
  inherits: false;
}
@property --obtn-border-angle {
  syntax: '<angle>';
  initial-value: 20deg;
  inherits: false;
}
@property --obtn-border-c1 {
  syntax: '<color>';
  initial-value: hsla(38, 92%, 60%, 0.2);
  inherits: false;
}
@property --obtn-border-c2 {
  syntax: '<color>';
  initial-value: hsla(38, 92%, 50%, 0.75);
  inherits: false;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  line-height: 1.7;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-blue-glow);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-blue-bright); }

a:focus-visible {
  outline: 2px solid var(--color-blue-glow);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

ul, ol { list-style: none; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--color-blue-glow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: 1400px;
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(59,130,246,0.3);
  color: var(--color-text-primary);
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ─── Reveal Animation Base States ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-24px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(24px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

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

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: none;
}

/* ─── Section Label ──────────────────────────────────────── */
.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ─── Noise Texture Overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}
