:root {
  --navy: #1d1d2c;
  --purple: #7c78ff;
  --purple-dark: #6a66e8;
  --white: #ffffff;
  --light: #f4f6fb;
  --text: #5a5a72;
  --heading: #1d1d2c;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(29, 29, 44, 0.08);
  --font: "Poppins", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar a:hover {
  color: var(--purple);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--heading);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  background: var(--purple);
  border: none;
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(124, 120, 255, 0.35);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

/* Hero */
.hero {
  position: relative;
  padding: 70px 0 120px;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f1ff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(124, 120, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(29, 29, 44, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 120, 255, 0.12);
  color: var(--purple);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--purple);
  border-radius: var(--radius);
  opacity: 0.15;
  z-index: -1;
}

/* Feature cards overlap */
.feature-strip {
  margin-top: -80px;
  position: relative;
  z-index: 5;
  padding-bottom: 40px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card.highlight {
  background: var(--purple);
  color: var(--white);
}

.feature-card.highlight h3,
.feature-card.highlight p {
  color: var(--white);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(124, 120, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card.highlight .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.section {
  padding: 90px 0;
}

.section-light {
  background: var(--light);
}

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head .subtitle {
  color: var(--purple);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.about-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-images .accent-box {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--purple);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.check-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 4px;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card .icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(124, 120, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 22px;
}

.read-more {
  color: var(--purple);
  font-weight: 600;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: underline;
}

/* CTA banner */
.cta-banner {
  background: var(--purple);
  border-radius: var(--radius);
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  box-shadow: 0 16px 48px rgba(124, 120, 255, 0.35);
}

.cta-banner h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.6rem;
}

.cta-banner img {
  max-height: 100px;
  border-radius: 8px;
  opacity: 0.95;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.stat-box {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--purple);
  margin-bottom: 6px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card .quote {
  font-size: 48px;
  color: var(--purple);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: #ffb800;
  font-size: 14px;
}

/* Quote form section */
.quote-section {
  background: var(--light);
}

.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.quote-tab {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid #e0e0ef;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.quote-tab.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.quote-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dde0ee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 120, 255, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.field-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field-error.visible {
  display: block;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--purple);
  cursor: pointer;
  justify-self: start;
  align-self: start;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding-top: 1px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-group .field-error {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.form-success {
  display: none;
  background: #e8f8ef;
  border: 1px solid #2ecc71;
  color: #1e7e45;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body {
  padding: 22px;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card span {
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--purple);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple);
  margin: 16px 0;
}

.pricing-card ul {
  text-align: left;
  margin: 24px 0;
}

.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-date {
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2a2a42 100%);
  padding: 70px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 14px;
}

.breadcrumb a {
  color: var(--purple);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: 1.1rem;
}

.footer-about p {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--purple);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.social-links a:hover {
  background: var(--purple);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
}

.newsletter-row {
  display: flex;
  margin-top: 12px;
}

.newsletter-row .btn {
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
}

.footer-legal {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal a:hover {
  color: var(--purple);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.info-card {
  background: var(--light);
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.info-card h4 {
  color: var(--purple);
  margin-bottom: 8px;
}

.project-card img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .quote-grid,
  .contact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .feature-cards,
  .card-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .container {
    position: relative;
  }

  .feature-strip {
    margin-top: 40px;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 576px) {
  .team-grid,
  .footer-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}
