/* ═══════════════════════════════════
   GROWEB10X - Complete Design System
   ═══════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --navy:    #050d1a;
  --navy2:   #0a1628;
  --navy3:   #0f2040;
  --blue:    #0057ff;
  --blue2:   #1a6bff;
  --cyan:    #00c8ff;
  --gold:    #f5a623;
  --white:   #ffffff;
  --gray:    #8a97b0;
  --light:   #e8edf5;
  --border:  rgba(255,255,255,0.08);
  --card:    rgba(255,255,255,0.04);
  --success: #00c864;
  --danger:  #ff4d4d;
  --warning: #f5a623;
  --radius:  12px;
  --shadow:  0 4px 30px rgba(0,0,0,0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--gray); line-height: 1.7; font-weight: 300; }

.accent {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── NAV ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(5,13,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--gray); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-btn {
  background: var(--blue); color: var(--white);
  padding: 0.5rem 1.3rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--blue2); transform: translateY(-1px); color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,87,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,200,255,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; 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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,87,255,0.12);
  border: 1px solid rgba(0,87,255,0.3);
  color: var(--cyan);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

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

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

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
  border: none; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 0 25px rgba(0,87,255,0.3);
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: 0 8px 35px rgba(0,87,255,0.4); color: var(--white); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: var(--card); color: var(--white); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: var(--white); }

/* ─── SECTIONS ─── */
.section { padding: 90px 5%; }
.section-dark { background: var(--navy2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-center { text-align: center; }

.section-label {
  display: inline-block;
  color: var(--cyan); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-sub { color: var(--gray); font-size: 1rem; max-width: 580px; margin-top: 0.8rem; }
.section-center .section-sub { margin: 0.8rem auto 0; }

/* ─── CARDS ─── */
.card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(0,87,255,0.3); transform: translateY(-3px); }

.card-icon {
  width: 48px; height: 48px;
  background: rgba(0,87,255,0.1);
  border: 1px solid rgba(0,87,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ─── STATS ─── */
.stats-bar {
  background: var(--navy2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.5rem 5%;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}

.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label { color: var(--gray); font-size: 0.82rem; margin-top: 0.4rem; font-weight: 300; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; color: var(--light); font-size: 0.88rem; font-weight: 500; margin-bottom: 0.4rem; }

.form-control {
  width: 100%;
  background: var(--navy3); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.8rem 1rem;
  color: var(--white); font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.form-control::placeholder { color: var(--gray); }
.form-control:focus { border-color: var(--blue); }

textarea.form-control { min-height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── ALERTS ─── */
.alert {
  padding: 0.85rem 1.2rem; border-radius: 8px;
  font-size: 0.9rem; margin-bottom: 1rem;
}
.alert-success { background: rgba(0,200,100,0.1); border: 1px solid rgba(0,200,100,0.3); color: var(--success); }
.alert-danger  { background: rgba(255,77,77,0.1);  border: 1px solid rgba(255,77,77,0.3);  color: var(--danger);  }
.alert-info    { background: rgba(0,87,255,0.1);   border: 1px solid rgba(0,87,255,0.3);   color: var(--cyan);    }

/* ─── TABLE ─── */
.table { width: 100%; border-collapse: collapse; }
.table th { color: var(--gray); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.table td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--light); }
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── BADGES ─── */
.badge-status {
  display: inline-block;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-pending    { background: rgba(245,166,35,0.15); color: var(--gold); }
.badge-active     { background: rgba(0,200,100,0.15);  color: var(--success); }
.badge-completed  { background: rgba(0,87,255,0.15);   color: var(--cyan); }
.badge-rejected   { background: rgba(255,77,77,0.15);  color: var(--danger); }

/* ─── CHAT ─── */
.chat-wrap { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 70px); }

.chat-sidebar {
  background: var(--navy2); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1.5rem 0;
}

.chat-user {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.5rem; cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}
.chat-user:hover, .chat-user.active { background: var(--navy3); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; color: var(--white); flex-shrink: 0;
}

.chat-main { display: flex; flex-direction: column; }

.chat-header {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--navy2); display: flex; align-items: center; gap: 1rem;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.msg { display: flex; gap: 0.75rem; max-width: 70%; }
.msg.mine { flex-direction: row-reverse; align-self: flex-end; }

.msg-bubble {
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--light);
}
.msg.mine .msg-bubble {
  background: var(--blue); border-color: var(--blue);
  border-radius: 12px 12px 2px 12px; color: var(--white);
}

.msg-time { font-size: 0.72rem; color: var(--gray); margin-top: 0.3rem; }

.chat-input-bar {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--navy2);
  display: flex; gap: 0.75rem; align-items: center;
}

.chat-input {
  flex: 1; background: var(--navy3); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--blue); }

/* ─── ADMIN SIDEBAR ─── */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.admin-sidebar {
  background: var(--navy2); border-right: 1px solid var(--border);
  padding: 2rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.admin-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.5rem; color: var(--gray);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--white); background: rgba(0,87,255,0.08);
  border-left-color: var(--blue);
}

.admin-content { padding: 2rem; background: var(--navy); }

/* ─── BLOG ─── */
.post-card { background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.post-card:hover { border-color: rgba(0,87,255,0.3); transform: translateY(-3px); }
.post-img { width: 100%; height: 200px; object-fit: cover; background: var(--navy3); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-body { padding: 1.5rem; }
.post-cat { color: var(--cyan); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.post-body h3 { margin: 0.5rem 0; color: var(--white); font-size: 1.05rem; }
.post-body p { font-size: 0.88rem; margin: 0.5rem 0 1rem; }
.post-meta { display: flex; gap: 1rem; color: var(--gray); font-size: 0.78rem; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.2rem; }
.footer-col a { display: block; color: var(--gray); font-size: 0.88rem; margin-bottom: 0.6rem; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--gray); font-size: 0.82rem; }

/* ─── FADE IN ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--navy2); padding: 2rem; border-bottom: 1px solid var(--border); gap: 1.2rem; z-index: 998; }
  .hero { padding: 100px 1.5rem 60px; }
  .section { padding: 60px 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}

/* ═══════════════════════════════════
   MOBILE RESPONSIVE — COMPLETE FIX
   ═══════════════════════════════════ */

/* NAV LOGO IMAGE */
.nav-logo img { height: 42px; width: auto; display: block; }

/* MOBILE NAV MENU */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--navy2);
    padding: 1.5rem 1.2rem;
    border-top: 1px solid var(--border);
    gap: 0;
    z-index: 997;
    overflow-y: auto;
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light);
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .nav-links.open li a:hover,
  .nav-links.open li a.active {
    background: rgba(0,87,255,0.1);
    color: var(--white);
    border-bottom-color: rgba(0,87,255,0.2);
  }

  .nav-links.open .nav-btn {
    display: flex;
    justify-content: center;
    background: var(--blue);
    color: #fff !important;
    text-align: center;
    margin-top: 1rem;
    border-radius: 8px;
    border-bottom: none !important;
    padding: 0.9rem 1rem;
  }

  /* Hamburger animation */
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* HERO MOBILE */
@media (max-width: 768px) {
  .hero { padding: 90px 1.2rem 50px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* STATS */
  .stats-bar {
    grid-template-columns: repeat(2,1fr);
    padding: 1.5rem 1.2rem;
    gap: 1rem;
  }
  .stat-num { font-size: 1.8rem; }

  /* SECTIONS */
  .section { padding: 50px 1.2rem; }
  .section-dark { padding: 50px 1.2rem; }

  /* GRIDS → SINGLE COLUMN ON MOBILE */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }

  /* CARDS */
  .card { padding: 1.5rem; }

  /* PROCESS STEPS */
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  /* PRICING */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* FORMS */
  .form-row { grid-template-columns: 1fr; }

  /* WHY SECTION */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* FOOTER */
  .footer { padding: 3rem 1.2rem 2rem; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* CHAT */
  .chat-wrap { grid-template-columns: 1fr !important; }
  .chat-sidebar { display: none !important; }

  /* ADMIN */
  .admin-wrap { grid-template-columns: 1fr !important; }
  .admin-sidebar { display: none !important; }
  .admin-content { padding: 1.2rem; }

  /* BLOG */
  .post-card .post-img { height: 160px; }

  /* BUTTONS */
  .btn { padding: 0.8rem 1.4rem; font-size: 0.9rem; }
  .btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

  /* SECTION TITLE */
  h1 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }

  /* OFFER BANNER */
  #offerBanner { padding: 0.75rem 1.2rem; flex-direction: column; gap: 0.75rem; text-align: center; }

  /* WHATSAPP BTN */
  #wa-float { bottom: 1.2rem !important; right: 1.2rem !important; width: 48px !important; height: 48px !important; }

  /* TABLE OVERFLOW */
  .table { font-size: 0.8rem; }
  .table td, .table th { padding: 0.6rem 0.5rem; }
  .card[style*="padding:0"] { overflow-x: auto; }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero { padding: 100px 3rem 60px; }
  .section { padding: 70px 3rem; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }

  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3,1fr) !important;
  }
  [style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: repeat(3,1fr) !important;
  }
}

