:root{
  --text:#f8f5ee;
  --muted:rgba(248,245,238,.74);
  --card:rgba(17,16,13,.52);
  --border:rgba(255,255,255,.16);
  --gold:#c7a46b;
  --gold-soft:#ead8b5;
  --shadow:0 30px 80px rgba(0,0,0,.38);
}

html.light{
  --text:#171611;
  --muted:rgba(23,22,17,.7);
  --card:rgba(248,245,237,.72);
  --border:rgba(255,255,255,.65);
  --gold:#9d7745;
  --gold-soft:#6f4f29;
  --shadow:0 25px 65px rgba(60,45,20,.18);
}

*{box-sizing:border-box}

html,body{margin:0;min-height:100%;}

body{
  min-height:100svh;
  color:var(--text);
  font-family:"Manrope",sans-serif;
  overflow-x:hidden;
}

a{color:inherit}

.background,
.background video,
.fallback,
.shade,
.grain{
  position:fixed;
  inset:0;
}

.background{
  z-index:-2;
  overflow:hidden;
  background:#11100d;
}

.background video{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.78;
}

.fallback{
  background:
    radial-gradient(circle at 20% 15%,rgba(199,164,107,.28),transparent 30%),
    radial-gradient(circle at 85% 75%,rgba(126,101,62,.18),transparent 32%),
    linear-gradient(135deg,#11110e 0%,#27251d 52%,#0d0e0c 100%);
}

.shade{
  background:
    linear-gradient(180deg,rgba(4,4,3,.36),rgba(4,4,3,.72)),
    radial-gradient(circle at center,transparent 10%,rgba(0,0,0,.35) 100%);
}

html.light .shade{
  background:
    linear-gradient(180deg,rgba(242,236,224,.18),rgba(226,215,196,.5)),
    radial-gradient(circle at center,transparent 10%,rgba(217,204,182,.25) 100%);
}

.grain{
  opacity:.08;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.topbar{
  position:fixed;
  z-index:10;
  top:0;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:11px;
  font-weight:600;
  letter-spacing:.25em;
}

.brand-symbol{
  width:9px;
  height:9px;
  border:1px solid var(--gold);
  transform:rotate(45deg);
}

.theme-toggle{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:58px;
  height:34px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  background:var(--card);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  cursor:pointer;
}

.theme-toggle span{
  display:grid;
  place-items:center;
  font-size:12px;
  opacity:.58;
}

html.light .theme-toggle span:first-child,
html:not(.light) .theme-toggle span:last-child{
  opacity:1;
  border-radius:50%;
  background:rgba(255,255,255,.1);
}

main{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:100px 20px 125px;
}

.maintenance-card{
  width:min(820px,100%);
  padding:clamp(32px,6vw,68px);
  border:1px solid var(--border);
  border-radius:32px;
  background:var(--card);
  backdrop-filter:blur(24px) saturate(1.2);
  -webkit-backdrop-filter:blur(24px) saturate(1.2);
  box-shadow:var(--shadow);
  text-align:center;
  animation:rise .8s cubic-bezier(.2,.75,.2,1) both;
}

.eyebrow{
  margin:0 0 20px;
  color:var(--gold-soft);
  font-size:10px;
  font-weight:600;
  letter-spacing:.3em;
}

.availability-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:24px;
  padding:9px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.04);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 0 rgba(199,164,107,.5);
  animation:pulse 2s infinite;
}

h1{
  margin:0;
  font-family:"Playfair Display",serif;
  font-size:clamp(43px,7.5vw,82px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.035em;
}

h1 em{
  color:var(--gold-soft);
  font-weight:500;
}

.description{
  max-width:610px;
  margin:26px auto 0;
  color:var(--muted);
  font-size:clamp(15px,2vw,18px);
  line-height:1.75;
}

.countdown{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  max-width:520px;
  margin:30px auto 0;
  padding:20px 24px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(255,255,255,.04);
}

.countdown-item strong{
  display:block;
  font-family:"Playfair Display",serif;
  font-size:clamp(34px,6vw,48px);
  font-weight:500;
  line-height:1;
}

.countdown-item span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.divider{
  width:1px;
  height:42px;
  background:var(--border);
}

.actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}

.actions a{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:0 24px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:transform .25s ease,background .25s ease;
}

.actions a:hover{transform:translateY(-3px)}

.primary-button{
  background:var(--gold);
  color:#17140e;
}

.secondary-button{
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}

.location{
  margin:24px 0 0;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.14em;
  line-height:1.7;
  text-transform:uppercase;
}

.floating-whatsapp{
  position:fixed;
  z-index:12;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(88px,calc(env(safe-area-inset-bottom) + 75px));
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#25D366;
  box-shadow:0 14px 35px rgba(0,0,0,.3);
}

.floating-whatsapp svg{width:25px;fill:white}

footer{
  position:fixed;
  z-index:5;
  left:0;
  right:0;
  bottom:max(18px,env(safe-area-inset-bottom));
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
  color:var(--muted);
  font-size:10px;
}

footer p{margin:0}

footer a{
  color:var(--gold-soft);
  text-decoration:none;
}

@keyframes rise{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:none}
}

@keyframes pulse{
  70%{box-shadow:0 0 0 12px rgba(199,164,107,0)}
  100%{box-shadow:0 0 0 0 rgba(199,164,107,0)}
}

@media(max-width:640px){
  body{overflow-y:auto}

  .topbar{
    padding-top:max(16px,env(safe-area-inset-top));
  }

  .brand{
    font-size:9px;
    letter-spacing:.2em;
  }

  .theme-toggle{
    width:54px;
    height:32px;
  }

  main{
    min-height:auto;
    padding:88px 14px 150px;
  }

  .maintenance-card{
    padding:30px 18px 28px;
    border-radius:24px;
  }

  .eyebrow{
    margin-bottom:16px;
    font-size:9px;
  }

  .availability-pill{
    margin-bottom:20px;
    padding:8px 12px;
    font-size:10px;
  }

  h1{
    font-size:clamp(40px,12vw,56px);
    line-height:1.02;
  }

  .description{
    margin-top:20px;
    font-size:15px;
    line-height:1.65;
  }

  .countdown{
    margin-top:24px;
    padding:16px 10px;
    border-radius:18px;
  }

  .countdown-item strong{
    font-size:34px;
  }

  .countdown-item span{
    font-size:8px;
  }

  .divider{
    height:35px;
  }

  .actions{
    margin-top:24px;
    gap:10px;
  }

  .actions a{
    width:100%;
    min-height:50px;
  }

  .location{
    margin-top:20px;
    font-size:8px;
  }

  footer{
    position:absolute;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:0 20px;
    font-size:9px;
  }

  .floating-whatsapp{
    width:52px;
    height:52px;
    bottom:max(88px,calc(env(safe-area-inset-bottom) + 70px));
  }
}

@media(max-width:380px){
  main{padding-left:10px;padding-right:10px}
  .maintenance-card{padding-left:14px;padding-right:14px}
  h1{font-size:37px}
  .countdown-item strong{font-size:30px}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto!important}
}


/* VIDEO VISIBILITY FIX */
.background video{
  z-index:1;
}
.fallback{
  z-index:0;
  transition:opacity 1s ease;
}
.shade{
  z-index:2;
}
.grain{
  z-index:3;
}
.background.video-ready .fallback{
  opacity:0;
  pointer-events:none;
}
