/* ================================================================
   NYWASA — Coming Soon Landing Page
   style.css
   
   Architecture:
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Grain Overlay
   4. Hero & Background
   5. Brand / Logo
   6. Headline Block
   7. Countdown Timer
   8. Email Capture
   9. Divider
   10. Social Links
   11. Footer
   12. Animations & Keyframes
   13. Utility Classes
   14. Responsive Breakpoints
   ================================================================ */


/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   REPLACE: Update colors, fonts here to re-theme the entire page
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:         #0E0E0E;
  --color-surface:    #141414;
  --color-glass:      rgba(255, 255, 255, 0.04);
  --color-glass-border: rgba(201, 166, 107, 0.18);
  --color-text:       #F5F2EB;
  --color-text-muted: rgba(245, 242, 235, 0.48);
  --color-text-sub:   rgba(245, 242, 235, 0.72);
  --color-gold:       #C9A66B;
  --color-gold-light: #DFC08A;
  --color-gold-dim:   rgba(201, 166, 107, 0.24);
  --color-gold-glow:  rgba(201, 166, 107, 0.08);
  --color-error:      #E07070;
  --color-success:    #8FAF85;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', system-ui, sans-serif;

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

  /* Motion */
  --ease-luxury:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 240ms;
  --duration-med:  480ms;
  --duration-slow: 800ms;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 100px;
}


/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

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

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

input {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Focus-visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ----------------------------------------------------------------
   3. GRAIN OVERLAY — adds luxury film texture
   ---------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.032;
  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.9' 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: 128px 128px;
}


/* ----------------------------------------------------------------
   4. HERO & BACKGROUND
   REPLACE: Update the background-image URL below to your own image.
   Recommended: a high-quality image of elegant gift wrapping,
   ribbon, velvet, bokeh lights, or luxury lifestyle.
   Free options: unsplash.com, pexels.com (search "luxury gift",
   "velvet texture", "bokeh gold")
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* REPLACE: Swap this URL with your background image URL or local path */
  background-image: url('BG.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  padding: var(--space-xl) var(--space-md);
  padding-bottom: 6rem;
}

/* Multi-layer dark overlay for depth and readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__overlay--radial {
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(14,14,14,0.55) 0%,
    rgba(14,14,14,0.92) 100%
  );
  z-index: 1;
}

.hero__overlay--bottom {
  background: linear-gradient(
    to top,
    rgba(14,14,14,1) 0%,
    rgba(14,14,14,0.3) 40%,
    transparent 70%
  );
  z-index: 2;
}

.hero__overlay--top {
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.7) 0%,
    transparent 30%
  );
  z-index: 2;
}

/* Ambient glow orbs for atmosphere */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.orb--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(201,166,107,0.07) 0%, transparent 70%);
  animation-duration: 15s;
}

.orb--2 {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  bottom: 5%;
  left: -5%;
  background: radial-gradient(circle, rgba(201,166,107,0.05) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -7s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.08); }
}

/* Hero content wrapper */
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}


/* ----------------------------------------------------------------
   5. BRAND / LOGO
   ---------------------------------------------------------------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fade-up 1s var(--ease-luxury) 0.1s both;
}

.brand__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.brand__mark-line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.brand__diamond {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  transform: rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--color-gold);
}

.brand__name {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  color: var(--color-text);
  text-transform: uppercase;
}

.brand__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--color-gold);
  letter-spacing: 0.2em;
}


/* ----------------------------------------------------------------
   6. HEADLINE BLOCK
   ---------------------------------------------------------------- */
.headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  animation: fade-up 1s var(--ease-luxury) 0.3s both;
}

.headline-block__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.eyebrow-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

.eyebrow-text {
  opacity: 0.8;
}

.headline-block__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* The italic "Thoughtful" word */
.headline-block__title em {
  font-style: bold;
  color: var(--color-gold);
  display: inline-block;
  font-weight: 300;
}

.headline-block__sub {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  max-width: 46ch;
  line-height: 1.75;
}


/* ----------------------------------------------------------------
   7. COUNTDOWN TIMER
   ---------------------------------------------------------------- */
.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  animation: fade-up 1s var(--ease-luxury) 0.5s both;
}

.countdown__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 16vw, 110px);
  height: clamp(80px, 18vw, 120px);
  padding: var(--space-sm) var(--space-xs);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-smooth),
              border-color var(--duration-fast) var(--ease-smooth);
}

.countdown__card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,166,107,0.38);
}

.countdown__card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, var(--color-gold-dim) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--duration-med) var(--ease-smooth);
  pointer-events: none;
}

.countdown__card:hover .countdown__card-glow {
  opacity: 1;
}

.countdown__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.02em;
  /* Flip animation applied via JS class */
  transition: opacity 200ms ease;
}

/* Class toggled by JS for tick animation */
.countdown__number.tick {
  animation: count-tick 350ms var(--ease-luxury);
}

@keyframes count-tick {
  0%   { transform: translateY(-6px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.countdown__label {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.3rem;
  opacity: 0.85;
}

.countdown__separator {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--color-gold);
  opacity: 0.45;
  margin-bottom: 1.2rem; /* align with numbers, not labels */
  animation: sep-pulse 2s ease-in-out infinite;
}

@keyframes sep-pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.15; }
}


