/* ==========================================================================
   MXM Design - Atomic-style landing page
   ========================================================================== */

body.landing {
  overflow-x: hidden;
}

body.landing .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e1e;
}

body.landing .site-header:has(.mobile-nav.is-open) {
  background: rgba(6, 6, 6, 0.96);
}

body.landing .skip-link:focus {
  background: var(--color-accent);
  color: #0f1400;
}

/* Header */
.landing-header {
  position: relative;
  z-index: 20;
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
  gap: 2px;
  flex-shrink: 0;
}

.landing-logo span:nth-child(1),
.landing-logo span:nth-child(4) {
  background: #fff;
  border-radius: 1px;
}

.landing-logo span:nth-child(2),
.landing-logo span:nth-child(3) {
  background: #4e4e4e;
  border-radius: 1px;
}

.landing-nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #141414;
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 5px;
}

.landing-nav-pill a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #b9b9b9;
  white-space: nowrap;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.landing-nav-pill a:hover,
.landing-nav-pill a.is-active {
  color: #f2f2f2;
  background: #1e1e1e;
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-header .lang-toggle button {
  background: #141414;
  border-color: #232323;
  color: #b9b9b9;
}

.landing-header .lang-toggle button.is-active {
  background: #1e1e1e;
  color: #f2f2f2;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 16px;
  background: var(--color-accent);
  color: #0f1400;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #0f1400;
}

.btn-accent-lg {
  height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 14px;
}

.landing-header .nav-toggle span {
  background: #f2f2f2;
}

body.landing .mobile-nav {
  background: #0a0a0a;
  border-top: 1px solid #1e1e1e;
}

body.landing .mobile-nav a {
  color: #b9b9b9;
}

body.landing .mobile-nav a:hover {
  color: var(--color-accent);
}

/* Sections */
.landing-section {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.landing-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  text-align: center;
}

.landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e8e8e;
}

.landing-eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.landing-section-header h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f2f2f2;
}

/* Hero */
.landing-hero {
  position: relative;
  padding: 96px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.landing-hero__ring {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1020px, 95vw);
  height: min(1020px, 95vw);
  border-radius: 50%;
  border: 1px solid rgba(211, 249, 78, 0.55);
  box-shadow:
    0 0 120px 10px rgba(211, 249, 78, 0.1) inset,
    0 0 60px rgba(211, 249, 78, 0.08);
  pointer-events: none;
}

.landing-hero__radial {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 100vw);
  height: 760px;
  background: radial-gradient(
    ellipse at 50% 22%,
    rgba(211, 249, 78, 0.18) 0%,
    rgba(211, 249, 78, 0.05) 34%,
    rgba(0, 0, 0, 0) 62%
  );
  pointer-events: none;
}

.landing-hero__dots {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1016px, 92vw);
  height: 420px;
  border-radius: 508px 508px 0 0;
  overflow: hidden;
  background-image: radial-gradient(rgba(211, 249, 78, 0.55) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at 50% 4%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 42%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 4%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 42%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.landing-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.landing-hero__inner .landing-eyebrow::before {
  display: none;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #fff;
}

.landing-hero__subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: #9a9a9a;
}

/* Clients */
.landing-clients {
  padding: 60px 32px 100px;
  text-align: center;
}

.landing-clients h2 {
  margin: 0 0 56px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #c9c9c9;
}

.landing-clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 24px;
  color: #5e5e5e;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.landing-clients__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.landing-clients__item strong {
  color: #8a8a8a;
  font-weight: 500;
}

.landing-clients__item span {
  font-size: 11px;
  color: #5e5e5e;
}

/* Intro card */
.landing-intro {
  padding-bottom: 120px;
}

.landing-intro__card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 56px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.landing-intro__card p {
  margin: 0;
  max-width: 780px;
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #efefef;
}

/* Cards */
.landing-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: var(--landing-card-r);
  overflow: hidden;
}

.landing-card__body {
  padding: 8px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-card__body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f0f0f0;
}

.landing-card__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8a8a8a;
}

.landing-card__visual {
  margin: 16px;
  height: 200px;
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.landing-card--wide {
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.landing-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #121212;
  border: 1px solid #202020;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11.5px;
  color: #9c9c9c;
  white-space: nowrap;
}

.landing-tag::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* How it works */
.landing-how {
  padding-top: 80px;
  padding-bottom: 120px;
}

.landing-step {
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.landing-step svg {
  flex-shrink: 0;
}

.landing-step__content {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Work */
.landing-work {
  padding-bottom: 120px;
}

.landing-work__featured {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
}

.landing-work__browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #232323;
  background: #0c0c0c;
}

.landing-work__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #151515;
  border-bottom: 1px solid #202020;
}

.landing-work__browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a3a;
}

