:root {
  --primary-brand: #6366f1;
  --secondary-brand: #a855f7;
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --border: #27272a;
  --white: #ffffff;
  --font: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Consultation top bar */
.consultation-topbar {
  background: #18181b;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  z-index: 1001;
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-text {
  font-weight: 500;
  color: var(--text-secondary);
}

.topbar-btn {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 100%);
  color: var(--white);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-brand);
  border-radius: 50%;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn {
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 100%);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #27272a;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.text-sm {
  font-size: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 20px 80px 20px;
  text-align: center;
}

.ambient-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.ambient-glow.bg-blue {
  background-color: var(--primary-brand);
  top: 10%;
  left: 20%;
}

.ambient-glow.bg-purple {
  background-color: var(--secondary-brand);
  bottom: 10%;
  right: 20%;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge-tech {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-brand);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Sections */
section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Services */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-brand);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Work */
.work-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 350px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.9) 20%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.work-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.work-overlay span {
  color: var(--primary-brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contact */
.contact {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.lead-form {
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-brand) !important;
}

.mt-4 { margin-top: 16px; }
.w-full { width: 100%; }

.success-alert {
  margin-top: 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Logs Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1999;
}

.logs-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2000;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logs-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.log-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.log-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--primary-brand);
}

.log-msg {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
}