/* WHATSAPP BUTTON Z-INDEX FIX */
a[href*="wa.me"] { z-index: 9999 !important; }

/* ═══════════════════════════════
   MOBILE NAV — COMPLETE REWRITE
   ═══════════════════════════════ */

/* Force hide hamburger on desktop */
@media (min-width: 901px) {
  .hamburger { display: none !important; }
  .nav-links  { display: flex !important; }
}

/* Mobile nav */
@media (max-width: 900px) {

  .navbar {
    padding: 0 1.2rem;
    height: 64px;
  }

  .nav-logo span { font-size: 1.1rem !important; }
  .nav-logo img  { height: 32px !important; width: 32px !important; }

  /* Hide nav links by default */
  .nav-links {
    display: none !important;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: #0a1628;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 1rem 0;
    z-index: 996;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* Show when open */
  .nav-links.open {
    display: flex !important;
  }

  /* Each menu item */
  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links li a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    color: #8a97b0 !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left !important;
    justify-content: flex-start !important;
    transition: all 0.2s;
    -webkit-text-fill-color: #8a97b0 !important;
    background: transparent;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(0,87,255,0.08) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-left: 3px solid #0057ff;
    padding-left: calc(1.5rem - 3px) !important;
  }

  /* Free Audit button */
  .nav-links li a.nav-btn {
    margin: 1rem 1.2rem 0;
    background: #0057ff !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-radius: 8px;
    justify-content: center !important;
    border: none;
    padding: 0.85rem 1rem !important;
    font-weight: 600;
    border-bottom: none;
  }

  /* Hamburger show */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 998;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ═══════════════════════════════════
   PERFORMANCE + ACCESSIBILITY FIXES
   ═══════════════════════════════════ */

/* Prevent layout shift */
img { width: auto; height: auto; max-width: 100%; display: block; }
.nav-logo img { width: 38px; height: 38px; }

/* Reduce font reflow */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Accessibility — focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessibility — better contrast */
p, .stat-label, .section-sub { color: #9aa5bc; }
.post-body p { color: #9aa5bc; }
.footer-col a { color: #9aa5bc; }
.nav-links a { color: #9aa5bc; }

/* Skip to content link — accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Button accessibility */
button, .btn { cursor: pointer; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Form labels always visible */
.form-group label { font-weight: 500; color: #c8d0de; }

/* Image CLS fix */
.post-img { width: 100%; height: 200px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }

/* Reduce LCP — hero image preload hint */
.hero { contain: layout style; }
.hero-bg, .hero-grid { will-change: auto; }

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

/* FONT DISPLAY SWAP — prevents invisible text */
@font-face {
  font-family: 'Syne';
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  font-display: swap;
}

/* LCP OPTIMIZATION — hero text instant render */
.hero h1 {
  font-family: 'Syne', system-ui, sans-serif;
  will-change: auto;
}

/* Reduce paint areas */
.hero-bg, .hero-grid {
  will-change: auto;
  contain: strict;
}

/* Critical above-fold */
.navbar, .hero, .hero-content {
  contain: layout style;
}

/* PLUS JAKARTA SANS FONT */
:root { --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
body { font-family: var(--font); }
h1,h2,h3,h4,h5 { font-family: var(--font); }
.nav-logo span { font-family: var(--font) !important; }
.stat-num { font-family: var(--font); }
.step-num { font-family: var(--font); }
.price-amount { font-family: var(--font); }
.section-title { font-family: var(--font); }

/* HERO FONT — Syne wapas sirf hero h1 ke liye */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap');
.hero h1 { font-family: 'Syne', 'Plus Jakarta Sans', sans-serif !important; }

/* ═══════════════════════════════
   HERO FONT & LOGO COMPLETE FIX
   ═══════════════════════════════ */

/* LOGO FIX — no stretch */
.nav-logo { display:flex !important; align-items:center !important; gap:0.5rem !important; text-decoration:none !important; }
.nav-logo img { width:36px !important; height:36px !important; object-fit:contain !important; flex-shrink:0 !important; }
.nav-logo span { font-family:'Plus Jakarta Sans',sans-serif !important; font-size:1.15rem !important; font-weight:800 !important; letter-spacing:-0.02em !important; white-space:nowrap !important; }

/* HERO COMPLETE REDESIGN */
.hero { padding:130px 5% 80px !important; min-height:90vh !important; }

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  max-width: 680px !important;
}

/* Hero accent text */
.hero h1 .accent {
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0057ff, #00c8ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Hero subtitle */
.hero p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #9aa5bc !important;
  max-width: 520px !important;
  font-weight: 400 !important;
}

/* All page H1 same fix */
.section h1, section h1 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}

/* H2 fix */
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}

/* ═══════════════════════════════
   INSTANT PAGE LOADING STYLES
   ═══════════════════════════════ */

/* Page transition */
body {
  animation: pageIn 0.25s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
#page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0057ff, #00c8ff, #0057ff);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  z-index: 99999;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(0,87,255,0.5);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Link hover prefetch indicator */
a { position: relative; }

/* Page loading skeleton for content area */
.page-loading {
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

/* ═══════════════════════════════
   MOBILE NAV Z-INDEX FIX
   ═══════════════════════════════ */

/* Nav always on top */
.navbar {
  z-index: 9999 !important;
  position: fixed !important;
}

/* Mobile menu overlay — covers everything */
@media (max-width: 900px) {
  .nav-links.open {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9998 !important;
    background: #0a1628 !important;
    overflow-y: auto !important;
  }

  /* Body scroll lock when menu open */
  body.nav-open {
    overflow: hidden !important;
  }

  /* Hero and all sections below nav */
  .hero, section, .stats-bar, footer {
    position: relative;
    z-index: 1;
  }
}

/* ═══════════════════════════════
   MOBILE NAV — COMPLETE OVERRIDE
   ═══════════════════════════════ */

@media (max-width: 900px) {

  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    z-index: 99999 !important;
    background: rgba(5,13,26,0.98) !important;
    padding: 0 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99998 !important;
    background: #0a1628 !important;
    padding: 0.5rem 0 !important;
    overflow-y: auto !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }

  .nav-links.open li {
    width: 100% !important;
    list-style: none !important;
    display: block !important;
  }

  .nav-links.open li a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #c8d0de !important;
    -webkit-text-fill-color: #c8d0de !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
    transition: none !important;
  }

  .nav-links.open li a:hover,
  .nav-links.open li a.active {
    background: rgba(0,87,255,0.12) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-left: 3px solid #0057ff !important;
    padding-left: calc(1.5rem - 3px) !important;
  }

  .nav-links.open li a.nav-btn {
    margin: 1rem 1.2rem !important;
    width: calc(100% - 2.4rem) !important;
    background: #0057ff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 8px !important;
    justify-content: center !important;
    border-bottom: none !important;
    border-left: none !important;
    padding: 0.85rem 1rem !important;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    z-index: 99999 !important;
  }

  .hamburger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s !important;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0 !important;
    width: 0 !important;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }

  /* Page content goes below navbar */
  body > *:not(.navbar):not(#page-progress) {
    position: relative;
    z-index: 1;
  }

  /* When nav open — body scroll lock */
  body.nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

/* ═══════════════════════════════
   FINAL NAV FIX — HERO GRID ISSUE
   ═══════════════════════════════ */

/* Hero grid and bg must stay BEHIND nav */
.hero-grid, .hero-bg {
  z-index: 0 !important;
  pointer-events: none !important;
}

.hero {
  z-index: 1 !important;
}

.hero-content {
  z-index: 2 !important;
  position: relative !important;
}

/* Nav always highest */
.navbar {
  z-index: 99999 !important;
}

/* Nav open menu highest */
@media (max-width: 900px) {
  .nav-links.open {
    z-index: 99998 !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #0a1628 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    padding: 0.5rem 0 2rem !important;
  }

  /* Each nav item MUST be visible */
  .nav-links.open li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
  }

  .nav-links.open li a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e8edf5 !important;
    -webkit-text-fill-color: #e8edf5 !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 0.98rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    background: transparent !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 99999 !important;
  }
}
