/* BeforeStay — Home Screen v7
   Dark luxury editorial · Pure CSS background · No external images
   Cormorant serif · Jost sans · Animated rings centerpiece
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0c0804; }
body { -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }

:root {
  --gold:   #c49228;
  --cream:  #ede4d4;
  --muted:  #8a7860;
  --serif:  'Cormorant', Georgia, serif;
  --sans:   'Jost', system-ui, sans-serif;
}

/* ═══════════════════════════════════════
   BACKGROUND — 100% CSS, zero images
═══════════════════════════════════════ */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50%   0%,  #2c1a06 0%, transparent 55%),
    radial-gradient(ellipse  70% 55% at  0%  40%,  #1c0e04 0%, transparent 60%),
    radial-gradient(ellipse  70% 55% at 100% 60%,  #180c04 0%, transparent 60%),
    radial-gradient(ellipse 100% 70% at 50% 105%,  #281606 0%, transparent 60%),
    #0c0804;
}
/* Vignette */
.bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 75% at 50% 42%, transparent 25%, rgba(6,3,1,0.72) 100%);
}
/* Grain */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ═══════════════════════════════════════
   ABSTRACT RINGS — the visual centerpiece
═══════════════════════════════════════ */
.rings {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}
.r1 {
  width: 360px; height: 360px; top: -60px;
  border: 1px solid rgba(196,146,40,0.09);
  box-shadow: inset 0 0 80px rgba(196,146,40,0.025);
  animation: rBreathe 9s ease-in-out infinite;
}
.r2 {
  width: 240px; height: 240px; top: -20px;
  border: 1px solid rgba(196,146,40,0.15);
  animation: rBreathe 9s 1.8s ease-in-out infinite;
}
.r3 {
  width: 140px; height: 140px; top: 20px;
  border: 1px solid rgba(196,146,40,0.24);
  background: radial-gradient(ellipse at center, rgba(196,146,40,0.07) 0%, transparent 70%);
  animation: rBreathe 9s 3.6s ease-in-out infinite;
}
/* Gold glow dot at center of rings */
.ring-glow {
  position: absolute;
  width: 6px; height: 6px;
  left: 50%; top: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px 6px rgba(196,146,40,0.35), 0 0 60px 20px rgba(196,146,40,0.12);
  animation: glowPulse 3s ease-in-out infinite;
}
/* Thin horizon */
.horizon {
  position: absolute;
  top: 38%; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(196,146,40,0.15) 25%,
    rgba(196,146,40,0.32) 50%,
    rgba(196,146,40,0.15) 75%, transparent 100%);
}

@keyframes rBreathe {
  0%,100% { opacity:.7; transform: translateX(-50%) scale(1); }
  50%     { opacity:1;  transform: translateX(-50%) scale(1.04); }
}
@keyframes glowPulse {
  0%,100% { opacity:.7; box-shadow: 0 0 18px 5px rgba(196,146,40,0.30), 0 0 50px 15px rgba(196,146,40,0.10); }
  50%     { opacity:1;  box-shadow: 0 0 28px 9px rgba(196,146,40,0.50), 0 0 80px 25px rgba(196,146,40,0.18); }
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
#home {
  position: relative; z-index: 10;
  height: 100svh;
  max-width: 430px; margin: 0 auto;
  display: flex; flex-direction: column;
}

/* ── TOP BAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
  animation: aFadeIn .7s ease both;
}
.lang-sw {
  display: flex;
  border: 1px solid rgba(196,146,40,0.22);
  border-radius: 3px; overflow: hidden;
}
.lb {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; color: rgba(196,146,40,.5);
  padding: 5px 12px; transition: all .2s;
}
.lb.on { background: var(--gold); color: #fff; letter-spacing: .10em; }
.top-tag {
  font-family: var(--sans); font-size: 9px; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(196,146,40,.40);
}

/* ── MASTHEAD (middle — rings area) ── */
.masthead {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: clamp(20px, 4vh, 32px);
  text-align: center;
}

.before-label {
  font-family: var(--sans); font-size: 9px; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(196,146,40,.50);
  margin-bottom: 10px;
  animation: aFadeIn .6s .35s ease both; opacity: 0;
}

/* THE LOGO — this is the hero */
.logo {
  line-height: 1;
  animation: aFadeUp .9s .4s ease both; opacity: 0;
  margin-bottom: 10px;
}
.l-stay {
  display: block;
  font-family: var(--serif);
  font-size: clamp(76px, 21vw, 100px);
  font-weight: 300;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: .92;
  /* Subtle top-lit effect */
  text-shadow:
    0 -1px 0 rgba(240,224,192,.08),
    0  2px 40px rgba(196,146,40,.06);
}
.l-or {
  display: block;
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(24px, 6vw, 32px);
  color: var(--gold);
  letter-spacing: .18em;
  line-height: 1.6;
  text-shadow: 0 0 30px rgba(196,146,40,.45);
}
.l-go {
  display: block;
  font-family: var(--serif);
  font-size: clamp(76px, 21vw, 100px);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  /* GO fades from cream to gold — decision feels different */
  background: linear-gradient(180deg, var(--cream) 0%, #d4a840 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: .92;
  text-shadow: none;
}

/* Divider line */
.divider {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(196,146,40,.45), transparent);
  margin: 8px auto 10px;
  animation: aFadeIn .5s .85s ease both; opacity: 0;
}

