/* ============================================================
   NOVUS CITY — HOME PAGE STYLES
   ============================================================ */

:root {
  --purple-deep: #36354a;
  --purple-dark: #2b2a3d;
  --purple-mid: #a29bc9;
  --purple-soft: #f3f1fb;
  --purple-gradient: linear-gradient(135deg, #a29bc9 0%, #7c76b8 100%);
  --teal-soft: #e4f5f5;
  --teal-text: #7dcac7;
  --teal-dark: #5bb5b1;
  --text-dark: #36354a;
  --text-muted: #75758f;
  --border: #e5e5ea;
  --success: #06d6a0;
  --danger: #ef476f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text-dark); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ==================== GLOBAL HELPERS ==================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==================== TOP UTILITY BAR ==================== */
.top-bar { background: var(--purple-dark); color: rgba(255,255,255,0.8); font-size: 12px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left a, .top-right a { color: inherit; text-decoration: none; margin-right: 20px; transition: color 0.2s; }
.top-left a:hover, .top-right a:hover { color: #fff; }
.search-icon { font-size: 14px; }
.btn-utility { background: var(--teal-text); color: #fff !important; padding: 6px 16px; border-radius: 4px; font-weight: 600; margin-right: 0 !important; }
.btn-utility:hover { background: var(--teal-dark); color: #fff !important; }

/* ==================== MAIN NAVIGATION ==================== */
.main-nav { 
  background: #fff; 
  border-bottom: 1px solid var(--border); 
  padding: 16px 0; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
}

.main-nav-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 16px; 
}

/* Left side wrapper for mobile menu + logo */
.nav-left { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  min-width: 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 20px; 
  font-weight: 800; 
  color: var(--purple-deep); 
  letter-spacing: -0.5px; 
  text-decoration: none; 
  min-width: 0;
}

.brand-icon { 
  width: 36px; 
  height: 36px; 
  border-radius: 10px; 
  background: var(--purple-gradient); 
  color: #fff; 
  display: grid; 
  place-items: center; 
  font-size: 18px; 
  flex-shrink: 0;
}

/* Desktop Links */
.nav-links { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
}
.nav-links a { 
  color: var(--text-dark); 
  font-size: 14px; 
  font-weight: 600; 
  text-decoration: none; 
  white-space: nowrap;
}
.nav-links a:hover { color: var(--purple-mid); }

/* MOBILE MENU BUTTON - HIDDEN ON DESKTOP */
.mobile-menu-btn { 
  display: none; /* Hide by default */
  background: var(--purple-soft); 
  color: var(--purple-mid); 
  border: none; 
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  font-size: 24px; 
  cursor: pointer; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
  transition: background 0.2s;
  padding: 0;
}
.mobile-menu-btn:hover { background: #e5e1f5; }

/* ==================== SUB NAVIGATION ==================== */
.sub-nav { background: #f8f9fa; border-bottom: 1px solid var(--border); padding: 10px 0; }
.sub-nav-inner { display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-inner a { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.sub-nav-inner a:hover { color: var(--purple-deep); }

/* ==================== HERO SPLIT ==================== */
.hero-split { background: #fdfcf9; padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.login-box { 
  background: #fff; 
  border-radius: 12px; 
  padding: 32px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
  border: 1px solid var(--border); 
}
.login-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--purple-deep); }
.login-box .text-muted { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box input { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid var(--border); 
  border-radius: 6px; 
  font-size: 14px; 
  font-family: inherit; 
}
.login-box input:focus { outline: none; border-color: var(--purple-mid); }
.check-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.check-row a { color: var(--purple-mid); text-decoration: none; font-weight: 600; }
.btn-primary-full { 
  width: 100%; 
  padding: 12px; 
  background: var(--purple-mid); 
  color: #fff; 
  border: none; 
  border-radius: 6px; 
  font-weight: 700; 
  cursor: pointer; 
  margin-bottom: 16px; 
  transition: background 0.2s;
}
.btn-primary-full:hover { background: #9088be; }
.login-links { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.login-links a { color: var(--text-muted); text-decoration: underline; }
.login-links a:hover { color: var(--purple-mid); }

.hero-content { padding-left: 20px; }
.hero-title { font-size: 42px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; letter-spacing: -1px; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; line-height: 1.5; }
.hero-action-row { display: flex; align-items: center; gap: 30px; }
.btn-outline { 
  display: inline-block; 
  padding: 10px 24px; 
  border: 1px solid var(--purple-mid); 
  border-radius: 24px; 
  color: var(--purple-mid); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 14px; 
  transition: all 0.2s; 
}
.btn-outline:hover { background: var(--purple-mid); color: #fff; }
.hero-promo-text { color: var(--text-muted); font-size: 14px; border-left: 2px solid var(--teal-text); padding-left: 16px; line-height: 1.4; }
.big-purple { font-size: 32px; font-weight: 700; color: var(--purple-mid); }

/* ==================== FEATURE CARDS ==================== */
.feature-row { padding: 40px 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.f-card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 24px; 
  transition: border-color 0.2s; 
}
.f-card:hover { border-color: var(--purple-mid); }
.f-card.no-border { border: none; padding-left: 0; }
.f-icon { font-size: 28px; color: var(--purple-mid); margin-bottom: 16px; }
.f-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); line-height: 1.3; }
.f-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.link-arrow { color: var(--teal-text); text-decoration: none; font-weight: 700; font-size: 13px; }
.link-arrow:hover { color: var(--teal-dark); }
.rate-chart-placeholder { font-size: 48px; color: var(--teal-text); opacity: 0.6; margin-bottom: 16px; }

/* ==================== FULL WIDTH PROMO ==================== */
.promo-banner { padding: 40px 0; background: #fff; }
.promo-inner { 
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-dark)); 
  border-radius: 16px; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 40px 60px; 
  color: #fff; 
}
.promo-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.promo-text p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 24px; max-width: 400px; line-height: 1.5; }
.btn-white { 
  background: #fff; 
  color: var(--purple-deep); 
  padding: 10px 24px; 
  border-radius: 24px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 14px; 
}
.btn-white:hover { background: var(--purple-soft); }
.mock-card { 
  width: 260px; 
  height: 160px; 
  background: linear-gradient(135deg, #2b2a3d, #4b4b6b); 
  border-radius: 12px; 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  position: relative; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
  transform: rotate(-5deg); 
  border: 1px solid rgba(255,255,255,0.1); 
}
.mock-logo { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.mock-chip { width: 36px; height: 26px; background: #e0c97f; border-radius: 4px; margin-top: 10px; }
.mock-number { font-family: monospace; font-size: 16px; letter-spacing: 2px; margin-top: auto; color: rgba(255,255,255,0.9); }
.mock-brand { position: absolute; bottom: 20px; right: 20px; font-size: 18px; font-weight: 800; font-style: italic; color: #fff; }

/* ==================== GUIDANCE SECTION ==================== */
.section { padding: 60px 0; background: #fafafa; }
.section-title { font-size: 28px; font-weight: 600; color: var(--text-dark); margin-bottom: 40px; }
.guidance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.g-img { height: 200px; width: 100%; }
.g-content { padding: 24px; }
.g-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.g-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.btn-outline-sm { 
  display: inline-block; 
  padding: 8px 20px; 
  border: 1px solid var(--purple-mid); 
  border-radius: 20px; 
  color: var(--purple-mid); 
  text-decoration: none; 
  font-size: 13px; 
  font-weight: 600; 
  transition: all 0.2s; 
}
.btn-outline-sm:hover { background: var(--purple-mid); color: #fff; }

/* ==================== DARK APP PROMO ==================== */
.dark-promo { background: #3a3a3a; padding: 60px 0; color: #fff; }
.dark-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.phone-frame { 
  width: 220px; 
  height: 440px; 
  background: #fff; 
  border-radius: 30px; 
  margin: 0 auto; 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  transform: rotate(-3deg); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
}
.phone-header { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.phone-chart { flex: 1; display: grid; place-items: center; font-size: 80px; color: var(--purple-mid); opacity: 0.8; }
.phone-text { font-size: 12px; color: var(--text-muted); text-align: center; }
.dark-promo-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.dark-promo-text p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; max-width: 400px; }
.store-badges { display: flex; gap: 16px; }
.store-btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  background: #000; 
  color: #fff; 
  padding: 10px 18px; 
  border-radius: 8px; 
  text-decoration: none; 
  border: 1px solid #444; 
  font-weight: 600; 
  font-size: 13px; 
}
.store-btn:hover { background: #222; }

/* ==================== COMMUNITY SECTION ==================== */
.section-subtitle { font-size: 15px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; line-height: 1.6; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.c-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.c-img { height: 280px; width: 100%; }
.c-content { padding: 24px; }
.c-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.c-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

/* ==================== QUICK HELP ==================== */
.quick-help { padding: 40px 0 80px; background: #fff; border-top: 1px solid var(--border); }
.help-links-row { display: flex; gap: 40px; align-items: center; }
.h-link { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--text-dark); font-weight: 600; font-size: 15px; }
.h-icon { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: var(--purple-soft); 
  color: var(--purple-mid); 
  display: grid; 
  place-items: center; 
  font-size: 18px; 
}

/* ==================== MOBILE SIDEBAR (DRAWER) ==================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sidebar.active { transform: translateX(0); }

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--purple-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--purple-mid);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}
.sidebar-close:hover { background: #e5e1f5; }

.sidebar-nav-mobile {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}
.sidebar-nav-mobile a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav-mobile a:hover {
  background: var(--purple-soft);
  color: var(--purple-mid);
  border-left-color: var(--purple-mid);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 42, 61, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  
  /* 1. SHOW HAMBURGER BUTTON */
  .mobile-menu-btn { 
    display: flex; 
  }
  
  /* 2. HIDE DESKTOP NAV LINKS */
  .nav-links { 
    display: none; 
  }
  
  /* 3. HERO STACKING */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding-left: 0; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-action-row { justify-content: center; flex-direction: column; gap: 16px; }
  .hero-promo-text { 
    border-left: none; 
    border-top: 2px solid var(--teal-text); 
    padding-left: 0; 
    padding-top: 12px; 
    display: inline-block;
  }
  .login-box { max-width: 400px; margin: 0 auto; width: 100%; }
  
  /* 4. FEATURE GRID */
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .f-card.no-border { padding-left: 20px; border: 1px solid var(--border); }
  
  /* 5. PROMO STACKING */
  .promo-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .promo-text p { margin: 0 auto 24px; max-width: 100%; }
  .mock-card { margin: 24px auto 0; }
  
  /* 6. GUIDANCE STACKING */
  .guidance-grid { grid-template-columns: 1fr; gap: 20px; }
  
  /* 7. DARK PROMO STACKING */
  .dark-promo-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .dark-promo-text p { margin: 0 auto 24px; max-width: 100%; }
  .store-badges { justify-content: center; }
  
  /* 8. COMMUNITY STACKING */
  .community-grid { grid-template-columns: 1fr; gap: 24px; }
  
  /* 9. HELP LINKS WRAP */
  .help-links-row { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  
  .hero-split { padding: 32px 0; }
  .hero-title { font-size: 28px; margin-bottom: 12px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 24px; }
  .login-box { padding: 24px 20px; }
  .login-box h3 { font-size: 18px; }
  
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-card { padding: 20px; }
  .f-card.no-border { padding-left: 20px; }
  
  .promo-text h2 { font-size: 22px; }
  .mock-card { width: 100%; max-width: 260px; height: 140px; padding: 16px; }
  .mock-logo { font-size: 12px; }
  .mock-number { font-size: 14px; }
  .mock-brand { font-size: 14px; bottom: 16px; right: 16px; }
  
  .section-title { font-size: 22px; margin-bottom: 24px; }
  .section-subtitle { font-size: 14px; margin-bottom: 24px; }
  .g-img { height: 140px; }
  .g-content { padding: 20px; }
  .g-content h4 { font-size: 16px; }
  
  .dark-promo-text h2 { font-size: 24px; }
  .dark-promo-text p { font-size: 14px; }
  .store-badges { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; max-width: 280px; }
  
  .c-img { height: 160px; }
  .c-content { padding: 20px; }
  .c-content h4 { font-size: 16px; }
  
  .help-links-row { flex-direction: column; align-items: stretch; }
  .h-link { justify-content: flex-start; }
  
  .phone-frame { width: 180px; height: 360px; }
  .phone-chart { font-size: 60px; }
}

/* ==================== ACCESSIBILITY ==================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible {
  outline: 2px solid var(--purple-mid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}