/* Nerloma — Luxury perfume boutique coming soon
   UI UX Pro Max: Waitlist + Luxury Serif (Cormorant) + noir/gold/rose */

:root {
  --color-bg: #0A0708;
  --color-bg-soft: #120E10;
  --color-fg: #F7F0E8;
  --color-muted: #B8A99A;
  --color-gold: #D4AF6A;
  --color-gold-soft: #E8D0A0;
  --color-gold-deep: #A67C3D;
  --color-rose: #C9A0A0;
  --color-rose-deep: #8F6A6A;
  --color-line: rgba(247, 240, 232, 0.12);
  --color-danger: #E8A0A0;
  --color-success: #B8D4B8;

  --font-display: "Yekan Bakh", Tahoma, sans-serif;
  --font-brand: "Philosopher", "Yekan Bakh", Georgia, serif;
  --font-body: "Yekan Bakh", Tahoma, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --header-h: 4.75rem;
}

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

html {
  color-scheme: dark;
  direction: rtl;
}

body {
  margin: 0;
  min-height: 100dvh;
  direction: rtl;
  text-align: right;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}

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

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: #1A1208;
  border-radius: 0.35rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Atmosphere / video background —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(165deg, #0A0708 0%, #120E10 48%, #0A0708 100%);
}

.bg-videos {
  position: absolute;
  inset: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  filter: saturate(1.08) contrast(1.06) brightness(0.82);
  transform: scale(1.02);
}

.bg-video.is-active {
  opacity: 1;
}

#orb-canvas {
  display: none;
}

.atmosphere__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 7, 8, 0.55) 0%,
    rgba(10, 7, 8, 0.35) 35%,
    rgba(10, 7, 8, 0.45) 60%,
    rgba(10, 7, 8, 0.78) 100%
  );
}

.atmosphere__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  background-size: 160px;
  mix-blend-mode: overlay;
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(10, 7, 8, 0.72) 100%);
}

html.bg-static .bg-videos {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    transition: none;
    animation: none;
  }
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3.25rem);
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
  color: var(--color-gold);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.85rem;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-fg);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - 4.25rem);
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
}

.hero__content {
  width: min(100%, 42rem);
  direction: rtl;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 1.15s var(--ease-out) 0.2s forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(165deg, #FFF8EC 0%, var(--color-gold-soft) 35%, var(--color-gold) 68%, var(--color-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px rgba(212, 175, 106, 0.2));
}

.hero__headline {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-fg);
}

.hero__support {
  margin: 0.7rem auto 0;
  max-width: 30rem;
  color: var(--color-muted);
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.85;
}

/* Fragrance notes strip — not cards, linear scent story */
.notes {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  direction: rtl;
  gap: 0.55rem 0.85rem;
  margin: 1.35rem auto 0;
  padding: 0;
  max-width: 34rem;
}

.notes__item {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(247, 240, 232, 0.72);
}

.notes__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.55;
}

/* —— Countdown —— */
.countdown {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  direction: rtl;
  gap: clamp(0.25rem, 1.2vw, 0.65rem);
  margin: 1.65rem auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(212, 175, 106, 0.22);
  border-radius: 0.15rem;
  background: linear-gradient(180deg, rgba(247, 240, 232, 0.05), rgba(247, 240, 232, 0.02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 236, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.countdown__unit {
  min-width: clamp(3.2rem, 11vw, 4.4rem);
  padding: 0.25rem 0.35rem;
}

.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--color-gold-soft);
  transition: color 280ms var(--ease-out);
}

.countdown__value.is-tick {
  color: #fff;
}

.countdown__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.countdown__sep {
  width: 1px;
  align-self: stretch;
  margin: 0.45rem 0;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 106, 0.35), transparent);
}

.countdown__deadline {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  gap: 0.65rem 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.25rem) 1.6rem;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  border-top: 1px solid rgba(247, 240, 232, 0.06);
}

.site-footer p {
  margin: 0;
}

/* —— Responsive —— */
@media (max-width: 560px) {
  :root {
    --header-h: 3.85rem;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .hero__brand {
    font-size: clamp(2.75rem, 15vw, 3.6rem);
  }

  .notes {
    gap: 0.4rem 0.6rem;
    margin-top: 1rem;
  }

  .notes__item {
    font-size: 0.82rem;
  }

  .countdown {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0.5rem;
  }

  .countdown__unit {
    min-width: 0;
    flex: 1;
  }

  .countdown__value {
    font-size: 1.4rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
