@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night:   #070A2E;
  --panel:   #0F1250;
  --panel-hi:#181D6A;
  --pink:    #FF2D95;
  --cyan:    #38D9FF;
  --mint:    #00F5A0;
  --gold:    #FFD23C;
  --violet:  #8B4DFF;
  --ink:     #FFFFFF;
  --ink-dim: rgba(255,255,255,0.6);
  --ink-mute:rgba(255,255,255,0.35);
  --line:    rgba(255,255,255,0.08);
  --heading: "Lilita One", "Trebuchet MS", sans-serif;
  --body:    "Nunito", "Segoe UI", system-ui, sans-serif;
  --max-w:   1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.15; margin: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========= HEADER ========= */
.site-header { padding: 18px 0; position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-family: var(--heading); font-size: 18px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--ink-dim); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }

/* ========= HERO ========= */
.hero {
  position: relative;
  margin: 0 16px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("bg-hero.jpg") center 30% / cover no-repeat;
  filter: brightness(0.35) saturate(1.3);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(139,77,255,0.25), transparent),
    radial-gradient(ellipse 50% 70% at 80% 60%, rgba(255,45,149,0.15), transparent),
    linear-gradient(180deg, rgba(7,10,46,0.5) 0%, rgba(7,10,46,0.85) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(56,217,255,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  color: var(--ink);
  text-shadow: 0 0 60px rgba(56,217,255,0.3), 0 2px 4px rgba(0,0,0,0.5);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero p {
  margin: 18px 0 28px;
  color: var(--ink-dim);
  max-width: 40ch;
  font-size: 15px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-tag { font-size: 13px; color: var(--ink-mute); }

/* Neon button */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(255,45,149,0.3), 0 4px 12px rgba(0,0,0,0.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,45,149,0.45), 0 8px 20px rgba(0,0,0,0.3); }

/* Phone mockups in hero */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 440px;
}
.phone {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  background: #111;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-front { width: 200px; height: 420px; z-index: 2; right: 15%; bottom: 0; }
.phone-back  { width: 180px; height: 380px; z-index: 1; left: 10%; bottom: 20px; transform: rotate(-6deg); opacity: 0.85; }

.hero-float {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  animation: float 4s ease-in-out infinite;
}
.hero-float-1 { width: 70px; top: 10px; left: 0; animation-delay: 0s; }
.hero-float-2 { width: 60px; bottom: 30px; left: 5%; animation-delay: 1.5s; }
.hero-float-3 { width: 50px; top: 60px; right: 5%; animation-delay: 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========= MARQUEE DOTS ========= */
.marquee-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 36px 0;
}
.marquee-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255,210,60,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.marquee-dots span:nth-child(2) { animation-delay: .15s; }
.marquee-dots span:nth-child(3) { animation-delay: .3s; }
.marquee-dots span:nth-child(4) { animation-delay: .45s; }
.marquee-dots span:nth-child(5) { animation-delay: .6s; }
.marquee-dots span:nth-child(6) { animation-delay: .75s; }
.marquee-dots span:nth-child(7) { animation-delay: .9s; }
@keyframes pulse-dot {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ========= SECTION HEADS ========= */
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head p { color: var(--ink-dim); margin-top: 10px; font-size: 15px; }

/* ========= FEATURES ========= */
.features { padding: 20px 0 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(160deg, var(--panel), rgba(15,18,80,0.6));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  transition: border-color .3s, transform .3s;
}
.feature:hover { border-color: rgba(56,217,255,0.25); transform: translateY(-3px); }
.feature-icon-row { display: flex; gap: 6px; align-items: flex-end; margin-bottom: 16px; height: 48px; }
.feature-img       { width: 40px; height: 40px; object-fit: contain; }
.feature-img-building { width: 56px; height: 48px; object-fit: contain; }
.feature-img-guest { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.feature-img-gen   { width: 52px; height: 48px; object-fit: contain; }
.feature h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--ink-dim); font-size: 14px; margin: 0; line-height: 1.5; }

/* ========= SCREENSHOTS GALLERY ========= */
.showcase { padding: 50px 0; }
.phone-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-hi) transparent;
}
.phone-gallery::-webkit-scrollbar { height: 6px; }
.phone-gallery::-webkit-scrollbar-track { background: transparent; }
.phone-gallery::-webkit-scrollbar-thumb { background: var(--panel-hi); border-radius: 3px; }
.phone-frame {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #0a0d35;
  border: 2px solid rgba(139,77,255,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139,77,255,0.1);
  transition: transform .3s, box-shadow .3s;
}
.phone-frame:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 30px rgba(139,77,255,0.2); }
.phone-frame img { width: 100%; display: block; }

