:root {
  --bg: #06100d;
  --bg-soft: #0a1813;
  --panel: #0d2019;
  --panel-2: #10271f;
  --text: #f5f7f6;
  --muted: #aab8b2;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #a9f23d;
  --accent-2: #6fbe1f;
  --focus: #d7ff9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 8%, rgba(169, 242, 61, 0.10), transparent 28rem),
    linear-gradient(180deg, #06100d 0%, #07140f 42%, #050c09 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 13, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07110c;
  box-shadow: 0 10px 24px rgba(169, 242, 61, 0.18);
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

.nav-links .nav-cta {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #07110c;
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.menu-button span[aria-hidden="true"] {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 62ch;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #07110c;
  box-shadow: 0 15px 35px rgba(169, 242, 61, 0.13);
}

.button-primary:hover {
  background: #bbff54;
}

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(169, 242, 61, 0.45);
}

.hero-points {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  list-style: none;
  color: var(--muted);
}

.hero-points li {
  position: relative;
  padding-left: 1.2rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169, 242, 61, 0.18);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.stack-list {
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stack-list span,
.tech-tags span {
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #d9e3de;
  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.contact-card > div > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  min-height: 265px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.card-number {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.service-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.work-section {
  background:
    radial-gradient(circle at 15% 25%, rgba(169, 242, 61, 0.08), transparent 28rem),
    rgba(255, 255, 255, 0.012);
}

.case-study {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 1.1rem;
}

.case-copy,
.case-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.case-copy {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.case-meta {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1.6rem;
}

.case-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-meta strong {
  font-size: 1.15rem;
}

.case-copy > p {
  color: var(--muted);
}

.case-copy h3 {
  margin-top: 2rem;
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.6rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.case-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(4, 12, 9, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 750;
  text-align: left;
}

.process-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.process-list li {
  padding: 1.4rem;
  border-top: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
}

.process-list h3 {
  margin: 2.4rem 0 0;
  font-size: 1.25rem;
}

.process-list p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.contact-section {
  padding-top: 2rem;
}

.contact-card {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid rgba(169, 242, 61, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(169, 242, 61, 0.08), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.lightbox {
  width: min(94vw, 1100px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #050b08;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  border-radius: 20px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(5, 11, 8, 0.82);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .case-study,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    max-width: 760px;
  }

  .card-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-image img {
    min-height: auto;
  }
}

@media (max-width: 740px) {
  .section {
    padding: 4.2rem 0;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0a1813;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 0.75rem;
  }

  .nav-links .nav-cta {
    text-align: center;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    max-width: 15ch;
  }

  .hero-points,
  .gallery,
  .card-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 1.8rem;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
