/* Corebits.AI — Custom Styles */
:root {
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --blue-light: #3385FF;
  --dark-900: #0a0a0f;
  --dark-800: #111118;
  --dark-700: #1a1a24;
  --dark-600: #24243a;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--dark-900);
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,102,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,102,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
}
.section-dark { background: var(--dark-800); }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.7;
}

/* Cards */
.card {
  background: var(--dark-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,102,255,0.3);
  box-shadow: 0 8px 32px rgba(0,102,255,0.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,102,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Pricing */
.pricing-card {
  background: var(--dark-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,102,255,0.3);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(0,102,255,0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-400);
}
.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-300);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 8px;
  width: 100%;
  justify-content: center;
}

/* Stats */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Testimonial */
.testimonial-card {
  background: var(--dark-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
}
.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  color: #fff;
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Footer */
.footer {
  background: var(--dark-800);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 1.5rem 2rem;
}
.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--blue); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  z-index: 40;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

/* Animations - default visible, JS adds .animate-ready to hide then reveal on scroll */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.animate-ready {
  opacity: 0;
  transform: translateY(24px);
}
.fade-in.animate-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-600);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Page header */
.page-header {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}
.page-header .hero-bg,
.page-header .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Service section tabs */
.service-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-section:last-child { border-bottom: none; }

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-toggle { display: block; }
  .section-title { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
  .stat-number { font-size: 2.25rem; }
  .section { padding: 4rem 1.5rem; }
}
