/* ==========================================
   KENSTACK — Global Design System
   ========================================== */

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

:root {
  --bg-primary: #ffffff;
  --bg-dark: #080808;
  --bg-dark-2: #0e0e0e;
  --bg-dark-3: #141414;
  --gold: #D4AF37;
  --gold-light: #f0d060;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.4);
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.07);
  --white-mid: rgba(255,255,255,0.12);
  --text-dark: #0a0a0a;
  --text-muted: #6b7280;
  --text-light: rgba(255,255,255,0.7);
  --text-lighter: rgba(255,255,255,0.45);
  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   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.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }

p {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-muted);
}

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

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--text-dark);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8960c);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(212,175,55,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-dark);
  transform: translateY(-2px);
  background: rgba(0,0,0,0.03);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================
   SCROLL ANIMATIONS — Base States
   ========================================== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="slide-left"] { transform: translateX(50px); }
[data-animate="slide-right"] { transform: translateX(-50px); }
[data-animate="scale-in"] { transform: scale(0.88); }
[data-animate="fade"] { transform: none; }

[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }

/* ==========================================
   SECTION DIVIDER
   ========================================== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
  margin: 0;
}

/* ==========================================
   GLOW LINE
   ========================================== */
.glow-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c9a72b; border-radius: 3px; }

/* ==========================================
   SELECTION
   ========================================== */
::selection {
  background: rgba(212,175,55,0.2);
  color: var(--text-dark);
}
