:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-soft: rgba(124, 58, 237, 0.08);
  --purple-border: rgba(124, 58, 237, 0.25);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.14);
}

.btn-outline-dark {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b1120 0%, #172036 65%, #231942 100%);
  color: #fff;
  padding: 76px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #c4b5fd;
}

.hero-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 26px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.metric-lbl {
  font-size: 0.82rem;
  color: var(--slate-400);
}

.hero-media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow: 0 28px 60px -15px rgba(124, 58, 237, 0.35);
}

.hero-media img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

/* Logos Carousel */
.logos-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  overflow: hidden;
}

.logos-title {
  text-align: center;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
  font-weight: 700;
  margin-bottom: 20px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scroll-logos 28s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  min-width: 210px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.28);
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-name {
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.76rem;
  color: var(--slate-600);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin-bottom: 10px;
  color: var(--navy);
}

.section-head p {
  color: var(--slate-600);
}

/* AI Split Feature */
.ai-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.ai-feature img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.ai-feature h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.ai-feature p {
  color: var(--slate-600);
  margin-bottom: 14px;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow);
}

.card-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--slate-600);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.pill {
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--slate-700);
  font-weight: 500;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Contact CTA */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e1b4b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 44px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-box h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.cta-box p {
  color: #cbd5e1;
  max-width: 560px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--slate-600);
  font-size: 0.88rem;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

/* FAQ Section */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.faq-item h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--slate-600);
}

/* Contact Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  background: linear-gradient(135deg, var(--navy) 0%, #1e1b4b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 42px 36px;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.contact-info p {
  color: #cbd5e1;
  margin-bottom: 18px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.contact-form {
  background: #ffffff;
  color: var(--navy);
  padding: 26px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-status {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 960px) {
  .hero-grid,
  .ai-feature,
  .grid-3,
  .grid-2,
  .faq-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-media img {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 24px 22px;
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
  }

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

  .nav-links a {
    padding: 6px 0;
  }

  .section {
    padding: 52px 0;
  }

  .ai-feature,
  .contact-grid {
    padding: 24px 20px;
    gap: 24px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-metrics {
    gap: 18px;
  }
}
