/* Arorvansh — shared design tokens */
:root {
  /* Colors */
  --maroon-900: #5A1420;
  --maroon-700: #7A1E2C;
  --maroon-500: #9A2F3F;
  --maroon-50: #FBF3F4;
  --gold-600: #B8952E;
  --gold-500: #D4AF37;
  --gold-300: #E6CC7A;
  --gold-50: #FBF6E4;
  --saffron: #E88A1B;
  --ivory: #FAF8F3;
  --ivory-warm: #F5F0E6;
  --white: #FFFFFF;
  --ink-900: #1F2937;
  --ink-700: #374151;
  --ink-500: #6B7280;
  --ink-300: #D1D5DB;
  --ink-100: #F3F4F6;
  --line: rgba(31, 41, 55, 0.08);
  --line-strong: rgba(31, 41, 55, 0.16);

  /* Type */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.04), 0 1px 3px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.06), 0 2px 4px rgba(31, 41, 55, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 41, 55, 0.08), 0 4px 8px rgba(31, 41, 55, 0.04);
  --shadow-xl: 0 24px 64px rgba(31, 41, 55, 0.12), 0 8px 16px rgba(31, 41, 55, 0.06);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
  --shadow-maroon: 0 8px 24px rgba(122, 30, 44, 0.25);

  /* Spacing rhythm */
  --section-y: clamp(64px, 8vw, 128px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-900); text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500));
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

.section { padding: var(--section-y) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--maroon-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--maroon-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-maroon);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--ink-900);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Glass */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-dark {
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Utility gold rule */
.gold-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500) 20%, var(--gold-500) 80%, transparent);
}
.gold-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Placeholder tile */
.ph {
  background:
    linear-gradient(135deg, var(--ivory-warm) 0%, #EDE4D0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-lg);
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 20px, rgba(212, 175, 55, 0.05) 20px 21px);
  pointer-events: none;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(31, 41, 55, 0.15); border-radius: 999px; border: 3px solid var(--ivory); }
::-webkit-scrollbar-thumb:hover { background: rgba(31, 41, 55, 0.3); }

/* Icon base */
.icon { width: 20px; height: 20px; stroke-width: 1.6; }
