/* ===== CSS VARIABLES ===== */
:root {
  --bg: #080b14;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f4ff;
  --text-muted: rgba(200, 210, 240, 0.55);
  --accent-1: #00d4ff;
  --accent-2: #7b5ea7;
  --accent-3: #ff6b6b;
  --grad-1: linear-gradient(135deg, #00d4ff, #7b5ea7);
  --grad-2: linear-gradient(135deg, #7b5ea7, #ff6b6b);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

/* ===== CURSOR ===== */
#trailCanvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.05s linear;
  box-shadow: 0 0 10px var(--accent-1), 0 0 20px var(--accent-1);
}

.cursor-ring {
  position: fixed;
  top: -20px; left: -20px;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.expanded {
  width: 60px; height: 60px;
  top: -30px; left: -30px;
  border-color: rgba(0, 212, 255, 0.9);
  background: rgba(0, 212, 255, 0.05);
}

/* ===== BACKGROUND ORBS ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: drift 12s ease-in-out infinite alternate;
  transition: transform 0.8s ease;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--accent-1);
  top: -150px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  top: 30%; right: -100px;
  animation-delay: 3s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: var(--accent-3);
  bottom: -100px; left: 40%;
  animation-delay: 6s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease calc(var(--i, 0) * 0.1s),
              transform 0.7s ease calc(var(--i, 0) * 0.1s);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(8, 11, 20, 0.5);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
  animation: fadeDown 0.8s ease both;
}

.navbar.scrolled {
  background: rgba(8, 11, 20, 0.92);
  border-bottom-color: var(--border);
  padding: 14px 60px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.2rem;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text { color: var(--text-primary); }
.logo-accent {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--accent-1);
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--accent-1);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 100px;
  gap: 28px;
  overflow: hidden;
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-1);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.hero-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: inline-block;
  transition: transform 0.15s ease;
  will-change: transform;
}

.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: none;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
}

/* Scroll hint */
.scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad-1);
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,0.25), 0 0 80px rgba(123,94,167,0.15);
  transition: box-shadow 0.3s ease;
}

.cta-btn:hover {
  box-shadow: 0 0 60px rgba(0,212,255,0.5), 0 0 100px rgba(123,94,167,0.3);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.cta-btn:hover .btn-shine { transform: translateX(100%); }

/* Dark variant */
.cta-btn-dark {
  background: var(--bg);
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 0 30px rgba(0,212,255,0.2);
  animation: none !important;
}
.cta-btn-dark:hover {
  background: var(--accent-1);
  color: var(--bg);
}

/* ===== LISTINGS SECTION ===== */
.listings-section {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1;
}

/* ===== LISTING CARD ===== */
.listing-card {
  min-width: calc(33.33% - 14px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.5s ease;
  backdrop-filter: blur(10px);
  will-change: transform;
}

.listing-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.1);
}

.listing-img {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .listing-img img { transform: scale(1.07); }

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,20,0.6) 0%, transparent 60%);
}

.listing-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--grad-1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}

.new-badge { background: var(--grad-2) !important; }

.listing-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-top h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.listing-rating {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.listing-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.listing-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.listing-tags span {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent-1);
  font-weight: 500;
  transition: background 0.2s ease;
}

.listing-tags span:hover {
  background: rgba(0,212,255,0.2);
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.listing-price span {
  font-size: 0.75rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-muted);
}

/* ===== CAROUSEL BUTTONS ===== */
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

/* ===== DOTS ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: none;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-1);
  width: 24px;
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.5s ease;
  will-change: transform;
}

.feature-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,212,255,0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.banner-inner {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(123,94,167,0.08));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: box-shadow 0.4s ease;
}

.banner-inner:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 60px rgba(0,212,255,0.08);
}

.banner-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .listing-card { min-width: calc(50% - 10px); }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .hero { padding: 100px 20px 60px; }
  .features { padding: 40px 20px; }
  .banner-inner { padding: 40px 24px; }
  .cta-btn { padding: 15px 32px; font-size: 0.95rem; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, #trailCanvas { display: none; }
  a, button { cursor: pointer; }
}

@media (max-width: 600px) {
  .listing-card { min-width: 100%; }
  .carousel-btn { display: none; }
}
