/* ==========================================================================
   FlyBit Site 3 (flybitcloud.homes) - 4K Media & AI Pavilion Light Theme
   Colors: #2563EB (Cobalt Blue), #F97316 (Coral Orange), #FAFAF9, #0F172A
   ========================================================================== */

:root {
  --cobalt: #2563EB;
  --cobalt-hover: #1D4ED8;
  --cobalt-light: #EFF6FF;
  --coral: #F97316;
  --coral-hover: #EA580C;
  --bg-page: #FAFAF9;
  --bg-card: #FFFFFF;
  --border-light: #E7E5E4;
  --border-active: #BFDBFE;
  --text-main: #1C1917;
  --text-muted: #57534E;
  --text-dim: #A8A29E;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 14px 34px rgba(37, 99, 235, 0.1);
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.nav-homes {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-homes {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}
.brand-homes img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.brand-label {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  background: #FEF3C7;
  color: #B45309;
  border-radius: 999px;
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-items a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-items a:hover, .nav-items a.active {
  color: var(--cobalt);
}
.btn-cobalt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--cobalt);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.btn-cobalt:hover {
  background: var(--cobalt-hover);
  transform: translateY(-2px);
}
.btn-coral {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--coral);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-homes {
  padding: 70px 0 50px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #FEF2F2;
  color: #DC2626;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-homes h1 {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-homes h1 span.gradient {
  background: linear-gradient(135deg, var(--cobalt), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-homes p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 4K Player Mockup */
.player-mockup {
  background: #000000;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #333;
}
.player-screen {
  padding: 40px 24px;
  background: radial-gradient(circle at center, #1E3A8A 0%, #0F172A 100%);
  text-align: center;
  position: relative;
}
.player-badge-top {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
  color: #38BDF8;
}
.player-play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 20px auto;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.player-hud {
  background: #111827;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-family: monospace;
}
.hud-green { color: #10B981; font-weight: 700; }

/* 8-Platform Unlocking Matrix */
.section-homes { padding: 75px 0; }
.header-homes { text-align: center; margin-bottom: 45px; }
.header-homes h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.header-homes p { font-size: 1.05rem; color: var(--text-muted); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.platform-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}
.platform-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.platform-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.platform-meta { font-size: 0.82rem; color: #10B981; font-weight: 600; }

/* User Reviews Wall */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-quote { font-size: 0.95rem; color: #44403C; line-height: 1.65; margin-bottom: 20px; }
.review-author-wrap { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cobalt-light);
  color: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.author-info h4 { font-size: 0.92rem; font-weight: 700; }
.author-info span { font-size: 0.78rem; color: var(--text-dim); }

/* Pricing Grid */
.homes-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.homes-price-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.homes-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.homes-price-card.star {
  border-color: var(--cobalt);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}
.star-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cobalt), var(--coral));
  color: #fff;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.homes-price-amount { font-size: 2.6rem; font-weight: 800; color: var(--cobalt); margin: 16px 0; }
.homes-price-amount span { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.homes-price-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.homes-price-features li {
  padding: 8px 0;
  border-bottom: 1px solid #F5F5F4;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.homes-price-features li i { color: #10B981; }

/* Subpage */
.homes-sub-header {
  padding: 55px 0 40px;
  text-align: center;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}
.homes-sub-header h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 10px; }
.homes-sub-header p { font-size: 1.05rem; color: var(--text-muted); }
.homes-sub-body {
  padding: 50px 0;
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.8;
}
.homes-sub-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 30px 0 14px;
  border-bottom: 2px solid var(--cobalt-light);
  padding-bottom: 6px;
}
.homes-sub-body p { margin-bottom: 16px; color: #44403C; }
.homes-sub-body ul, .homes-sub-body ol { margin: 0 0 20px 24px; }
.homes-sub-body li { margin-bottom: 8px; }

/* Ecosystem matrix */
.homes-eco-bar {
  background: #F5F5F4;
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}
.homes-eco-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.homes-eco-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.homes-eco-list { display: flex; flex-wrap: wrap; gap: 10px; }
.homes-eco-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-main);
}
.homes-eco-item:hover { border-color: var(--cobalt); color: var(--cobalt); }
.homes-eco-item.active { background: var(--cobalt-light); border-color: var(--cobalt); color: var(--cobalt); font-weight: 700; }

.footer-homes {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 35px 0;
}
.footer-homes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-homes-nav { display: flex; gap: 20px; }
.footer-homes-nav a:hover { color: var(--cobalt); }

@media (max-width: 992px) {
  .hero-split { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .homes-price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-items { display: none; }
  .hero-homes h1 { font-size: 2.2rem; }
  .footer-homes-row { flex-direction: column; gap: 14px; text-align: center; }
}
