:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-2: #222240;
  --text: #e4e4ef;
  --text-muted: #9191ab;
  --border: #2d2d4a;
  --accent: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

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

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

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Container ───────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Hero ────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface); opacity: 1; }

/* ── Cards Grid ──────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── Gallery ─────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay span { font-size: 13px; font-weight: 500; color: #fff; }

/* ── Stats ───────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }
.stat .value { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ── Pricing ─────────────────────────────── */

.price-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.price-card .price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-card .unit { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ── Floor Plan Tabs ─────────────────────── */

.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.tab {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.tab:hover { border-color: var(--primary); color: var(--text); }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.floor-plan-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.floor-plan-box .fp-label { font-size: 24px; font-weight: 700; color: var(--text); }
.floor-plan-box .fp-detail { font-size: 14px; }

/* ── Form Section ────────────────────────── */

.form-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  padding: 80px 0;
}

.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Thank You ───────────────────────────── */

.thankyou-box {
  text-align: center;
  padding: 100px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.thankyou-box h1 { font-size: 32px; margin-bottom: 12px; }
.thankyou-box p { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }

/* ── Footer ──────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  list-style: none;
}

.footer-links a { font-size: 13px; color: var(--text-muted); }

/* ── Test Panel ──────────────────────────── */

.test-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  width: 280px;
  font-size: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.test-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.test-panel-header h4 {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-panel-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.test-panel-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font);
}

.test-panel-body { display: grid; gap: 8px; }

.test-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.test-metric:last-child { border-bottom: none; }

.test-metric .label { color: var(--text-muted); }
.test-metric .value { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.test-panel.collapsed .test-panel-body { display: none; }

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero { padding: 60px 0 40px; }
}