/* ========= GUESTS ========= */
.guests-section { padding: 50px 0; }
.guests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.guests-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 4px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.guests-row img:hover {
  transform: scale(1.15);
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255,45,149,0.3);
}

/* ========= BUILDINGS / CITY ========= */
.city-section { padding: 50px 0 30px; }
.buildings-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.building-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px 10px;
  text-align: center;
  transition: border-color .3s, transform .3s;
}
.building-card:hover { border-color: rgba(0,245,160,0.3); transform: translateY(-3px); }
.building-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.building-card span { font-size: 12px; font-weight: 600; color: var(--ink-dim); }

/* ========= NOTE ========= */
.note {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0,245,160,0.05);
  border: 1px solid rgba(0,245,160,0.2);
  color: var(--ink-dim);
  font-size: 14px;
}
.note strong { color: var(--mint); }

/* ========= CTA ========= */
.cta {
  margin: 50px 0 80px;
  background: linear-gradient(135deg, var(--panel), var(--night));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(20px, 2.8vw, 28px); }
.cta-sub { color: var(--ink-dim); font-size: 14px; margin: 8px 0 0; }

/* ========= FOOTER ========= */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 13px; }
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-dim); }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-meta { font-size: 12px; color: var(--ink-mute); margin-top: 14px; }

/* ========= LEGAL PAGES ========= */
.legal-header { padding: 48px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.legal-header a.back { font-size: 14px; color: var(--cyan); text-decoration: none; display: inline-block; margin-bottom: 20px; }
.legal-header a.back:hover { text-shadow: 0 0 12px rgba(56,217,255,0.4); }
.legal-header h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-meta { color: var(--ink-dim); font-size: 14px; margin-top: 12px; }
.legal-content { max-width: 72ch; padding-bottom: 90px; }
.legal-content h2 { font-size: 20px; margin: 42px 0 14px; color: var(--cyan); }
.legal-content p { color: var(--ink-dim); margin: 0 0 16px; }
.legal-content ul { color: var(--ink-dim); padding-left: 20px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); }
.legal-content .table-scroll { overflow-x: auto; margin: 20px 0; }
.legal-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal-content th, .legal-content td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.legal-content th { color: var(--ink); font-weight: 600; }
.legal-content hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.legal-content a { color: var(--cyan); }
.legal-content .draft-box {
  margin: 24px 0; padding: 18px 22px;
  border-radius: 12px;
  background: rgba(139,77,255,0.08);
  border: 1px solid rgba(139,77,255,0.3);
  font-size: 14px;
}
.legal-content .draft-box strong { color: var(--violet); }

