/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --bg:          #0d1125;
  --bg-2:        #131729;
  --bg-card:     #181d35;
  --bg-card-2:   #1e2440;
  --text:        #e8ddc0;
  --text-mid:    #b0aac8;
  --text-muted:  #7a788f;
  --accent:      #c8b690;
  --accent-lt:   #ddd0b0;
  --purple:      #8c86c4;
  --purple-dim:  rgba(140, 134, 196, 0.12);
  --border:      rgba(200, 182, 144, 0.14);
  --border-sub:  rgba(255, 255, 255, 0.055);
  --glow-gold:   rgba(200, 182, 144, 0.09);
  --glow-purple: rgba(140, 134, 196, 0.09);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --radius-card: 20px;
  --radius-pill: 100px;
}

/* ─── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9000;
}

/* ─── Stars ──────────────────────────────────────────────── */
#stars {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star-set {
  position: absolute; inset: 0;
}

/* star spans injected by JS */
.star-set span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.08; transform: scale(0.9); }
  to   { opacity: 0.75; transform: scale(1); }
}

/* ─── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 66px;
  display: flex; align-items: center;
  padding: 0 32px;
  z-index: 800;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(13, 17, 37, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-sub);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-actions {
  display: flex; align-items: center; gap: 40px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  color: #0d1125;
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 182, 144, 0.28);
}
.btn-cta.large {
  font-size: 16px; padding: 14px 36px;
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-sub);
  font-family: var(--font-body);
  font-weight: 400; font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--border);
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost.large {
  font-size: 15px; padding: 14px 28px;
}

/* ─── Layout Helpers ─────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 108px 32px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto; width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--purple);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--purple); opacity: 0.55;
  flex-shrink: 0;
}

.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.04; font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title.center { text-align: center; }

/* ─── Loading ────────────────────────────────────────────── */
#loading {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}

.loading-inner {
  text-align: center;
}

.loading-ball {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: ballPulse 1.4s ease-in-out infinite;
}

.loading-zzz {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.4em;
  color: var(--text-muted);
  animation: fadeInOut 1.4s ease-in-out infinite;
}

@keyframes ballPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-8px) scale(1.05); opacity: 1; }
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* ─── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 32px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto; width: 100%;
}

.hero-text { position: relative; z-index: 1; }

.hero-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  margin-bottom: 32px;
  box-shadow: 0 0 50px rgba(200, 182, 144, 0.18), 0 16px 40px rgba(0,0,0,0.35);
  animation: heroFloat 4.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 0.96; font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple); opacity: 0.7;
}

/* Hero right – lifestyle photo */
.hero-photo-wrap {
  position: relative;
}

.hero-photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at 50% 60%, rgba(200, 182, 144, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 40px 100px rgba(0,0,0,0.55),
    0 12px 32px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* Decorative bingo balls in hero BG */
.hero-floater {
  position: absolute;
  right: -60px; top: 0;
  width: 260px; opacity: 0.06;
  pointer-events: none;
  animation: floaterDrift 8s ease-in-out infinite;
}
@keyframes floaterDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

/* ─── Preview ────────────────────────────────────────────── */
#preview {
  background: linear-gradient(180deg, transparent, rgba(19, 23, 41, 0.6) 100%);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.preview-body {
  font-size: 17px; line-height: 1.78;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.preview-body strong { color: var(--text); font-weight: 600; }

.preview-cta { margin-top: 32px; }

/* Phone mockup */
.phone-outer {
  display: flex; justify-content: flex-end; align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(140, 134, 196, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.phone-frame {
  width: 234px;
  background: #1a1e38;
  border-radius: 44px;
  border: 6px solid #242840;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 50px 110px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 5px;
  background: #0d1125; border-radius: 3px;
  z-index: 2;
}

.phone-frame img {
  width: 100%; display: block;
}

/* ─── Steps ──────────────────────────────────────────────── */
#steps {
  background: linear-gradient(180deg, rgba(19, 23, 41, 0.4), transparent 80%);
  overflow: hidden;
}

.steps-bg {
  position: absolute; inset: 0;
  background-image: url('images/hall.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.04;
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-card);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.step-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -10%, var(--glow-purple) 0%, transparent 68%);
  pointer-events: none;
}

.step-card:hover {
  border-color: rgba(140, 134, 196, 0.24);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 72px; line-height: 1;
  color: rgba(200, 182, 144, 0.1);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.step-body {
  font-size: 15px; line-height: 1.72;
  color: var(--text-muted);
}

/* ─── Features ───────────────────────────────────────────── */
#features {
  background: linear-gradient(180deg, transparent 0%, rgba(19, 23, 41, 0.35) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: 16px;
  padding: 26px 22px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  background: var(--bg-card-2);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--purple-dim);
  border: 1px solid rgba(140, 134, 196, 0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 18px; height: 18px;
  stroke: var(--purple);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.feature-body {
  font-size: 14px; line-height: 1.68;
  color: var(--text-muted);
}

/* ─── Story ──────────────────────────────────────────────── */
#story {
  padding: 0; overflow: hidden;
  position: relative; z-index: 1;
}

.story-inner {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
}

.story-img-bg {
  position: absolute; inset: 0;
  background-image: url('images/hotel.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) saturate(0.6);
}

.story-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,17,37,0.9) 0%,
    rgba(13,17,37,0.65) 55%,
    rgba(13,17,37,0.2) 100%
  );
}

.story-content {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto; width: 100%;
  padding: 100px 32px;
}

.story-text { max-width: 580px; }

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 28px;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
}

