:root {
  --background: #070a14;
  --surface: #0d111f;
  --surface-alt: #111729;
  --primary: #6c63ff;
  --primary-soft: rgba(108, 99, 255, 0.12);
  --primary-strong: #5246ff;
  --text: #f5f7ff;
  --text-muted: #c0c6dd;
  --accent: #3f8cff;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: radial-gradient(circle at 20% -10%, rgba(63, 140, 255, 0.5), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(108, 99, 255, 0.55), transparent 45%),
    linear-gradient(180deg, rgba(9, 13, 22, 0), rgba(7, 10, 20, 0.85));
  --shadow-lg: 0 32px 60px rgba(12, 18, 32, 0.65);
  --shadow-md: 0 18px 30px rgba(12, 18, 32, 0.45);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary);
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 32px rgba(82, 70, 255, 0.35);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(82, 70, 255, 0.4);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn.ghost:hover,
.btn.ghost:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 20, 0.7);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
}

.contact-link {
  background: rgba(108, 99, 255, 0.14);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: -2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(63, 125, 255, 0.5), transparent 60%);
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 4vw, 4.1rem);
  margin: 1rem 0;
  line-height: 1.1;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin: 1.8rem 0;
  flex-wrap: wrap;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.hero-highlights strong {
  color: #fff;
}

.hero-card {
  background: rgba(13, 17, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.hero-card .card-header {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.hero-card li {
  display: grid;
  gap: 0.4rem;
}

.card-title {
  font-weight: 600;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.trust {
  padding: 3rem 0;
  border-block: 1px solid var(--border);
  background: rgba(13, 17, 31, 0.7);
}

.trust-headline {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 2rem;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.6rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.services {
  padding: 5rem 0 6rem;
}

.services h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 3rem;
  max-width: 700px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}

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

.process {
  padding: 6rem 0;
  background: rgba(10, 14, 26, 0.76);
}

.process-intro {
  max-width: 620px;
}

.process h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 0;
  display: grid;
  gap: 1.8rem;
}

.process-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-md);
  gap: 1.5rem;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.work {
  padding: 6rem 0;
}

.work h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 640px;
}

.work-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.work-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2.2rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.work-meta {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.75rem;
}

.cta {
  padding: 4.5rem 0;
  background: linear-gradient(120deg, rgba(108, 99, 255, 0.18), rgba(63, 140, 255, 0.25));
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 0.5rem;
}

.about {
  padding: 6rem 0;
  background: rgba(9, 13, 24, 0.8);
}

.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 3rem;
  align-items: center;
}

.about-image {
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(108, 99, 255, 0.4), rgba(63, 140, 255, 0.2)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1100&q=80') center/cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text-muted);
}

.about-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-credentials .number {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

.about-credentials .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonials {
  padding: 6rem 0;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

blockquote {
  margin: 0;
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 19, 30, 0.7);
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-style: normal;
}

.contact {
  padding: 6rem 0;
  background: rgba(9, 13, 24, 0.85);
}

.contact .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 17, 31, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover,
.contact-card:focus {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-highlights {
  display: grid;
  gap: 0.6rem;
  margin: 1.6rem 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-highlights li::before {
  content: '•';
  color: var(--primary);
  line-height: 1;
  font-size: 1.2rem;
}

.contact-note {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form {
  background: rgba(13, 17, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
}

.form-cluster {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.contact-form .form-cluster:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.form-heading {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  color: inherit;
}

.grid-span-2 {
  grid-column: span 2;
}

.contact-form label {
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-form label.consent {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-alert.success {
  background: rgba(82, 216, 127, 0.12);
  border-color: rgba(82, 216, 127, 0.3);
  color: #d6ffe6;
}

.form-alert.error {
  background: rgba(255, 94, 94, 0.12);
  border-color: rgba(255, 94, 94, 0.25);
  color: #ffdada;
}

.form-alert[hidden] {
  display: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 11, 21, 0.9);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%), linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) calc(50% - 0.2rem), calc(100% - 1rem) calc(50% - 0.2rem);
  background-size: 7px 7px;
  background-repeat: no-repeat;
}

.contact-form label.consent input {
  width: auto;
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  accent-color: var(--primary);
}

.contact-form label.consent input:focus {
  outline: auto;
  box-shadow: none;
}

.form-footnote {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(6, 8, 16, 0.9);
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  color: var(--text-muted);
}

.footer-meta {
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  text-align: right;
}

.footer-meta a {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero .container,
  .about .container,
  .contact .container,
  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .about-image,
  .contact-form {
    order: 2;
  }

  .hero-content,
  .about-content,
  .contact-content {
    order: 1;
  }

  .service-grid,
  .work-grid,
  .testimonial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps li {
    grid-template-columns: 60px 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 5%;
    flex-direction: column;
    background: rgba(7, 10, 20, 0.92);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .services h2,
  .process h2,
  .work h2,
  .cta h2,
  .about h2,
  .testimonials h2,
  .contact h2 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .service-grid,
  .work-grid,
  .testimonial-list {
    grid-template-columns: 1fr;
  }

  .process-steps li {
    grid-template-columns: 1fr;
  }

  .process-steps {
    gap: 1.2rem;
  }

  .about-image {
    height: 260px;
  }
}

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

  .grid-span-2 {
    grid-column: auto;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 520px) {
  .site-header .container {
    width: 92vw;
  }

  .hero-card,
  .service-card,
  .work-card,
  blockquote,
  .process-steps li,
  .contact-form {
    padding: 1.6rem;
  }

  .cta .container {
    align-items: flex-start;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .footer-meta {
    align-items: flex-start;
  }
}
