/* Match Event Agency — design tokens & layout */

:root {
  --page-gutter: clamp(1.25rem, 5vw, 2.5rem);
  --bg-deep: #05020f;
  --bg-surface: #0f0824;
  --bg-elevated: #1a1035;
  --text: #f4f0ff;
  --text-muted: rgba(244, 240, 255, 0.72);
  --cyan: #22d3ff;
  --blue: #3b82f6;
  --purple: #7c3aed;
  --magenta: #d946ef;
  --gradient-brand: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  --glow-cyan: radial-gradient(ellipse at 20% 30%, rgba(34, 211, 255, 0.28), transparent 55%);
  --glow-magenta: radial-gradient(ellipse at 80% 70%, rgba(217, 70, 239, 0.22), transparent 55%);
  --shadow-glow: 0 0 40px rgba(34, 211, 255, 0.15), 0 0 60px rgba(217, 70, 239, 0.12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --heading-line-height: 1.1;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 4.5rem;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

a:focus-visible,
.btn:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  color: var(--text);
}

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

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  color: var(--bg-deep);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(34, 211, 255, 0.35), 0 0 70px rgba(217, 70, 239, 0.25);
  color: var(--bg-deep);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 2, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.header__logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
  background: var(--bg-deep);
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.header__nav a:not(.header__cta) {
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__nav a:not(.header__cta):hover {
  color: var(--cyan);
}

.header__cta {
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  text-align: center;
  border-bottom: none;
  align-self: stretch;
}

.nav-toggle:checked ~ .header__bar .header__nav {
  display: flex;
}

@media (max-width: 767px) {
  .header:has(.nav-toggle:checked)::after {
    content: "";
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-deep);
    z-index: 85;
  }
}

body:has(.nav-toggle:checked) {
  overflow: hidden;
}

.nav-toggle:checked ~ .header__bar .nav-toggle-label {
  position: relative;
  z-index: 110;
}

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

.nav-toggle:checked ~ .header__bar .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

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

@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .header__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
    gap: 1.5rem;
  }

  .header__nav a:not(.header__cta) {
    padding: 0;
    border: none;
    font-size: 0.9375rem;
  }

  .header__cta {
    margin-top: 0;
    margin-left: 0.5rem;
    align-self: center;
    width: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 6rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (min-width: 768px) {
  .hero__bg img {
    object-position: center center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 2, 15, 0.78) 0%,
    rgba(5, 2, 15, 0.52) 45%,
    rgba(5, 2, 15, 0.88) 100%
  );
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__glow--cyan {
  background: var(--glow-cyan);
}

.hero__glow--magenta {
  background: var(--glow-magenta);
}

.hero__trails {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__trails::before,
.hero__trails::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 3px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
}

.hero__trails::before {
  top: 35%;
  left: -20%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hero__trails::after {
  bottom: 30%;
  right: -20%;
  transform: rotate(6deg);
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 42rem;
}

.hero__tagline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
  color: var(--text);
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

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

/* Hero: portrait screens & wide desktop (left-aligned, under header) */
@media (orientation: portrait), (min-width: 1367px) {
  .hero {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: max(15rem, calc(var(--header-h) + 12vh));
    padding-bottom: clamp(2rem, 6vh, 4rem);
  }

  .hero__overlay {
    background:
      linear-gradient(
        to top,
        rgba(5, 2, 15, 0.94) 0%,
        rgba(5, 2, 15, 0.72) 28%,
        rgba(5, 2, 15, 0.25) 55%,
        rgba(5, 2, 15, 0.45) 100%
      ),
      linear-gradient(
        to right,
        rgba(5, 2, 15, 0.9) 0%,
        rgba(5, 2, 15, 0.55) 42%,
        rgba(5, 2, 15, 0.15) 68%,
        transparent 100%
      );
  }

  .hero__bg img {
    object-position: 58% 42%;
  }

  .hero__content {
    text-align: left;
    align-self: stretch;
    max-width: 72rem;
    width: 100%;
  }

  .hero__tagline {
    letter-spacing: 0.22em;
  }

  .hero__title {
    max-width: 18em;
  }

  .hero__lead {
    max-width: 32rem;
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

@media (min-width: 1367px) {
  .hero {
    padding-top: max(15rem, calc(var(--header-h) + 10.5rem));
    min-height: min(92svh, 900px);
  }

  .hero__bg img {
    object-position: 72% center;
  }

  .hero__title {
    max-width: 20em;
    font-size: clamp(2rem, 2.2vw, 3rem);
  }

  .hero__trails::before {
    top: 42%;
    left: 10%;
  }

  .hero__trails::after {
    bottom: 22%;
    right: 5%;
  }
}

@media (orientation: portrait) and (max-width: 1366px) {
  .hero__bg img {
    object-position: center 38%;
  }

  .hero__title {
    max-width: 14em;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow-cyan);
  opacity: 0.35;
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

/* About */
.about {
  background: var(--bg-deep);
}

.about__text {
  margin: 0 0 2.5rem;
  max-width: 42rem;
  color: var(--text-muted);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metrics__item {
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.metrics__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

.metrics__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 8, 36, 0.85);
  backdrop-filter: blur(8px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: var(--heading-line-height);
}

.service-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Benefits */
.benefits {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 40%, var(--bg-deep) 100%);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 8, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 255, 0.25);
    box-shadow: 0 8px 32px rgba(34, 211, 255, 0.08), 0 4px 24px rgba(217, 70, 239, 0.06);
  }
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 255, 0.15), rgba(217, 70, 239, 0.15));
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.benefit-card__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.benefit-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: var(--heading-line-height);
}

.benefit-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: clamp(3rem, 6vw, 4rem) 0 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer__brand img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: var(--heading-line-height);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: var(--heading-line-height);
}

.footer__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a,
.footer__list address {
  color: var(--text-muted);
}

.footer__list a:hover {
  color: var(--cyan);
}

.footer__cta {
  width: fit-content;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__legal p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Error page */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.error-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--glow-cyan), var(--glow-magenta);
  opacity: 0.5;
}

.error-page .header {
  position: relative;
  flex-shrink: 0;
}

.error-page__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
}

.error-page__content {
  text-align: left;
  max-width: 36rem;
}

.error-page__code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

.error-page__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

.error-page__text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer--compact {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding-top: 0;
  background: transparent;
  border-top: none;
}

.footer--compact .footer__legal {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
