@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Matchclub Technologies — shared site styles */

:root {
  --bg: #080808;
  --bg-elev: #0c0c0c;
  --bg-card: #101010;
  --bg-header: rgba(8, 8, 8, 0.94);
  --text: #ffffff;
  --muted: #cfcfcf;
  --dim: #9a9a9a;
  --accent: #FF6B6B;
  --accent-2: #ff8585;
  --border: #222222;
  --border-soft: #1a1a1a;
  --header-h: 72px;
  --radius: 6px;
  --max: 1120px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.nav > a,
.nav .has-dropdown > a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

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

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: #0e0e0e;
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  box-shadow: var(--shadow);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 9px 18px;
  line-height: 1.35;
}

.dropdown a:hover {
  color: #fff;
  background: #161616;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #111 !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(232, 93, 76, 0.12);
}

.nav .btn {
  margin-left: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  line-height: 1.2;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #050505;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.42) 55%, rgba(8, 8, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.15) 0%, rgba(8, 8, 8, 0.72) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
}

.hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero .lead,
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
}

.hero-center {
  min-height: 340px;
  text-align: center;
}

.hero-center .hero-inner {
  width: 100%;
}

.hero-center h1 {
  max-width: none;
  margin: 0 auto;
}

.hero-compact {
  min-height: 280px;
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-intro {
  color: var(--muted);
  max-width: 720px;
  font-size: 16px;
  margin-bottom: 40px;
}

.section-intro p + p {
  margin-top: 16px;
}

.center-copy {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.center-copy h2 {
  margin-bottom: 18px;
}

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

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px 28px;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
  background: #12141a;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.card .more {
  margin-top: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

a.card:hover .more {
  color: var(--accent-2);
}

/* ---------- Offer grid (service pages) ---------- */

.offer-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1.5fr;
  gap: 48px 64px;
  align-items: start;
}

.offer-layout > h2 {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin: 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.offer-item .num {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.offer-item p {
  color: var(--muted);
  font-size: 14.5px;
}

.intro-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Partners ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.partner {
  border: 1px solid var(--border);
  background: #0b0b0b;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
}

.partner img {
  max-height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.partner .name {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

/* ---------- Split / story ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.split-media .overlay-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.42);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose p + p {
  margin-top: 18px;
}

.prose p {
  color: var(--muted);
}

/* ---------- Form ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-split .divider-copy {
  color: var(--muted);
  font-size: 17px;
  padding-top: 12px;
}

.contact-split > div:last-child {
  border-left: 1px solid var(--border);
  padding-left: 48px;
}

@media (max-width: 900px) {
  .contact-split > div:last-child {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 93, 255, 0.18);
}

.form-actions {
  margin-top: 22px;
}

.form-actions .btn {
  min-width: 160px;
  padding: 12px 28px;
}

.thanks {
  display: none;
  border: 1px solid var(--border);
  background: #101410;
  padding: 40px 32px;
  font-size: 22px;
  font-weight: 700;
}

.thanks.show {
  display: block;
}

form.hidden {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 24px;
  background: #070707;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand img {
  height: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--dim);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: #666;
  font-size: 12px;
}

/* ---------- 404 / empty ---------- */

.empty-state {
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.empty-state h2 {
  font-size: 28px;
  margin: 0;
}

.empty-state p {
  color: var(--dim);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  z-index: 0;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid,
  .card-grid-4,
  .card-grid-5,
  .offer-grid,
  .partners,
  .split,
  .offer-layout,
  .contact-split,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .offer-layout > h2 {
    position: static;
  }

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

  .hero {
    min-height: 420px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav > a,
  .nav .has-dropdown > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav .btn {
    margin: 16px 0 4px;
    width: 100%;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0 0 8px 12px;
  }

  .has-dropdown.open .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block;
    transform: none;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown,
  .has-dropdown.open:hover .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 10px 8px;
  }

  .wrap,
  .wrap-wide {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 72px 0 64px;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .partners {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}


/* live-site match */
.card h3 { color: #7b8cff; font-weight: 600; }
.hero .btn { margin-top: 28px; }
.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
}
.partner {
  border-right: 1px solid var(--border);
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
}
.partner:last-child { border-right: none; }
.partner img { max-height: 72px; width: auto; margin: 0 auto; }
.partner-label {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}
.partner-wordmark { color: #d4a017; font-weight: 800; font-style: italic; letter-spacing: 0.06em; font-size: 22px; }
@media (max-width: 800px) {
  .partners { grid-template-columns: 1fr 1fr; }
  .partner { border-right: none; border-bottom: 1px solid var(--border); }
}


/* copy-rewrite additions */
.card-grid-5 {
  grid-template-columns: repeat(3, 1fr);
}

.also-staffed {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  list-style: none;
  counter-reset: step;
  max-width: 640px;
  margin: 8px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.partner-blurb {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  max-width: 200px;
}

.intro-block p + p {
  margin-top: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.field textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  min-height: 96px;
  resize: vertical;
}

.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 93, 255, 0.18);
}

.thanks {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
