/* ===== VARIABLES ===== */
:root {
  --bg: #050816;
  --bg2: #0a0f2e;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --primary: #6c63ff;
  --primary2: #8b5cf6;
  --accent: #00d4ff;
  --accent2: #f5576c;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --grad: linear-gradient(135deg, #6c63ff, #00d4ff);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --font: 'Inter', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
}

/* ===== RESET ===== */
*, *::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); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ===== GLASS MIXIN ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ===== TOP STRIP ===== */
#top-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5,8,22,0.95) 0%, rgba(8,12,36,0.9) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: none;
  padding: 8px 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}
.strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.strip-contact a {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.strip-contact a:hover { color: var(--accent); }
.strip-social { display: flex; gap: 12px; }
.strip-social a {
  color: var(--muted);
  font-size: 13px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.strip-social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,0.08); }

/* ===== MAIN HEADER ===== */
#main-header {
  position: fixed;
  top: 40px;
  left: 7%;
  right: 7%;
  z-index: 999;
  background: linear-gradient(135deg, rgba(10,15,46,0.72) 0%, rgba(5,8,22,0.68) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-radius: 0 0 22px 22px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 0 -1px 0 rgba(108,99,255,0.08);
  transition: all .35s cubic-bezier(0.4,0,0.2,1);
}
#main-header.scrolled {
  background: linear-gradient(135deg, rgba(5,8,22,0.97) 0%, rgba(10,15,46,0.94) 100%);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(108,99,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.2);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { font-family: var(--font2); font-size: 20px; font-weight: 700; }
.logo-pixel { color: var(--primary); }
.logo-playground { color: var(--accent); }
.logo-labs { color: var(--text); font-weight: 400; }
#main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
  display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: linear-gradient(160deg, rgba(10,15,46,0.98) 0%, rgba(5,8,22,0.96) 100%);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  /* padding-top creates the visual gap WITHOUT a dead hover zone */
  padding: 10px;
  padding-top: 18px;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(108,99,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 100;
}
/* Invisible bridge fills the gap between nav link and dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: all .2s;
  border-left: 2px solid transparent;
}
.dropdown-menu a i { color: var(--primary); width: 16px; flex-shrink: 0; }
.dropdown-menu a:hover { color: var(--text); background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(0,212,255,0.06)); border-left-color: var(--primary); padding-left: 12px; }
.nav-cta {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  margin-left: auto;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-nav a { color: var(--muted); font-size: 14px; padding: 10px; border-radius: 8px; }
.mobile-nav a:hover { color: var(--text); background: var(--surface); }
.mobile-nav.open { display: flex; }

/* ===== SECTION COMMONS ===== */
section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font2);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 16px;
  margin-bottom: 56px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.4); }
.btn-primary.small { padding: 10px 20px; font-size: 13px; border-radius: 10px; margin-top: 16px; }
.btn-primary.full { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  max-width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0,212,255,0.1) 0%, transparent 60%),
              var(--bg);
  padding-top: 120px;
  flex-wrap: wrap;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--accent); top: 20%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; background: var(--accent2); bottom: 10%; left: 30%; animation-delay: 4s; }