.story-body {
  font-size: 17px; line-height: 1.77;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.story-body strong { color: var(--text); }

/* ─── Pricing ────────────────────────────────────────────── */
#pricing { text-align: center; }

.pricing-card {
  max-width: 440px;
  margin: 52px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.pricing-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, var(--glow-gold), transparent 65%);
  pointer-events: none;
}

.pricing-trial-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(140, 134, 196, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
  position: relative; z-index: 1;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 96px; line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.pricing-period {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 36px;
  position: relative; z-index: 1;
}

.pricing-period-stack {
  margin-bottom: 36px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.pricing-period-main {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-period-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text-muted);
}

.pricing-period-note {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(122, 120, 143, 0.5);
}

.pricing-terms {
  list-style: none;
  margin-bottom: 36px;
  text-align: left;
  position: relative; z-index: 1;
}

.pricing-term {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-sub);
  font-size: 14px; color: var(--text-muted);
  display: flex; gap: 12px; align-items: flex-start;
  line-height: 1.55;
}

.pricing-term::before {
  content: '✓';
  color: var(--purple);
  flex-shrink: 0; font-size: 12px;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.pricing-cta {
  position: relative; z-index: 1;
  width: 100%;
}

/* ─── FAQ ────────────────────────────────────────────────── */
#faq {
  background: linear-gradient(180deg, transparent 0%, rgba(19, 23, 41, 0.45) 100%);
}

.faq-list {
  max-width: 740px;
  margin: 52px auto 0;
}

.faq-item { border-bottom: 1px solid var(--border-sub); }

.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.faq-q:hover { color: var(--accent); }

.faq-toggle {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, transform 0.35s;
}

.faq-item.open .faq-toggle {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer p {
  padding-bottom: 24px;
  font-size: 16px; line-height: 1.77;
  color: var(--text-muted);
}

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  padding: 80px 32px 56px;
  border-top: 1px solid var(--border-sub);
  text-align: center;
  position: relative; z-index: 1;
}

.footer-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  margin: 0 auto 18px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 32px;
}

.footer-cta { margin-bottom: 48px; }

.footer-links {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-link {
  font-size: 13px; color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

.footer-attribution {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-attribution a {
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border-sub);
  transition: color 0.2s, border-color 0.2s;
}
.footer-attribution a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: rgba(122, 120, 143, 0.45);
}

/* ─── Scroll Animations ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* stagger for sibling cards */
.step-card.fade-up:nth-child(1),
.feature-card.fade-up:nth-child(1) { transition-delay: 0.0s; }
.step-card.fade-up:nth-child(2),
.feature-card.fade-up:nth-child(2) { transition-delay: 0.08s; }
.step-card.fade-up:nth-child(3),
.feature-card.fade-up:nth-child(3) { transition-delay: 0.16s; }
.feature-card.fade-up:nth-child(4) { transition-delay: 0.24s; }
.feature-card.fade-up:nth-child(5) { transition-delay: 0.32s; }
.feature-card.fade-up:nth-child(6) { transition-delay: 0.40s; }

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid,
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-photo-wrap { order: -1; max-width: 480px; margin: 0 auto; }
  .phone-outer { justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .section { padding: 80px 20px; }
  .story-content { padding: 80px 20px; }
  #hero { padding: 100px 20px 72px; }
  #nav { padding: 0 20px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 40px 26px; }
  .nav-name { display: none; }
  .nav-built { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
