/* ============================================================
   LogicBot — Global Design System
   Dark Glassmorphism + Electric Blue Neon Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary:    #080d1a;
  --bg-surface:    #0d1528;
  --bg-card:       #111e3a;
  --bg-card-hover: #162448;
  --accent:        #00c2ff;
  --accent-2:      #0066ff;
  --accent-glow:   rgba(0, 194, 255, 0.25);
  --accent-border: rgba(0, 194, 255, 0.2);
  --success:       #00e5a0;
  --warning:       #ffb820;
  --text-primary:  #eef2ff;
  --text-secondary:#a8b8d8;
  --text-muted:    #5a6d8f;
  --white:         #ffffff;
  --glass-bg:      rgba(13, 21, 40, 0.7);
  --glass-border:  rgba(0, 194, 255, 0.15);
  --shadow-glow:   0 0 40px rgba(0, 102, 255, 0.15);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-width: 1280px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }

/* ---------- Selection ---------- */
::selection { background: rgba(0, 194, 255, 0.3); color: var(--white); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.35);
}

.btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent-border);
}

.btn-outline:hover {
  background: rgba(0, 194, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 194, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(0,194,255,0.15) 0%, rgba(0,102,255,0.15) 100%);
  border: 1px solid var(--accent-border);
  margin-bottom: 20px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand/Logo */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  z-index: 2;
  text-decoration: none;
}

.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.brand span { color: var(--accent); }

/* Nav Links */
.nav-links {
  display: flex; align-items: center; gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: calc(100% + 8px);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mega-menu-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.mega-menu-item:hover {
  background: rgba(0, 194, 255, 0.08);
}

.mega-menu-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(0, 194, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mega-menu-text h4 {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.mega-menu-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  border-top: 1px solid var(--glass-border);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--accent);
  background: rgba(0,194,255,0.05);
  border-color: var(--accent-border);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 12px 0;
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-height); }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0, 102, 255, 0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 194, 255, 0.1) 0%, transparent 60%),
              var(--bg-primary);
}

.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,194,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 24px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.trust-scroll-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.trust-scroll-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.trust-item:hover { opacity: 1; }
.trust-item-icon { font-size: 20px; }

/* ---------- Sections Background Alternation ---------- */
.section-dark { background: var(--bg-primary); }
.section-surface { background: var(--bg-surface); }

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-accent { background: rgba(0,194,255,0.15); color: var(--accent); border: 1px solid rgba(0,194,255,0.25); }
.badge-success { background: rgba(0,229,160,0.15); color: var(--success); border: 1px solid rgba(0,229,160,0.25); }
.badge-warning { background: rgba(255,184,32,0.15); color: var(--warning); border: 1px solid rgba(255,184,32,0.25); }

/* ---------- Stats ---------- */
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-pill strong { color: var(--text-primary); }

/* ---------- Rating Stars ---------- */
.stars { color: #fbbf24; letter-spacing: 1px; }

/* ---------- Footer ---------- */
.footer {
  background: #050a14;
  border-top: 1px solid var(--glass-border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 24px;
}

.footer-social {
  display: flex; gap: 10px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.social-btn:hover {
  background: rgba(0,194,255,0.15);
  border-color: var(--accent-border);
  color: var(--accent);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex; align-items: center; gap: 6px;
}

.footer-link:hover { color: var(--accent); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ---------- Gradient Divider ---------- */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ---------- Input / Form ---------- */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  background: rgba(0,194,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.1);
}

.form-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.1);
}

.form-select option { background: var(--bg-surface); color: var(--text-primary); }

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, rgba(0,102,255,0.12) 0%, transparent 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,194,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions .btn:not(.btn-primary) { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,194,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,194,255,0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tag Chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,194,255,0.08);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ---------- Tooltip ---------- */
[data-tooltip] { position: relative; }

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ---------- Number Accent ---------- */
.number-accent {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