/* Rotating empathy line */
.empathy-wrap {
  min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  animation: aFadeIn .5s .95s ease both; opacity: 0;
}
.empathy {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(16px, 4.2vw, 19px);
  color: rgba(200,184,152,.75);
  line-height: 1.5; text-align: center;
  max-width: 268px;
  transition: opacity .38s ease, transform .38s ease;
}
.empathy.out { opacity: 0; transform: translateY(-5px); }
.empathy.in  { opacity: 1; transform: translateY(0); }

/* ── CTA SECTION ── */
.cta {
  padding: 0 18px clamp(20px, 4.5vh, 36px);
  display: flex; flex-direction: column; gap: 9px;
  animation: aFadeUp .7s 1.05s ease both; opacity: 0;
}

.cta-label {
  text-align: center;
  font-family: var(--sans); font-size: 9px; font-weight: 300;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(180,160,120,.38);
  margin-bottom: 2px;
}

/* DOUBTS CARD */
.c-doubts {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg,
    rgba(196,146,40,.13) 0%,
    rgba(196,146,40,.05) 100%);
  border: 1px solid rgba(196,146,40,.30);
  border-radius: 4px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), border-color .2s, background .2s;
}
.c-doubts::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(196,146,40,.4));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .28s ease;
}
.c-doubts:hover { transform: translateY(-2px); border-color: rgba(196,146,40,.55); }
.c-doubts:hover::before { transform: scaleY(1); }
.c-doubts:active { transform: scale(.975); }

/* HAPPY CARD */
.c-happy {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(240,232,216,.14);
  border-radius: 4px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), border-color .2s, background .2s;
}
.c-happy::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: rgba(220,210,190,.45);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .28s ease;
}
.c-happy:hover { transform: translateY(-2px); border-color: rgba(240,232,216,.28); background: rgba(255,255,255,.055); }
.c-happy:hover::before { transform: scaleY(1); }
.c-happy:active { transform: scale(.975); }

/* Card shimmer */
.c-doubts::after, .c-happy::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%);
  background-size: 200% auto; background-position: -100% center;
  transition: background-position .6s ease;
  pointer-events: none;
}
.c-doubts:hover::after, .c-happy:hover::after { background-position: 200% center; }

.c-icon {
  font-size: 10px; flex-shrink: 0; opacity: .6;
  font-family: var(--sans); font-weight: 300; letter-spacing: .1em;
  border: 1px solid currentColor; border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.c-doubts .c-icon { color: rgba(196,146,40,.7); }
.c-happy  .c-icon { color: rgba(200,184,152,.45); }

.c-body { flex: 1; text-align: left; }
.c-title {
  font-family: var(--serif);
  font-size: clamp(18px, 4.4vw, 22px); font-weight: 600;
  letter-spacing: .01em; line-height: 1.15;
  margin-bottom: 3px;
}
.c-doubts .c-title { color: #f0d898; }
.c-happy  .c-title { color: rgba(232,220,200,.82); }
.c-desc {
  font-family: var(--sans); font-size: 11.5px; font-weight: 300;
  letter-spacing: .02em; line-height: 1.35;
}
.c-doubts .c-desc { color: rgba(196,170,110,.60); }
.c-happy  .c-desc { color: rgba(180,162,132,.42); }

.c-arrow {
  font-size: 13px; flex-shrink: 0; opacity: .35;
  transition: transform .2s, opacity .2s;
}
.c-doubts .c-arrow { color: var(--gold); }
.c-happy  .c-arrow { color: rgba(200,184,152,.6); }
.c-doubts:hover .c-arrow,
.c-happy:hover  .c-arrow { transform: translateX(4px); opacity: .8; }

/* ── FOOTNOTE ── */
.footnote {
  padding: 0 20px clamp(14px, 3vh, 24px);
  text-align: center;
  animation: aFadeIn .5s 1.25s ease both; opacity: 0;
}
.fn-trust {
  font-family: var(--sans); font-size: 9.5px; font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(160,140,110,.28);
}
.fn-proof {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 5px;
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(160,140,110,.38); letter-spacing: .03em;
}
.fn-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: .65;
  box-shadow: 0 0 8px 2px rgba(196,146,40,.4);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100%{ opacity:.5; box-shadow:0 0 6px 2px rgba(196,146,40,.3); }
  50%    { opacity:.9; box-shadow:0 0 14px 4px rgba(196,146,40,.55); }
}

/* ── ANIMATIONS ── */
@keyframes aFadeIn {
  from{ opacity:0; } to{ opacity:1; }
}
@keyframes aFadeUp {
  from{ opacity:0; transform:translateY(16px); }
  to  { opacity:1; transform:translateY(0); }
}