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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #eef2ff;
  line-height: 1.5;
}

/* Layout Helpers */
.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #0b1020;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #a5b4fc;
  margin-bottom: 2rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 22, 0.96);
  border-bottom: 1px solid rgba(129, 140, 248, 0.25);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: #a5b4fc;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top, #1d1b86, #050816 55%);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: #c7d2fe;
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: #4f46e5;
  color: white;
}

.btn.primary:hover {
  background: #6366f1;
}

.btn.secondary {
  background: transparent;
  border-color: #4f46e5;
  color: #c7d2fe;
}

.btn.secondary:hover {
  background: rgba(79, 70, 229, 0.2);
}

/* Hero card */
.hero-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: #c7d2fe;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
  background: #0b1020;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: #cbd5f5;
}

/* About section */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.stats {
  display: grid;
  gap: 1rem;
}

.stat {
  background: #050816;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  color: #c7d2fe;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
}

.contact-form {
  background: #0b1020;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.contact-info {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.contact-info p + p {
  margin-top: 0.4rem;
}

/* Footer */
.footer {
  border-top: 1px solid #111827;
  padding: 1rem 0 1.5rem;
  margin-top: 2rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 3.25rem;
    padding: 0.75rem 1rem;
    background: #020617;
    border-radius: 0.75rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    flex-direction: column;
    min-width: 9rem;
  }

  .nav-links.nav-open {
    display: flex;
  }
}

@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
