:root {
  --ink: #f4f6fb;
  --bg: #2a2f3a;
  --accent: #1862e9;
  --accent-light: #4d85f0;
  --slate: #2a2f3a;
  --light: #E8EEF2;
  --gold: #c9a84c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Fixed NAV ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.85);
  background: rgba(26, 31, 44, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 98, 233, 0.18);
}
.hud-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.hud-mid {
  font-family: "Akshar", sans-serif;
  font-size: 15px;
  color: var(--light);
  letter-spacing: 0.22em;
}
.hud-cta {
  display: inline-block;
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.hud-cta:hover { background: var(--accent-light); }

/* ---------- Hero cinematic section ---------- */
.cinematic {
  position: relative;
  height: 520vh;
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111520;
}
#frame-canvas,
#flythrough-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 35%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 18%, transparent 72%, rgba(0,0,0,0.8) 100%);
}

/* ---------- Hero overlay copy ---------- */
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}
.reveal-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  width: max-content;
  max-width: 90vw;
  font-family: "Akshar", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 7.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.7);
  will-change: opacity, transform;
  color: #fff;
}
.reveal-line.line-tagline {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--light);
}
.reveal-line.line-name {
  font-size: clamp(2rem, 6vw, 5.5rem);
  color: #fff;
}
.reveal-line.line-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  top: 62%;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--light);
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1.5px solid rgba(232, 238, 242, 0.45);
  border-radius: 5px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ---------- Progress bar ---------- */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.scroll-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: "Barlow", sans-serif;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: rgba(232,238,242,0.55);
  text-transform: uppercase;
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- DOM sections shared styles ---------- */
.section-block {
  background: var(--slate);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section-block:nth-child(even) {
  background: #1e232d;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-eyebrow {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: "Akshar", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.section-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(232, 238, 242, 0.72);
  max-width: 600px;
}

/* ---------- Photo + text layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.photo-block {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.photo-block:hover img { transform: scale(1.04); }

/* ---------- Amenity list ---------- */
.amenity-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.amenity-list li {
  font-size: 1rem;
  color: rgba(232, 238, 242, 0.8);
  padding-left: 22px;
  position: relative;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Photo grid (3-col) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.photo-grid .photo-block {
  aspect-ratio: 3/2;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(24,98,233,0.22);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: "Akshar", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 238, 242, 0.5);
  margin-top: 8px;
}

/* ---------- AI Console section ---------- */
.ai-console-section {
  background: linear-gradient(135deg, #0d1a3a 0%, #1a2a55 50%, #0d1a3a 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ai-console-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(24,98,233,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ai-console-section .section-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  margin-bottom: 18px;
}
.ai-console-section .section-body {
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.15rem;
  max-width: 640px;
}
.btn-console {
  display: inline-block;
  padding: 18px 48px;
  background: var(--accent);
  color: #fff;
  font-family: "Akshar", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 40px rgba(24,98,233,0.4);
}
.btn-console:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 48px rgba(24,98,233,0.6);
}
.console-tag {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232,238,242,0.4);
}

/* ---------- Join CTA section ---------- */
.join-section {
  background: var(--accent);
  padding: 100px 0;
  text-align: center;
}
.join-section .section-title {
  color: #fff;
  margin-bottom: 14px;
}
.join-section .section-body {
  color: rgba(255,255,255,0.8);
  margin: 0 auto 40px;
  text-align: center;
  max-width: 540px;
}
.btn-join {
  display: inline-block;
  padding: 16px 48px;
  background: #fff;
  color: var(--accent);
  font-family: "Akshar", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-join:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ---------- Footer ---------- */
.site-footer {
  background: #111520;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(24,98,233,0.15);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(232,238,242,0.5);
  line-height: 1.6;
  max-width: 280px;
}
.footer-heading {
  font-family: "Akshar", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  display: block;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list li {
  font-size: 0.92rem;
  color: rgba(232,238,242,0.6);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(232,238,242,0.35);
}
.footer-bottom a {
  color: rgba(232,238,242,0.35);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- Build tag ---------- */
.build-tag {
  position: fixed;
  bottom: 10px;
  left: 12px;
  z-index: 99;
  font-size: 10px;
  font-family: monospace;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
  letter-spacing: 0.1em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Prefers reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line { transition: none !important; animation: none !important; }
  .photo-block img { transition: none; }
  .scroll-hint { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reverse { direction: ltr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 24px; }
  .section-block { padding: 72px 0; }
}
@media (max-width: 640px) {
  .hud { padding: 14px 18px; font-size: 11px; }
  .hud-mid { display: none; }
  .photo-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .ai-console-section { padding: 80px 0; }
}

/* ---------- Narrow phone (<=420px) ---------- */
@media (max-width: 420px) {
  /* Nav: logo + CTA only, no overflow */
  .hud { padding: 12px 14px; gap: 8px; }
  .hud-logo { height: 26px; }
  .hud-cta { padding: 6px 12px; font-size: 11px; letter-spacing: 0.06em; }

  /* Hero CTA buttons: stack vertically */
  .reveal-line.line-ctas {
    flex-direction: column;
    gap: 10px;
    top: 58%;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Section container padding */
  .container { padding: 0 16px; }
  .section-block { padding: 60px 0; }

  /* Stats: single column on very narrow */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-num { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* Footer: single column */
  .footer-inner { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* AI console section */
  .btn-console { padding: 14px 28px; font-size: 1rem; letter-spacing: 0.08em; }
  .ai-console-section .section-body { font-size: 1rem; }
}
