/* ============================================================
   BroWeiser – Global Design System
   Brand: Black + Gold (#F5A623) + White
   "Smarter. Innovator. Trustable."
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --gold:          #F5A623;
  --gold-light:    #FFD166;
  --gold-dark:     #C98A14;
  --gold-glow:     rgba(245, 166, 35, 0.25);
  --gold-glow-sm:  rgba(245, 166, 35, 0.12);

  --bg:            #000000;
  --bg-surface:    #0D0D0D;
  --bg-surface-2:  #161616;
  --bg-surface-3:  #1E1E1E;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(245, 166, 35, 0.06);

  --text-primary:   #FFFFFF;
  --text-secondary: #9B9B9B;
  --text-muted:     #5A5A5A;
  --text-gold:      #F5A623;

  --border:         rgba(255,255,255,0.07);
  --border-gold:    rgba(245, 166, 35, 0.3);
  --border-gold-strong: rgba(245, 166, 35, 0.6);

  /* Gradients */
  --grad-gold:        linear-gradient(135deg, #F5A623 0%, #FFD166 100%);
  --grad-gold-subtle: linear-gradient(135deg, rgba(245,166,35,0.15) 0%, rgba(255,209,102,0.05) 100%);
  --grad-dark:        linear-gradient(180deg, #000000 0%, #0D0D0D 100%);
  --grad-hero:        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,166,35,0.18) 0%, transparent 65%);
  --grad-text:        linear-gradient(135deg, #F5A623 0%, #FFD166 50%, #F5A623 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-gold:   0 0 40px rgba(245,166,35,0.2), 0 0 80px rgba(245,166,35,0.08);
  --shadow-gold-sm: 0 0 20px rgba(245,166,35,0.15);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-xl:     0 20px 60px rgba(0,0,0,0.6);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.15s;
  --dur-med:     0.3s;
  --dur-slow:    0.6s;

  /* Layout */
  --max-width: 1280px;
  --nav-h:     72px;
  --section-py: 100px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

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

button { cursor: pointer; border: none; background: none; }
input, textarea { outline: none; }

/* ---------- Typography Scale ---------- */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.text-h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg { font-size: 1.125rem; line-height: 1.7; }
.text-body    { font-size: 1rem;     line-height: 1.6; }
.text-sm      { font-size: 0.875rem; line-height: 1.5; }
.text-xs      { font-size: 0.75rem;  line-height: 1.4; }

.text-gold    { color: var(--gold); }
.text-secondary { color: var(--text-secondary); }
.text-muted   { color: var(--text-muted); }

.gradient-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

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

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

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

.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }
.gap-lg       { gap: var(--space-lg); }
.gap-xl       { gap: var(--space-xl); }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  margin: var(--space-lg) auto;
}

/* ---------- Background Decorations ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-orb-gold {
  background: radial-gradient(circle, rgba(245,166,35,0.3) 0%, transparent 70%);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ---------- Selection ---------- */
::selection {
  background: rgba(245,166,35,0.3);
  color: var(--text-primary);
}

/* ---------- Keyframes ---------- */
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245,166,35,0.2); }
  50%       { box-shadow: 0 0 40px rgba(245,166,35,0.4), 0 0 80px rgba(245,166,35,0.15); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes line-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Reveal Animations (driven by JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

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

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

.stagger-children.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
.stagger-children.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.15s; }
.stagger-children.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.25s; }
.stagger-children.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.35s; }
.stagger-children.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.45s; }
.stagger-children.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.55s; }
.stagger-children.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:0.65s; }
.stagger-children.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:0.75s; }