/* ========= RESPONSIVE — TABLET ========= */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }

  /* Hero: stack, text centered, phones side-by-side (not absolute) */
  .hero { margin: 0 10px; min-height: auto; border-radius: 22px; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 36px 0 40px;
    gap: 28px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { max-width: 18ch; }
  .hero p { max-width: 44ch; }
  .hero-actions { justify-content: center; }

  .hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
    height: auto;
  }
  .phone {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    border-radius: 20px;
  }
  .phone-front { width: 46%; height: auto; }
  .phone-back  { width: 42%; height: auto; transform: rotate(-4deg); }
  .phone img { height: auto; }

  .hero-float-1 { width: 48px; top: -10px; left: 2%; }
  .hero-float-2 { width: 42px; bottom: 10px; left: 0; }
  .hero-float-3 { width: 36px; top: 20px; right: 2%; }

  /* Features 2 cols */
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 20px; border-radius: 16px; }

  /* Screenshots */
  .phone-frame { width: 180px; border-radius: 20px; }

  /* Buildings */
  .buildings-row { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .building-card { border-radius: 12px; padding: 10px 8px 8px; }
  .building-card img { width: 64px; height: 64px; }

  /* Guests */
  .guests-row { gap: 12px; }
  .guests-row img { width: 64px; height: 64px; }

  /* CTA */
  .cta { padding: 28px 20px; flex-direction: column; align-items: flex-start; border-radius: 20px; }

  /* Nav stays but tighter */
  .nav-links { gap: 16px; font-size: 13px; }

  /* Section spacing */
  .features, .showcase, .guests-section, .city-section { padding: 36px 0; }
  .section-head { margin-bottom: 24px; }
  .marquee-dots { padding: 24px 0; }
}

/* ========= RESPONSIVE — PHONE ========= */
@media (max-width: 540px) {
  /* Header: hide nav, keep brand */
  .nav-links { display: none; }

  /* Hero phones smaller but still readable */
  .hero { margin: 0 8px; border-radius: 18px; }
  .hero-grid { padding: 28px 0 32px; gap: 20px; }
  .hero-badge { font-size: 11px; padding: 4px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; margin: 14px 0 20px; }
  .btn-neon { font-size: 13px; padding: 11px 20px; }
  .hero-tag { font-size: 12px; }

  .phone-front { width: 48%; }
  .phone-back  { width: 44%; }
  .hero-float { display: none; }

  /* Features 1 col, compact cards */
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: start; }
  .feature-icon-row { grid-row: 1 / 3; height: auto; margin-bottom: 0; flex-direction: column; gap: 2px; align-items: center; }
  .feature-img       { width: 32px; height: 32px; }
  .feature-img-building { width: 44px; height: 40px; }
  .feature-img-guest { width: 36px; height: 36px; }
  .feature-img-gen   { width: 44px; height: 40px; }
  .feature h3 { font-size: 15px; margin-bottom: 4px; }
  .feature p  { font-size: 13px; }

  /* Screenshots: full-width swipe, snap to center */
  .showcase { padding: 28px 0; }
  .phone-gallery { gap: 12px; padding: 6px 16px 14px; scroll-padding-left: 16px; }
  .phone-frame { width: 56vw; max-width: 240px; border-radius: 18px; border-width: 1.5px; }

  /* Guests: 2 rows that scroll or wrap tight */
  .guests-section { padding: 28px 0; }
  .guests-row { gap: 10px; }
  .guests-row img { width: 52px; height: 52px; padding: 3px; }

  /* Buildings: 3 cols, tight */
  .city-section { padding: 28px 0 20px; }
  .buildings-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .building-card { padding: 8px 6px 6px; }
  .building-card img { width: 52px; height: 52px; }
  .building-card span { font-size: 10px; }

  /* Note */
  .note { font-size: 13px; padding: 14px 16px; border-radius: 12px; }

  /* CTA */
  .cta { margin: 30px 0 50px; padding: 24px 16px; border-radius: 16px; gap: 16px; }
  .cta h2 { font-size: 20px; }

  /* Footer stacked */
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-meta { margin-top: 8px; }

  /* Section heads */
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }

  /* Marquee */
  .marquee-dots { padding: 20px 0; gap: 8px; }

  /* Legal pages on mobile */
  .legal-header { padding: 32px 0 18px; margin-bottom: 28px; }
  .legal-header h1 { font-size: 24px; }
  .legal-content h2 { font-size: 18px; margin: 32px 0 10px; }
  .legal-content { font-size: 15px; padding-bottom: 50px; }
}
