/* ═══════════════════════════════════════════════════════
   ZERMISH — Luxury Coming Soon
   Core Design System & Tokens
   ═══════════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────────── */
:root {
  /* Brand Colors */
  --gold:            #C2A367;
  --gold-light:      #D4BA82;
  --gold-dark:       #A88B4A;
  --gold-muted:      rgba(194, 163, 103, 0.35);
  --gold-glow:       rgba(194, 163, 103, 0.15);
  --gold-shimmer:    rgba(212, 186, 130, 0.08);

  --emerald:         #0A2923;
  --emerald-deep:    #061B18;
  --emerald-dark:    #041210;
  --emerald-mid:     #0D3530;
  --emerald-light:   rgba(10, 41, 35, 0.7);

  --black:           #020A08;
  --white:           #F5F0E8;
  --white-muted:     rgba(245, 240, 232, 0.6);
  --white-dim:       rgba(245, 240, 232, 0.35);

  /* Typography */
  --font-serif:      'Cormorant Garamond', 'Georgia', serif;
  --font-sans:       'Outfit', 'Helvetica Neue', sans-serif;

  /* Spacing Scale */
  --space-xs:        0.5rem;
  --space-sm:        1rem;
  --space-md:        1.5rem;
  --space-lg:        2.5rem;
  --space-xl:        4rem;
  --space-2xl:       6rem;
  --space-3xl:       10rem;

  /* Sizing */
  --nav-height:      5rem;
  --max-width:       1200px;

  /* Transitions */
  --ease-luxury:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   0.2s;
  --duration-med:    0.5s;
  --duration-slow:   0.8s;
  --duration-glacial: 1.4s;

  /* Z-Index Scale */
  --z-bg:            -1;
  --z-canvas:        0;
  --z-particles:     1;
  --z-rays:          2;
  --z-content:       10;
  --z-nav:           20;
  --z-modal:         100;

  /* Gradient interpolation */
  --in-oklab: ;
  --in-oklch: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

/* ── Reduced Motion ───────────────────────────────────── */
@property --animation-reduced {
  syntax: "*";
  inherits: false;
  initial-value: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: var(--animation-reduced) !important;
    transition-duration: 0.01s !important;
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--emerald-dark);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--gold-muted);
  color: var(--white);
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-luxury);
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Background Layers ────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%  var(--in-oklab), var(--emerald-mid), transparent 70%),
    radial-gradient(ellipse 100% 60% at 80% 80%  var(--in-oklab), var(--emerald-deep), transparent 60%),
    linear-gradient(175deg var(--in-oklab), var(--emerald-dark) 0%, var(--black) 50%, var(--emerald-deep) 100%);
}

.bg-radial-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 600px at 50% 30%,
    rgba(194, 163, 103, 0.04) 0%,
    transparent 70%
  );
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 30%,
    rgba(2, 10, 8, 0.6) 100%
  );
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: soft-light;
}

.bg-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 163, 103, 0.06) 0%,
    rgba(194, 163, 103, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-luxury);
  will-change: transform;
}

/* ── Three.js Canvas ──────────────────────────────────── */
#luxuryCanvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Particles Layer ──────────────────────────────────── */
.particles-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ── Light Rays ───────────────────────────────────────── */
.light-rays {
  position: fixed;
  inset: 0;
  z-index: var(--z-rays);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.3;
}

.ray {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gold-shimmer) 30%,
    rgba(194, 163, 103, 0.04) 50%,
    var(--gold-shimmer) 70%,
    transparent 100%
  );
  transform-origin: top center;
}

.ray--1 {
  left: 20%;
  transform: rotate(-8deg);
  animation: ray-sway 12s ease-in-out infinite;
}

.ray--2 {
  left: 55%;
  transform: rotate(5deg);
  animation: ray-sway 15s ease-in-out infinite reverse;
  opacity: 0.6;
}

.ray--3 {
  left: 80%;
  transform: rotate(-3deg);
  animation: ray-sway 18s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes ray-sway {
  0%, 100% { transform: rotate(var(--ray-start, -8deg)); }
  50%      { transform: rotate(var(--ray-end, 8deg)); }
}

.ray--1 { --ray-start: -8deg; --ray-end: 4deg; }
.ray--2 { --ray-start: 5deg;  --ray-end: -6deg; }
.ray--3 { --ray-start: -3deg; --ray-end: 7deg; }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  height: var(--nav-height);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  user-select: none;
}

.nav__tagline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white-dim);
  text-transform: uppercase;
}

.nav__dot {
  font-size: 0.4rem;
  color: var(--gold-muted);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: var(--z-content);
  padding: var(--space-md) var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
  }
}

.footer__socials,
.footer__contact,
.footer__legal,
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.footer__socials {
  gap: var(--space-md);
}

.footer__legal {
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .footer__legal {
    flex-direction: row;
    gap: var(--space-md);
  }
}

.footer__text {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white-dim);
}

.footer__link {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-luxury), transform var(--duration-fast) var(--ease-luxury);
}

.footer__link:hover {
  color: var(--gold);
}

.footer__link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-muted);
}

.footer__link--icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--duration-fast) var(--ease-luxury);
}

.footer__link--icon:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__link--icon:hover svg {
  transform: scale(1.1);
}

.footer__link--contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__link--contact svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold-muted);
  transition: color var(--duration-fast) var(--ease-luxury);
}

.footer__link--contact:hover svg {
  color: var(--gold);
}

.footer__sep {
  color: var(--white-dim);
  opacity: 0.3;
  font-size: 0.6rem;
}
