/* Golf Team Match — marketing site */
:root {
  --bg: #071a12;
  --bg-elevated: #0e2419;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --primary: #5cff9a;
  --primary-soft: #3ddc84;
  --stroke: rgba(255, 255, 255, 0.14);
  --font-brand: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px clamp(16px, 4vw, 40px);
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid var(--stroke);
  background: rgba(7, 26, 18, 0.45);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  color: #04140c;
  background: var(--primary);
  border-color: var(--primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 72px 20px 48px;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 20, 12, 0.72) 0%, rgba(4, 20, 12, 0.28) 28%, rgba(4, 20, 12, 0.08) 55%, rgba(7, 26, 18, 0.55) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wordmark {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(40px, 9.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.18em;
  animation: riseIn 0.9s ease both;
}

.wordmark-sm {
  font-size: clamp(28px, 6vw, 48px);
}

.wordmark .w-golf {
  color: #fff;
  font-style: normal;
}

.wordmark .w-team {
  color: var(--primary);
  font-style: italic;
  font-weight: 800;
}

.wordmark .w-match {
  color: var(--primary-soft);
  font-style: normal;
}

.tagline {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  animation: riseIn 0.9s ease 0.1s both;
}

.hero-lead {
  margin: 0;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
  animation: riseIn 0.9s ease 0.16s both;
}

.hero-free {
  margin: 0;
  max-width: 42ch;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: riseIn 0.9s ease 0.18s both;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 4px;
  animation: riseIn 0.9s ease 0.22s both;
}

.web-app-btn {
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  animation: riseIn 0.9s ease 0.26s both;
}

.web-app-btn:hover {
  color: #04140c;
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.store-amp {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
}

.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  text-decoration: none;
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.features {
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 72px);
  width: min(1040px, 100%);
  margin: 0 auto;
}

.features-intro {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto;
}

.features-intro h2 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.features-also {
  margin: 14px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.45;
  max-width: 48ch;
  margin-inline: auto !important;
}

.features-also-label {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.35em;
}

.features-manual-cta {
  text-align: center;
  margin: 8px 0 0;
}

.features-manual-cta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.features-manual-cta a:hover {
  text-decoration: underline;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.feature-reverse {
  direction: rtl;
}

.feature-reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 38ch;
}

.feature-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  max-width: 360px;
  justify-self: center;
  width: 100%;
}

.feature-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  object-position: top center;
}

@media (max-width: 820px) {
  .feature,
  .feature-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
  }

  .feature-copy p {
    margin-inline: auto;
  }
}

.closing {
  padding: clamp(48px, 8vw, 80px) 20px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--stroke);
}

.site-footer {
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.page {
  padding: 110px clamp(16px, 4vw, 40px) 64px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.page h1 {
  font-family: var(--font-brand);
  letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 18px;
  font-weight: 800;
}

.page p,
.page li {
  color: var(--text-muted);
  font-size: 17px;
}

/* —— Manual —— */
.manual-page {
  width: min(880px, 100%);
}

.manual-lead,
.manual-mode-lead {
  max-width: 52ch;
  margin: 0 0 28px;
}

.manual-toc {
  margin: 0 0 48px;
  padding: 20px 22px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(14, 36, 25, 0.65);
}

.manual-toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.manual-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manual-toc a {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.manual-toc a:hover {
  text-decoration: underline;
}

.manual-section {
  margin: 0 0 56px;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}

.manual-section > h2 {
  margin: 28px 0 12px;
  font-family: var(--font-brand);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.manual-step {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
  margin: 28px 0 40px;
}

.manual-step-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: var(--text);
}

.manual-step-copy p {
  margin: 0;
  max-width: 40ch;
}

.manual-shot {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-width: 320px;
  justify-self: center;
  width: 100%;
}

.manual-section > .manual-shot {
  margin-top: 18px;
}

.manual-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  object-position: top center;
}

@media (max-width: 820px) {
  .manual-step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .manual-step-copy p {
    margin-inline: auto;
  }

  .manual-shot {
    max-width: 300px;
  }
}

.invite-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
}

.invite-code {
  font-family: var(--font-brand);
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 8px 0 18px;
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #04140c;
}

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

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .tagline,
  .hero-lead,
  .hero-free,
  .store-row,
  .web-app-btn {
    animation: none !important;
  }

  .hero-video {
    display: none;
  }

  .hero {
    background:
      radial-gradient(ellipse 70% 50% at 50% 30%, rgba(61, 220, 132, 0.16), transparent 60%),
      linear-gradient(180deg, #0a2418 0%, var(--bg) 55%, #05140e 100%);
  }
}

[hidden] {
  display: none !important;
}
