:root {
  --bg: #0a0a0f;
  --bg-gradient: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.18), transparent);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #9090a0;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --radius: 12px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled .nav {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  transition: padding 0.25s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).is-active {
  color: var(--text);
}

.nav-links a:not(.btn).is-active {
  position: relative;
}

.nav-links a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

a.logo,
a.logo:hover {
  color: var(--text);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.logo-sm {
  font-size: 1.125rem;
}

.logo:hover .logo-the {
  color: #8a8a9a;
}

.logo:hover .logo-name {
  color: var(--text);
}

.logo-mark {
  height: 1.5em;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.logo-the {
  font-weight: 300;
  color: #8a8a9a;
}

.logo-name {
  font-weight: 700;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--surface);
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn.ghost {
  background: transparent;
}

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-mark {
  width: 4.5rem;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(129, 140, 248, 0.35));
  animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust {
  padding: 0 0 2rem;
  text-align: center;
}

.trust-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.trust-value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.trust-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tech-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-mark {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  margin: 0 -0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.section-note {
  font-size: 0.8125rem !important;
  font-style: italic;
  opacity: 0.85;
}

.section-clients {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.client-types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  max-width: 640px;
  margin: 0 auto;
}

.client-types li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.work-grid {
  margin-bottom: 3rem;
}

.work-card {
  text-align: left;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.work-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.work-problem,
.work-outcome {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.work-problem strong,
.work-outcome strong {
  color: var(--text);
  font-weight: 600;
}

.testimonials {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.testimonials-heading {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0;
}

.testimonial p {
  font-size: 0.9375rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonials-note {
  text-align: center;
  margin-top: 0.5rem;
}

.engage-grid {
  align-items: stretch;
}

.engage-card {
  text-align: left;
  position: relative;
}

.engage-card--featured {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.06);
  padding-top: 2rem;
}

.engage-badge {
  position: absolute;
  top: -0.625rem;
  left: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
}

.engage-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.engage-duration {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.engage-card > p:not(.engage-duration):not(.engage-badge) {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.engage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.engage-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.125rem;
  position: relative;
}

.engage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-options .btn.primary {
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.section-contact {
  padding-bottom: 5rem;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  position: relative;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-form label span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #606070;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.5);
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.form-status--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.contact-email {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-page,
.error-page {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.error-page {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-back {
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 90;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    display: block;
    font-size: 1.125rem;
    color: var(--text);
  }

  .nav-links a:not(.btn).is-active::after {
    display: none;
  }

  .nav-links a:not(.btn).is-active {
    color: var(--accent);
  }

  .nav-links .nav-cta {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-mark {
    width: 3.5rem;
  }

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

  .actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section-alt {
    padding: 2rem 1.25rem;
  }

  .contact-options .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .contact-form .btn {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .trust-item {
    padding: 1rem 0.75rem;
  }
}
