:root {
  --bg: #0c0f1a;
  --card: #11162a;
  --accent: #6fd1ff;
  --accent-2: #9b8cfc;
  --text: #e8edf9;
  --muted: #a6b1d5;
  --stroke: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #6fd1ff, #9b8cfc);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(111, 209, 255, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(155, 140, 252, 0.12),
      transparent 30%
    ),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #020617;
  border-radius: 12px;
  font-weight: 600;
  z-index: 15;
  transition:
    transform 0.2s ease,
    left 0.2s ease;
}

.skip-link:focus {
  left: 4vw;
  transform: translateY(10px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

header,
main,
footer {
  width: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4vw;
  background: rgba(12, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stroke);
  padding: 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 5rem 4vw 4rem;
  gap: 2.5rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__content .lead {
  color: var(--muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero__meta .meta-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hero__visual {
  position: relative;
  min-height: 360px;
}

.floating-card {
  position: absolute;
  inset: auto 10% 40% 0;
  background: rgba(17, 22, 42, 0.8);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  max-width: 360px;
  animation: float 9s ease-in-out infinite;
}

.floating-card.delay {
  inset: 35% 0 0 20%;
  animation-delay: 1.5s;
}

.floating-card .tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #0c0f1a;
  font-weight: 700;
  font-size: 0.8rem;
}

.grid {
  position: absolute;
  inset: 18% 15% 12% 12%;
  border: 1px dashed var(--stroke);
  border-radius: 22px;
}

.orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(111, 209, 255, 0.4),
    rgba(12, 15, 26, 0)
  );
  filter: blur(6px);
  inset: 18% auto auto 30%;
}

.section {
  padding: 4rem 4vw;
}

.section__header {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section__header h2 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 1.5vw + 1rem, 2.6rem);
}

.section__subhead {
  color: var(--muted);
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.card,
.service-card,
.testimonial-card,
.work-card,
.contact__form,
.checklist {
  background: rgba(17, 22, 42, 0.8);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3,
.service-card h3,
.testimonial-card h4,
.contact__visual h3 {
  margin-top: 0;
}

.card {
  height: 100%;
}

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

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

.service-card ul {
  color: var(--muted);
  padding-left: 1.25rem;
}

.service-card .icon {
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.work {
  background:
    radial-gradient(
      circle at 60% 20%,
      rgba(111, 209, 255, 0.1),
      transparent 30%
    ),
    radial-gradient(
      circle at 30% 0%,
      rgba(155, 140, 252, 0.14),
      transparent 30%
    ),
    var(--bg);
}

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

.work-card__visual {
  height: 180px;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--stroke);
}

.gradient-one {
  background: linear-gradient(135deg, #ffcfdf 0%, #b0f3f1 100%);
}

.gradient-two {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.gradient-three {
  background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
}

.stats {
  background: #0f1424;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.stat {
  text-align: center;
  padding: 1.4rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(17, 22, 42, 0.7);
  box-shadow: var(--shadow);
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}

.stat__label {
  color: var(--muted);
  margin-top: 0.35rem;
}

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

.testimonial-card p {
  margin-top: 0;
  color: var(--text);
}

.testimonial__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.stars {
  letter-spacing: 0.05em;
  color: #ffd479;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form label {
  color: var(--muted);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
}

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

.contact__visual {
  position: relative;
  padding: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--gradient);
  color: #0c0f1a;
  font-weight: 700;
  margin-bottom: 1rem;
}

.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 0.4rem 0;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2.5rem 4vw;
  border-top: 1px solid var(--stroke);
  background: #0b0f1a;
  color: var(--muted);
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn.primary {
  background: var(--gradient);
  color: #0c0f1a;
  border-color: transparent;
}

.btn.ghost {
  color: var(--text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(12, 15, 26, 0.9);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn:focus,
.contact-link:focus,
.back-to-top:focus,
.nav a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero__content,
.card,
.service-card,
.work-card,
.stat,
.testimonial-card,
.contact__form,
.checklist,
.contact-link {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__content,
  .card,
  .service-card,
  .work-card,
  .stat,
  .testimonial-card,
  .contact__form,
  .checklist,
  .contact-link {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 76px;
    right: 4vw;
    background: rgba(12, 15, 26, 0.96);
    padding: 1rem;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--stroke);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
  }

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