/* ═══════════════════════════════════════════
   ENES KOSELER — DESIGN SYSTEM
   Dark Luxury Consulting Theme
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Background */
  --bg-primary: #0a0a0f;
  --bg-secondary: #101018;
  --bg-elevated: #16161f;
  --bg-glass: rgba(16, 16, 31, 0.72);
  --bg-glass-light: rgba(200, 165, 90, 0.06);

  /* Text */
  --text-primary: #f0ece4;
  --text-secondary: #9e97a7;
  --text-muted: #5a5568;
  --text-inverse: #0a0a0f;

  /* Accents */
  --gold: #c8a55a;
  --gold-light: #e0c97e;
  --copper: #d4845e;
  --copper-deep: #a35a34;
  --teal: #2dd4bf;
  --teal-deep: #0f6b63;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #c8a55a 0%, #d4845e 100%);
  --gradient-gold-h: linear-gradient(90deg, #c8a55a 0%, #d4845e 50%, #c8a55a 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #101018 100%);
  --gradient-hero: linear-gradient(160deg, rgba(10,10,15,0.95) 0%, rgba(16,16,31,0.6) 50%, rgba(10,10,15,0.85) 100%);
  --gradient-section: linear-gradient(180deg, #0a0a0f 0%, #12121c 50%, #0a0a0f 100%);
  --gradient-card: linear-gradient(145deg, rgba(200,165,90,0.08) 0%, rgba(16,16,31,0) 60%);

  /* Borders */
  --border-subtle: rgba(200, 165, 90, 0.10);
  --border-medium: rgba(200, 165, 90, 0.18);
  --border-strong: rgba(200, 165, 90, 0.32);

  /* Shadows */
  --glow-gold: 0 0 60px rgba(200, 165, 90, 0.12);
  --glow-gold-strong: 0 0 80px rgba(200, 165, 90, 0.22);
  --glow-teal: 0 0 40px rgba(45, 212, 191, 0.10);
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 8px 32px rgba(200, 165, 90, 0.18);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --header-h: 80px;
  --container: 1240px;
  --container-narrow: 860px;
  --gap: clamp(16px, 3vw, 32px);
  --section-pad: clamp(80px, 12vh, 160px);
  --radius: 4px;
  --radius-lg: 12px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-normal: 0.4s;
  --dur-slow: 0.8s;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* ── Lenis Smooth Scroll ── */
.lenis,
.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 200;
  pointer-events: none;
  transform-origin: left;
  will-change: width;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

[v-cloak] {
  display: none !important;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
}

h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.15;
}

h4 {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
}

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

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

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Eyebrow / Label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gradient-gold);
}

/* ── Section Numbering ── */
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ── Container ── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Section Spacing ── */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

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

.divider--gold {
  background: var(--gradient-gold-h);
  opacity: 0.3;
}

/* ── Gold Line Accent ── */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
}

/* ── Glass Panel ── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
}

/* ── Scroll Padding for fixed header ── */
html {
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