/* ----------------------------------------------------------------
   8. EMAIL CAPTURE
   ---------------------------------------------------------------- */
.email-section {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fade-up 1s var(--ease-luxury) 0.7s both;
}

.email-section__invite {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--color-text-sub);
  letter-spacing: 0.02em;
}

.email-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-form__row {
  display: flex;
  gap: 0;
  width: 100%;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
}

.email-form__row:focus-within {
  border-color: rgba(201,166,107,0.5);
  box-shadow: 0 0 0 3px rgba(201,166,107,0.08),
              0 8px 32px rgba(0,0,0,0.4);
}

.email-form__input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.email-form__input::placeholder {
  color: var(--color-text-muted);
}

.email-form__input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #1a1a1a inset;
  -webkit-text-fill-color: var(--color-text);
}

.email-form__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.6rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, #B8924A 100%);
  color: #0E0E0E;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.email-form__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.email-form__btn:hover::before { opacity: 1; }

.email-form__btn:hover {
  box-shadow: 0 4px 20px rgba(201,166,107,0.32);
  transform: translateY(-1px);
}

.email-form__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.email-form__btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-arrow {
  font-size: 1rem;
  transition: transform var(--duration-fast) ease;
  display: inline-block;
}

.email-form__btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Error state */
.email-form__error {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-error);
  letter-spacing: 0.03em;
  text-align: center;
  min-height: 1.2em;
  transition: opacity var(--duration-fast) ease;
}

/* Success state */
.email-form__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--space-sm) var(--space-md);
  background: rgba(143, 175, 133, 0.08);
  border: 1px solid rgba(143, 175, 133, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  animation: fade-up 0.5s var(--ease-luxury) both;
}

.success-icon {
  color: var(--color-gold);
  font-size: 0.8rem;
  animation: spin-once 0.6s var(--ease-luxury);
}

@keyframes spin-once {
  from { transform: rotate(-180deg) scale(0); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}

.email-section__privacy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}


/* ----------------------------------------------------------------
   9. DIVIDER
   ---------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 360px;
  animation: fade-up 1s var(--ease-luxury) 0.9s both;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-glass-border), transparent);
}

.divider__ornament {
  color: var(--color-gold);
  font-size: 0.55rem;
  opacity: 0.7;
}


/* ----------------------------------------------------------------
   10. SOCIAL LINKS
   ---------------------------------------------------------------- */
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  animation: fade-up 1s var(--ease-luxury) 1.1s both;
}

.social__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.social__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

.social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.social__link:hover {
  color: var(--color-gold);
  transform: translateY(-4px);
}

.social__icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.social__link:hover .social__icon-wrap {
  background: var(--color-gold-glow);
  border-color: rgba(201,166,107,0.35);
  box-shadow: 0 0 16px rgba(201,166,107,0.14);
}

.social__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
}

.social__name {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------------- */
.hero__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem var(--space-md);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: fade-in 1.5s var(--ease-luxury) 1.4s both;
}

.hero__footer-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(201,166,107,0.4);
}


/* ----------------------------------------------------------------
   12. KEYFRAME ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}


/* ----------------------------------------------------------------
   13. UTILITY CLASSES
   ---------------------------------------------------------------- */
.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;
}


/* ----------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------- */

/* ---- Mobile S (320px–480px) ---- */
@media (max-width: 480px) {
  .hero {
    background-attachment: scroll; /* Fixes iOS parallax jank */
    padding: var(--space-xl) var(--space-sm);
    padding-bottom: 5rem;
    gap: var(--space-md);
  }

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

  .brand__name {
    letter-spacing: 0.4em;
  }

  .headline-block__title {
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown__card {
    width: clamp(62px, 19vw, 78px);
    height: clamp(72px, 21vw, 88px);
  }

  .countdown__separator {
    font-size: 1.4rem;
  }

  .email-form__btn {
    padding: 1rem 1.1rem;
    letter-spacing: 0.06em;
  }

  .btn-arrow {
    display: none;
  }

  .social__links {
    gap: 1rem;
  }

  .social__name {
    font-size: 0.55rem;
  }
}

/* ---- Tablet (481px–768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: var(--space-xl) var(--space-md);
    padding-bottom: 5.5rem;
  }

  .headline-block__title {
    font-size: clamp(3.5rem, 10vw, 5rem);
  }
}

/* ---- Desktop (769px+) ---- */
@media (min-width: 769px) {
  .hero__content {
    gap: var(--space-xl);
  }

  .email-form__row {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---- Large Desktop (1400px+) ---- */
@media (min-width: 1400px) {
  .hero {
    background-image: url('BG.png');
    /* REPLACE: use a 2400px wide version for retina displays */
  }
}

/* ---- Reduced Motion Preference ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb {
    animation: none;
  }
}

/* ---- High Contrast Mode ---- */
@media (prefers-contrast: high) {
  :root {
    --color-glass-border: rgba(201, 166, 107, 0.5);
    --color-text-muted: rgba(245, 242, 235, 0.75);
    --color-text-sub: rgba(245, 242, 235, 0.9);
  }
}