.landing-work__browser-body {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.landing-work__browser-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-work__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 14px;
}

.landing-work__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.landing-work__info h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f0f0f0;
}

.landing-work__info > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8a8a8a;
}

.landing-work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-work__tags span {
  background: #161616;
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #9c9c9c;
}

.landing-work__gallery-wrap {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 26px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.landing-work__gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.landing-work__gallery-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f0f0f0;
}

.landing-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-work-grid__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #232323;
  background: #0a0a0a;
}

.landing-work-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Stats */
.landing-stats {
  max-width: 1000px;
  padding-bottom: 130px;
}

.landing-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.landing-stat:nth-child(2) {
  border-left: 1px solid #1e1e1e;
  border-right: 1px solid #1e1e1e;
}

.landing-stat__number {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
}

.landing-stat__label {
  font-size: 13px;
  color: #8a8a8a;
  text-align: center;
}

/* FAQ */
.landing-faq {
  padding-bottom: 120px;
}

.landing-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.landing-faq details {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 18px 20px;
}

.landing-faq details[open] {
  border-color: #2b2b2b;
}

.landing-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  color: #e4e4e4;
}

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

.landing-faq details[open] summary {
  color: var(--color-accent);
}

.landing-faq__icon {
  font-size: 15px;
  color: #8e8e8e;
  flex-shrink: 0;
}

.landing-faq details p {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: #7e7e7e;
}

/* CTA */
.landing-cta {
  padding-bottom: 90px;
}

.landing-cta__box {
  position: relative;
  overflow: hidden;
  border: 1px solid #232323;
  border-radius: 18px;
  background: #0e0e0e;
  padding: 86px 40px;
  text-align: center;
}

.landing-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 130%,
    rgba(211, 249, 78, 0.3) 0%,
    rgba(211, 249, 78, 0.08) 35%,
    rgba(0, 0, 0, 0) 65%
  );
  pointer-events: none;
}

.landing-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.landing-cta__inner h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
}

.landing-cta__inner > p {
  margin: 0;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.65;
  color: #9a9a9a;
}

.landing-cta__form {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

body.landing .landing-cta .form-control {
  background: #141414;
  border-color: #262626;
  color: #ededed;
}

body.landing .landing-cta .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(211, 249, 78, 0.15);
}

body.landing .landing-cta label {
  color: #b9b9b9;
}

body.landing .landing-cta .form-error {
  color: #ff6b6b;
}

body.landing .landing-cta .form-note {
  color: #7e7e7e;
}

body.landing .landing-cta .form-success {
  background: rgba(211, 249, 78, 0.1);
  border-color: rgba(211, 249, 78, 0.3);
  color: var(--color-accent);
}

body.landing .landing-cta .form-submit-error {
  color: #ff6b6b;
}

.landing-cta__form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.landing-cta__status {
  font-size: 12px;
  color: #7e7e7e;
}

/* Footer */
.landing-footer {
  border-top: 1px solid #1a1a1a;
  padding: 26px 32px;
}

.landing-footer__inner {
  max-width: var(--landing-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .landing-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .landing-footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.landing-footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.landing-footer__links a {
  color: #7e7e7e;
}

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

.landing-footer__copy {
  font-size: 12px;
  color: #5e5e5e;
}

/* Anim prep */
html.js-anim-ready body.landing .landing-hero__inner > * {
  opacity: 0;
  transform: translateY(16px);
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-nav-pill {
    display: none;
  }

  .landing-clients__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-work__featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 16px 20px;
  }

  .landing-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-hero {
    padding: 64px 20px 80px;
  }

  .landing-clients {
    padding: 40px 20px 64px;
  }

  .landing-clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .landing-intro__card {
    padding: 32px 24px;
  }

  .landing-intro__card p {
    font-size: 20px;
  }

  .landing-grid-3,
  .landing-grid-2,
  .landing-faq__grid {
    grid-template-columns: 1fr;
  }

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

  .landing-stats__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-stat:nth-child(2) {
    border-left: none;
    border-right: none;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .landing-cta__box {
    padding: 48px 24px;
  }

  .landing-header .btn-accent:not(.landing-header .mobile-nav .btn-accent) {
    display: none;
  }
}
