:root {
  --bg-dark: #0a0c0f;
  --bg-card: #14181d;
  --accent: #7b68ee;
  --accent-glow: rgba(123, 104, 238, 0.4);
  --text-light: #f1f5f9;
  --text-dim: #9ca3af;
  --border-dim: #2d3748;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: #e2e8f0;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

/* header */
header {
  background-color: rgba(10, 12, 15, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo a img {
  width: 200px;
  display: block;
  filter: brightness(1.05) drop-shadow(0 0 6px var(--accent-glow));
  transition: transform 0.2s;
}

.logo a img:hover {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu li a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-menu li a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #e2e8f0;
  background: transparent;
  border: none;
}

/* sections */
section {
  padding: 80px 0;
  border-bottom: 1px solid #1e293b;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  display: inline-block;
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  letter-spacing: -0.5px;
}

.section-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.subsection-title {
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  color: #b9c3d4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subsection-title i {
  color: var(--accent);
}

/* hero */
.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(to right, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text .highlight {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 1.5rem 0 2rem;
  max-width: 600px;
}

.company-tagline {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0c0f;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: 0.2s;
  border: none;
  cursor: pointer;
  margin-right: 0.75rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: #e2e8f0;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #0a0c0f;
}

.hero-avatar {
  width: 260px;
  height: 260px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 20px 30px -10px rgba(123, 104, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  justify-self: center;
}

.hero-avatar i {
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.9;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--border-dim);
  box-shadow: 0 15px 25px -12px black;
}

.about-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-card p {
  color: #b0b8c5;
}

.about-card .small-lead {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-note {
  margin-top: 2rem;
  font-size: 1rem;
  color: #9aa6b5;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.team-note-alt {
  margin-top: 1rem;
}

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  border: 1px solid #28303f;
  transition: 0.25s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 25px -8px var(--accent-glow);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #e2e8f0;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.centered-badges {
  justify-content: center;
  margin-top: 3rem;
}

.badge {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #334155;
}

/* expertise */
#expertise {
  background: #0b1120;
}

#expertise .section-title,
#tech-stack .section-title,
#trusted .section-title,
#products .section-title,
#labs .section-title {
  text-align: left;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.expertise-card {
  background: #0f172a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  text-align: center;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.expertise-icon {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 15px;
}

.expertise-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.expertise-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* tech stack */
#tech-stack {
  background: var(--bg-card);
}

.tech-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}

.tech-item {
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.01);
}

.tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(123, 104, 238, 0.12);
}

.tech-item i {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}

.tech-item span {
  display: block;
  color: var(--text-light);
  font-size: 14px;
}

/* trusted */
#trusted {
  background: var(--bg-dark);
}

.stats-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-dim);
}

/* products */
#products {
  background: var(--bg-card);
}

.products-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  padding: 30px;
  border-radius: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.product-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 15px;
}

.product-card h3 {
  color: var(--text-light);
  margin-bottom: 10px;
}

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

/* labs */
#labs {
  background: #0b1120;
}

.labs-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 30px;
  transition: 0.3s ease;
}

.lab-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(123, 104, 238, 0.14);
}

.lab-icon {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}

.lab-card h3 {
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lab-card p {
  color: var(--text-dim);
}

/* CTA */
.cta-section {
  background: linear-gradient(145deg, #141b24, #0f151d);
  border-radius: 40px;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid #2a3442;
  margin: 20px 0;
}

.cta-section h2 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #a4b1c2;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-top-actions {
  margin-bottom: 20px;
}

.cta-meta {
  margin-top: 2rem;
  color: #7f8fa0;
}

.contact-form {
  max-width: 700px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2b3546;
  background: #0f1623;
  color: #fff;
  font-size: 15px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a0aec0;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  cursor: pointer;
  width: 100%;
}

/* footer */
footer {
  background-color: #0b0e12;
  padding: 40px 0;
  border-top: 1px solid #202731;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  color: #6f7a8c;
  font-size: 0.95rem;
}

.social-links a {
  color: #cbd5e1;
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

/* mobile */
@media (max-width: 768px) {
  .logo a img {
    width: 150px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: #14181d;
    width: 70%;
    height: 100vh;
    padding: 3rem 0;
    gap: 2rem;
    border-right: 1px solid var(--border-dim);
    transition: left 0.3s ease;
    z-index: 99;
    text-align: center;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li a {
    font-size: 1.2rem;
  }
}

@media (max-width: 700px) {
  section {
    padding: 50px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-avatar {
    order: -1;
    margin: 0 auto 20px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    margin-bottom: 10px;
  }

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

  .cta-section {
    padding: 3rem 1.5rem;
    border-radius: 24px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links a {
    margin: 0 0.5rem;
  }
}