/* ======================================================
   ImperiumAO Landing — Design System (v0 Migration)
   ====================================================== */

/* --- Custom Properties --- */
:root {
  --background: #07070c;
  --foreground: #ede6da;
  --card: #0e0e16;
  --card-foreground: #ede6da;
  --primary: #c9a84c;
  --primary-foreground: #07070c;
  --secondary: #151520;
  --secondary-foreground: #ede6da;
  --muted: #151520;
  --muted-foreground: #7a756b;
  --border: #1e1e2e;
  --ring: #c9a84c;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a68a3a;
  --crimson: #8b2232;
  --crimson-light: #b83a4e;
  --dark-surface: #0e0e16;
  --dark-deeper: #050509;
  --radius: 0.5rem;
  --font-sans: 'Inter', 'Inter Fallback', sans-serif;
  --font-serif: 'Inter', 'Inter Fallback', sans-serif;
}

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

/* --- Base Reset --- */
*, *::before, *::after {
  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-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* --- Typography Utilities --- */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

.text-gold-gradient {
  background: linear-gradient(135deg, #dfc06a 0%, #c9a84c 40%, #a68a3a 70%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.tracking-wide   { letter-spacing: 0.08em; }
.tracking-wider  { letter-spacing: 0.2em; }
.tracking-widest { letter-spacing: 0.3em; }
.uppercase       { text-transform: uppercase; }

/* --- Glow Effects --- */
.glow-gold {
  box-shadow:
    0 0 16px rgba(201,168,76,.25),
    0 0 48px rgba(201,168,76,.08),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.glow-gold-text {
  text-shadow: 0 0 24px rgba(201,168,76,.45), 0 0 64px rgba(201,168,76,.15);
}

.glow-gold-soft {
  box-shadow:
    0 0 40px rgba(201,168,76,.12),
    0 0 80px rgba(201,168,76,.05);
}

/* --- Card System --- */
.card-premium {
  background: linear-gradient(168deg, rgba(14,14,22,.95) 0%, rgba(7,7,12,.98) 100%);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 4px 16px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.02);
  transition: all .4s cubic-bezier(.16,1,.3,1);
}

.card-premium:hover {
  border-color: rgba(201,168,76,.2);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 8px 32px rgba(0,0,0,.4),
    0 0 48px rgba(201,168,76,.06),
    inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(-2px);
}

/* --- Texture Overlay --- */
.texture-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,.15) 25%,
    rgba(201,168,76,.3) 50%,
    rgba(201,168,76,.15) 75%,
    transparent
  );
}

/* --- Decorative Diamond Rule --- */
.diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.diamond-rule::before,
.diamond-rule::after {
  content: '';
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.3));
}

.diamond-rule::after {
  background: linear-gradient(90deg, rgba(201,168,76,.3), transparent);
}

.diamond-rule .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.4;
}

/* --- Layout Utilities --- */
.container-narrow {
  max-width: 80rem; /* 1280px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* --- Animations --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up .7s cubic-bezier(.16,1,.3,1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes ping-dot {
  0%   { transform: scale(1); opacity: 1; }
  75%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.animate-ping-dot {
  animation: ping-dot 1.5s cubic-bezier(0,0,.2,1) infinite;
}

/* --- Icon Boxes --- */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,.1);
  background: rgba(201,168,76,.06);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

/* --- Visually Hidden --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