.shape-4 { width: 250px; height: 250px; background: var(--primary2); bottom: 20%; right: 5%; animation-delay: 1s; }
.shape-5 { width: 150px; height: 150px; background: var(--accent); top: 60%; left: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { flex: 1; min-width: 300px; max-width: 580px; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }
.hero-title {
  font-family: var(--font2);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub { font-size: 17px; color: var(--muted); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font2); font-size: 36px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat span:last-of-type { font-size: 24px; font-weight: 700; color: var(--muted); }
.stat p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* HERO VISUAL */
.hero-visual { flex: 1; min-width: 280px; max-width: 480px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.analytics-card {
  background: rgba(10,15,46,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.card-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.card-dot { width: 8px; height: 8px; border-radius: 50%; }
.card-dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-bottom: 16px; }
.bar { flex: 1; background: rgba(108,99,255,0.3); border-radius: 6px 6px 0 0; transition: height .3s; }
.bar.active { background: var(--grad); box-shadow: 0 0 16px rgba(108,99,255,0.5); }
.card-stat { font-size: 13px; color: #22c55e; display: flex; align-items: center; gap: 6px; }
.mini-card {
  position: absolute;
  background: rgba(10,15,46,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.mini-card i { font-size: 16px; }
.mc-1 { top: 0; right: 0; color: var(--accent); }
.mc-2 { bottom: 10%; left: -10%; color: #e1306c; }
.mc-3 { top: 35%; right: -5%; color: #facc15; }
.orbit-ring {
  position: absolute;
  width: 380px; height: 380px;
  border: 1px dashed rgba(108,99,255,0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.floating { animation: float 5s ease-in-out infinite; }
.floating-slow { animation: float 7s ease-in-out infinite; }

/* ===== ABOUT ===== */
#about { background: linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%); max-width:100%; padding:100px 24px; }
#about > * { max-width:1280px; margin-left:auto; margin-right:auto; }
.about-grid { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-img-wrap { position:relative; }
.about-img-glow { width:340px; height:340px; background:radial-gradient(circle,rgba(108,99,255,0.3) 0%,transparent 70%); border-radius:50%; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.about-card-stack { display:flex; flex-direction:column; gap:16px; }
.about-feature { display:flex; align-items:flex-start; gap:16px; background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:16px; padding:20px; transition:all .3s; }
.about-feature:hover { background:rgba(108,99,255,0.08); border-color:rgba(108,99,255,0.3); transform:translateX(4px); }
.about-feature > i { font-size:22px; background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-top:2px; }
.about-feature strong { display:block; font-weight:600; margin-bottom:4px; }
.about-feature p { font-size:13px; color:var(--muted); }
.about-content h3 { font-family:var(--font2); font-size:clamp(24px,4vw,36px); font-weight:700; margin-bottom:16px; }
.about-content p { color:var(--muted); margin-bottom:24px; line-height:1.8; }
.why-list { display:flex; flex-direction:column; gap:12px; margin-bottom:32px; }
.why-list li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--text); }
.why-list li i { color:#22c55e; margin-top:2px; }

/* ===== SERVICES ===== */
#services { background:var(--bg); }
.services-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:24px; }
.service-card {
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:20px;
  padding:28px;
  transition:all .3s;
  position:relative;
  overflow:hidden;
  cursor:default;
}
.service-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:var(--grad);
  transform:scaleX(0);
  transition:transform .3s;
}
.service-card:hover { background:rgba(108,99,255,0.06); border-color:rgba(108,99,255,0.25); transform:translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,0.3); }
.service-card:hover::before { transform:scaleX(1); }
.service-icon { width:52px; height:52px; background:rgba(108,99,255,0.12); border:1px solid rgba(108,99,255,0.2); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; background-clip:text; margin-bottom:20px; }
.service-icon i { background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.service-card h3 { font-family:var(--font2); font-size:18px; font-weight:700; margin-bottom:10px; }
.service-card p { font-size:14px; color:var(--muted); line-height:1.7; margin-bottom:20px; }
.service-link { font-size:13px; font-weight:600; color:var(--primary); display:inline-flex; align-items:center; gap:6px; transition:gap .2s; }
.service-link:hover { gap:10px; }

/* ===== PRICING ===== */
#pricing { background:linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%); max-width:100%; padding:100px 24px; }
#pricing > .section-tag, #pricing > .section-title, #pricing > .section-sub { max-width:1280px; margin-left:auto; margin-right:auto; display:block; }
.pricing-grid { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.pricing-card {
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:20px;
  padding:32px;
  position:relative;
  transition:all .3s;
}
.pricing-card:hover { transform:translateY(-6px); box-shadow:0 24px 48px rgba(0,0,0,0.35); border-color:rgba(108,99,255,0.3); }
.pricing-card.featured { background:rgba(108,99,255,0.08); border-color:rgba(108,99,255,0.4); }
.pricing-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--grad); color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:4px 14px; border-radius:50px; }
.pricing-icon { width:48px; height:48px; background:rgba(108,99,255,0.12); border:1px solid rgba(108,99,255,0.2); border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.pricing-icon i { font-size:20px; background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.pricing-card h3 { font-family:var(--font2); font-size:18px; font-weight:700; margin-bottom:16px; }
.pricing-rows { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.pricing-row { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted); padding:10px 0; border-bottom:1px solid var(--border); }
.pricing-row:last-child { border-bottom:none; }
.price { font-family:var(--font2); font-weight:700; color:var(--text); font-size:15px; }
.price small { font-size:11px; color:var(--muted); font-weight:400; }
.pricing-features { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.pricing-features li { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.pricing-features li i { color:#22c55e; font-size:11px; }
.pricing-note { font-size:12px; color:var(--muted); margin-bottom:12px; font-style:italic; }

/* ===== BLOG ===== */
#blog { background:var(--bg); }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.blog-card { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:20px; overflow:hidden; transition:all .3s; }
.blog-card:hover { transform:translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,0.3); border-color:rgba(108,99,255,0.3); }
.blog-img { height:180px; display:flex; align-items:flex-end; padding:16px; position:relative; }
.blog-cat { background:rgba(0,0,0,0.5); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.15); color:#fff; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1px; padding:4px 10px; border-radius:50px; }
.blog-body { padding:24px; }
.blog-body h4 { font-family:var(--font2); font-size:17px; font-weight:700; margin-bottom:10px; line-height:1.4; }
.blog-body p { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:16px; }
.blog-link { font-size:13px; font-weight:600; color:var(--primary); display:inline-flex; align-items:center; gap:6px; transition:gap .2s; }
.blog-link:hover { gap:10px; }

/* ===== CONTACT ===== */
#contact { background:linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%); max-width:100%; padding:100px 24px; }
#contact > .section-tag, #contact > .section-title, #contact > .section-sub { max-width:1280px; margin-left:auto; margin-right:auto; display:block; }
.contact-wrap { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1fr 1.5fr; gap:48px; align-items:start; }
.contact-info { display:flex; flex-direction:column; gap:20px; }
.contact-item { display:flex; align-items:flex-start; gap:16px; padding:20px; background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:16px; }
.contact-item > i { font-size:20px; background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-top:2px; }
.contact-item strong { display:block; font-weight:600; font-size:13px; margin-bottom:2px; }
.contact-item span { color:var(--muted); font-size:14px; }
.contact-socials { display:flex; gap:10px; }
.contact-socials a { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:10px; color:var(--muted); transition:all .2s; }
.contact-socials a:hover { color:var(--accent); border-color:var(--accent); background:rgba(0,212,255,0.08); }
.contact-form { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:24px; padding:36px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.form-group label { font-size:13px; font-weight:600; color:var(--text); }
.form-group input, .form-group select, .form-group textarea {
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  color:var(--text);
  font-size:14px;
  font-family:var(--font);
  transition:border-color .2s;
  outline:none;
  resize:vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--primary); background:rgba(108,99,255,0.05); }
.form-group select option { background:#0a0f2e; }
.form-success { display:flex; align-items:center; gap:8px; color:#22c55e; font-size:14px; margin-top:12px; padding:12px; background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.2); border-radius:10px; }
.form-success.hidden { display:none; }

/* ===== FOOTER ===== */
footer { background:var(--bg2); border-top:1px solid var(--border); position:relative; overflow:hidden; }
.footer-glow { position:absolute; top:0; left:50%; transform:translateX(-50%); width:600px; height:200px; background:radial-gradient(ellipse,rgba(108,99,255,0.15) 0%,transparent 70%); pointer-events:none; }
.footer-inner { max-width:1280px; margin:0 auto; padding:64px 24px 40px; display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:48px; }
.footer-brand p { font-size:14px; color:var(--muted); margin-top:12px; margin-bottom:20px; line-height:1.7; max-width:280px; }
.footer-socials { display:flex; gap:10px; }
.footer-socials a { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:8px; color:var(--muted); font-size:13px; transition:all .2s; }
.footer-socials a:hover { color:var(--accent); border-color:var(--accent); background:rgba(0,212,255,0.08); }
.footer-col { display:flex; flex-direction:column; gap:10px; }
.footer-col h4 { font-family:var(--font2); font-size:14px; font-weight:700; color:var(--text); margin-bottom:6px; }
.footer-col a { font-size:13px; color:var(--muted); transition:color .2s; display:flex; align-items:center; gap:6px; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { max-width:1280px; margin:0 auto; padding:20px 24px; border-top:1px solid var(--border); text-align:center; font-size:13px; color:var(--muted); }

/* ===== WHATSAPP ===== */
#whatsapp-btn {
  position:fixed;
  bottom:28px;
  right:28px;
  width:60px; height:60px;
  background:#25D366;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  z-index:9999;
  box-shadow:0 4px 20px rgba(37,211,102,0.4);
  transition:transform .2s;
}
#whatsapp-btn:hover { transform:scale(1.1); }
#whatsapp-btn .ripple {
  position:absolute;
  width:100%; height:100%;
  border-radius:50%;
  background:rgba(37,211,102,0.4);
  animation:ripple-wave 2s ease-out infinite;
}
#whatsapp-btn .ripple-2 { animation-delay:1s; }
#whatsapp-btn i { position:relative; z-index:1; }
@keyframes ripple-wave {
  0% { transform:scale(1); opacity:0.7; }
  100% { transform:scale(2.2); opacity:0; }
}

/* ===== SCROLL TOP ===== */
#scroll-top {
  position:fixed;
  bottom:100px;
  right:28px;
  width:44px; height:44px;
  background:rgba(108,99,255,0.2);
  border:1px solid rgba(108,99,255,0.3);
  color:var(--primary);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  z-index:9998;
  opacity:0;
  pointer-events:none;
  transition:all .3s;
}
#scroll-top.visible { opacity:1; pointer-events:all; }
#scroll-top:hover { background:var(--primary); color:#fff; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity:0; transform:translateY(32px); transition:opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media(max-width:1200px) {
  #main-header { left: 4%; right: 4%; }
}
@media(max-width:900px) {
  #main-header { left: 2%; right: 2%; border-radius: 0 0 16px 16px; }
  .about-grid, .contact-wrap { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  #main-nav, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .hero-visual { display:none; }
  .form-row { grid-template-columns:1fr; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  section { padding: 70px 20px; }
}
@media(max-width:640px) {
  #main-header { left: 0; right: 0; border-radius: 0 0 14px 14px; }
  .footer-inner { grid-template-columns:1fr; }
  .strip-contact { gap: 12px; }
  .strip-contact a:last-child { display:none; }
  .strip-social { gap: 8px; }
  .hero-stats { flex-wrap:wrap; gap:16px; }
  .hero-title { font-size: clamp(30px,8vw,48px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width:100%; justify-content:center; }
  .stat-num { font-size: 28px; }
  .header-inner { padding: 8px 16px; }
  .logo { font-size: 17px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-socials { flex-wrap: wrap; }
  .footer-brand p { max-width: 100%; }
  section { padding: 56px 16px; }
  #hero { padding: 0 16px; padding-top: 110px; }
}

/* ===== GLOBAL GLASSMORPHISM ENHANCEMENTS ===== */

/* Cards - unified glass treatment */
.service-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
.service-card:hover {
  background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,212,255,0.04) 100%);
  box-shadow: 0 24px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,99,255,0.2), inset 0 1px 0 rgba(108,99,255,0.1);
}
.pricing-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,212,255,0.05) 100%);
  box-shadow: 0 8px 32px rgba(108,99,255,0.15), inset 0 1px 0 rgba(108,99,255,0.15);
}
.pricing-card:hover {
  box-shadow: 0 24px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,99,255,0.25), inset 0 1px 0 rgba(108,99,255,0.1);
}
.about-feature {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.about-feature:hover {
  background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,212,255,0.04) 100%);
  box-shadow: 0 8px 24px rgba(108,99,255,0.15), inset 0 1px 0 rgba(108,99,255,0.1);
}
.blog-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.blog-card:hover {
  box-shadow: 0 20px 48px rgba(0,0,0,0.38), 0 0 0 1px rgba(108,99,255,0.2), inset 0 1px 0 rgba(108,99,255,0.08);
}
.analytics-card {
  background: linear-gradient(160deg, rgba(10,15,46,0.85) 0%, rgba(5,8,22,0.8) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}
.contact-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.contact-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Footer glass */
footer { backdrop-filter: blur(24px); }

/* ===== HERO SECTION TWEAK for floating header ===== */
#hero { padding-top: 130px; }

/* ===== SERVICE SECTION CARD LINKS ===== */
.service-card { cursor: pointer; }

/* ===== MOBILE NAV GLASS ===== */
.mobile-nav {
  background: linear-gradient(180deg, rgba(5,8,22,0.98) 0%, rgba(10,15,46,0.96) 100%);
  backdrop-filter: blur(32px);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 0 0 22px 22px;
  padding: 10px 20px 18px;
}
.mobile-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: all .2s;
}
.mobile-nav a:hover {
  color: var(--text);
  background: rgba(108,99,255,0.08);
  border-left-color: var(--primary);
}
.mobile-nav-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(148,163,184,0.4); padding: 10px 12px 4px; }

/* ===== SMOOTH SCROLL PADDING for fixed headers ===== */
html { scroll-padding-top: 110px; }

/* ===== HEADER ACTIVE NAV STATE ===== */
.nav-link.active { color: var(--accent); }

/* ===== SECTION TAG VARIANTS ===== */
.section-tag.green { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #22c55e; }
.section-tag.red { background: rgba(245,87,108,0.12); border-color: rgba(245,87,108,0.3); color: #f5576c; }

/* ===== WHATSAPP BTN enhancement ===== */
#whatsapp-btn { box-shadow: 0 8px 32px rgba(37,211,102,0.5), 0 0 0 1px rgba(37,211,102,0.2); }

/* ===== MOBILE NAV SCROLLABLE + OVERLAY ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  pointer-events: none;
  /* Slide panel */
}
.mobile-nav.open {
  display: block;
  pointer-events: all;
}
.mobile-nav-inner {
  position: absolute;
  top: 40px; /* below top strip */
  left: 0;
  right: 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(5,8,22,0.99) 0%, rgba(10,15,46,0.98) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 0 0 24px 24px;
  padding: 8px 0 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  /* Smooth slide in */
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), opacity .3s ease;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(108,99,255,0.4) transparent;
}
.mobile-nav.open .mobile-nav-inner {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-inner::-webkit-scrollbar { width: 4px; }
.mobile-nav-inner::-webkit-scrollbar-track { background: transparent; }
.mobile-nav-inner::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.4); border-radius: 4px; }
/* Translucent fade gradient at bottom to hint scroll */
.mobile-nav-inner::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: block;
  background: linear-gradient(to top, rgba(10,15,46,0.95) 0%, transparent 100%);
  pointer-events: none;
  flex-shrink: 0;
}
.mobile-nav-inner a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-left: 2px solid transparent;
  transition: all .18s;
  text-decoration: none;
}
.mobile-nav-inner a:hover, .mobile-nav-inner a:active {
  color: var(--text);
  background: rgba(108,99,255,0.08);
  border-left-color: var(--primary);
}
.mobile-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(148,163,184,0.35);
  padding: 16px 20px 6px;
}

/* =====================================================
   SITEWIDE ALIGNMENT FIXES
   ===================================================== */

/* --- Buttons: perfectly equal height, vertically centred --- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;          /* removes font-metric shifts */
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
}
.btn-primary { background: var(--grad); color: #fff; border: none; }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* --- Hero action row --- */
.hero-actions {
  display: flex;
  align-items: center;     /* vertically centre both buttons */
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* --- Service page hero button row --- */
.sp-hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- CTA band button row --- */
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* CTA band buttons same size as hero */
.cta-band .btn-primary,
.cta-band .btn-ghost,
.cta-band a.btn-ghost {
  padding: 13px 28px;
  font-size: 15px;
}

/* --- Section heading block: consistent top margin spacing --- */
.section-tag  { margin-bottom: 14px; }
.section-title { margin-top: 0; margin-bottom: 14px; }
.section-sub  { margin-top: 0; margin-bottom: 48px; line-height: 1.7; }

/* --- Centred section: tag + title + sub centred together --- */
.section-centre {
  text-align: center;
}
.section-centre .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* --- Pricing section on homepage: titles centred --- */
#pricing .section-tag,
#pricing .section-title,
#pricing .section-sub,
#about .section-tag,
#about .section-title,
#about .section-sub,
#services .section-tag,
#services .section-title,
#services .section-sub,
#blog .section-tag,
#blog .section-title,
#blog .section-sub,
#contact .section-tag,
#contact .section-title,
#contact .section-sub {
  display: block;
  text-align: center;
}
#pricing .section-sub,
#services .section-sub,
#blog .section-sub,
#contact .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero section: left-aligned text (not centred) --- */
#hero .section-tag,
#hero .section-title,
#hero .section-sub {
  text-align: left;
}

/* --- Service page hero: always left-aligned --- */
.sp-hero-content .section-tag,
.sp-hero-content h1,
.sp-hero-content p {
  text-align: left;
}

/* --- About section: left-aligned grid, not centred --- */
.about-grid .section-tag,
.about-grid .section-title {
  text-align: left;
}

/* --- Service card "Learn More" link: vertically centred icon --- */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Responsive: stack buttons full-width on small screens --- */
@media(max-width:480px) {
  .hero-actions,
  .sp-hero-btns,
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .sp-hero-btns .btn-primary,
  .sp-hero-btns .btn-ghost,
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost,
  .cta-btns a.btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   BUTTON WIDTH FIX � content-width everywhere
   ===================================================== */

/* All buttons shrink to their text by default */
.btn-primary,
.btn-ghost,
a.btn-ghost,
a.btn-primary {
  width: auto !important;
  align-self: flex-start;   /* prevents flex stretch from parent */
}

/* Only the contact form submit fills full width */
.btn-primary.full {
  width: 100% !important;
  align-self: auto;
}

/* Button rows: don't stretch children */
.hero-actions,
.sp-hero-btns,
.cta-btns {
  align-items: center;      /* vertically centre, NOT stretch */
}

/* Mobile � stack but still content-width centred */
@media(max-width:480px) {
  .hero-actions,
  .sp-hero-btns,
  .cta-btns {
    flex-direction: column;
    align-items: center;    /* centred, not stretched */
  }
  /* Only hero/cta buttons go full-width on very small screens */
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .sp-hero-btns .btn-primary,
  .sp-hero-btns .btn-ghost,
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost,
  .cta-btns a.btn-ghost {
    width: auto !important;   /* still content-width on mobile */
    min-width: 200px;         /* readable minimum */
    justify-content: center;
  }
}

/* =====================================================
   CRITICAL FIX � stop ALL stretching globally
   ===================================================== */

/* Section tag must NEVER be block � always inline */
.section-tag,
div.section-tag,
span.section-tag {
  display: inline-block !important;
  width: auto !important;
}

/* Centre sections: wrap the tag in text-align:center on the PARENT,
   not by making the tag itself block */
#pricing, #about, #services, #blog, #contact {
  text-align: center;
}
/* But left-align the inner grid/form content */
#pricing .pricing-grid,
#pricing .pricing-card,
#about .about-grid,
#services .services-grid,
#blog .blog-grid,
#contact .contact-wrap,
#contact .contact-form,
#contact .contact-info {
  text-align: left;
}

/* Buttons � NEVER stretch, always fit content */
.btn-primary,
.btn-ghost,
a.btn-primary,
a.btn-ghost,
button.btn-primary,
button.btn-ghost {
  display: inline-flex !important;
  width: auto !important;
  max-width: fit-content;
  align-self: center;
  flex-shrink: 0;
}

/* Only the form submit is full-width */
form .btn-primary.full,
.btn-primary.full {
  display: flex !important;
  width: 100% !important;
  max-width: none;
}

/* Small variant � still content-width */
.btn-primary.small {
  padding: 9px 18px !important;
  font-size: 13px !important;
  width: auto !important;
  display: inline-flex !important;
}
