/* =============================================
   BIBI GRACE FOUNDATION — COMING SOON
   Aesthetic: Refined Luxury / Warm Gold & Ivory
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97B;
  --gold-pale:   #F5E6C0;
  --cream:       #FAF6EE;
  --ivory:       #F3EDE0;
  --brown-deep:  #2A1F0F;
  --brown-mid:   #4A3520;
  --brown-soft:  #7A5C3A;
  --warm-white:  #FFFDF7;
  --shadow:      rgba(42, 31, 15, 0.18);
  
  /* Animation durations */
  --animation-fast: 0.15s;
  --animation-normal: 0.3s;
  --animation-slow: 1s;
  
  /* Responsive breakpoints */
  --mobile-max: 480px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--brown-deep);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(201,168,76,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 85%, rgba(201,168,76,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 50%, var(--cream) 40%, var(--ivory) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ---- Grain ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  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-size: 180px 180px;
}

/* ---- Petals / Floating particles ---- */
.petals {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -60px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: fall linear infinite;
}

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

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  5%   { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ---- Utility Classes ---- */
.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;
}

.focus-visible:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Main container ---- */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem 2rem;
  text-align: center;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Header / Logo ---- */
.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s ease 0.1s both;
}

.logo-ring {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
}

.logo-text {
  margin-top: -40px;
  position: relative;
}

.logo-abbr {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}

/* ---- Main ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp 1s ease 0.3s both;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
  animation: fadeUp 1s ease 0.4s both;
}

.title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--brown-soft);
  max-width: 480px;
  animation: fadeUp 1s ease 0.5s both;
}

/* ---- Divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  animation: fadeUp 1s ease 0.55s both;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ---- Countdown ---- */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: fadeUp 1s ease 0.65s both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.count-box {
  width: clamp(72px, 14vw, 110px);
  height: clamp(72px, 14vw, 110px);
  background: linear-gradient(145deg, var(--warm-white), var(--ivory));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 0 0 1px rgba(201,168,76,0.08);
  position: relative;
  overflow: hidden;
}

.count-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.count {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--brown-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform var(--animation-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.count.flip {
  transform: scale(1.15);
}

.count-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-light);
  margin-top: clamp(14px, 2.5vw, 26px);
  line-height: 1;
  user-select: none;
}

/* ---- Notify ---- */
.notify-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 1s ease 0.75s both;
}

.notify-text {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--brown-soft);
}

.notify-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 3px;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 2px 12px var(--shadow);
  width: min(360px, 90vw);
}

.email-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.8rem 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--brown-deep);
  letter-spacing: 0.02em;
}

.email-input::placeholder {
  color: var(--brown-soft);
  opacity: 0.5;
}

.notify-btn {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--brown-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  transition: filter var(--animation-fast) ease, transform var(--animation-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.notify-btn:hover,
.notify-btn:focus {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.notify-btn:active {
  transform: scale(0.98);
}

.success-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  display: none;
  animation: fadeUp 0.5s ease both;
}

.success-msg.show {
  display: block;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  animation: fadeUp 1s ease 0.9s both;
}

.footer p {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--brown-soft);
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--animation-fast) ease, transform var(--animation-normal) ease;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
  opacity: 1;
  transform: translateY(-2px);
}

/* ---- Responsive Design ---- */
@media (max-width: 480px) {
  .countdown {
    gap: 0.3rem;
  }
  
  .countdown-sep {
    font-size: 1.5rem;
  }
  
  .notify-form {
    width: 95vw;
  }
  
  .main {
    padding: 1.5rem 0;
  }
  
  .container {
    padding: 2rem 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .petal {
    display: none;
  }
}
