/* ============================================
   MatchedU Marketing Site — style.css
   Brand: Gold #FFB800, Dark #0D0D0D, Cream #F5F5F0
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Factoria';
  src: url('assets/fonts/Factoria-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Factoria';
  src: url('assets/fonts/Factoria-Ultra.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Factoria';
  src: url('assets/fonts/Factoria-Demi.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --gold: #FFB800;
  --gold-hover: #FFCC40;
  --gold-dark: #E6A600;
  --gold-glow: rgba(255, 184, 0, 0.3);
  --gold-glow-strong: rgba(255, 184, 0, 0.5);

  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-card: #222222;
  --bg-card-hover: #2A2A2A;

  --text-primary: #F5F5F0;
  --text-secondary: #B8B8B0;
  --text-muted: #888880;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 184, 0, 0.2);

  --font-display: 'Factoria', 'Outfit', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 1200px;
  --section-padding: 120px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 30px var(--gold-glow-strong);
  transform: translateY(-1px);
}

.btn-primary-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px var(--gold-glow);
}

.btn-primary-lg:hover {
  box-shadow: 0 0 50px var(--gold-glow-strong);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13, 13, 13, 0.4) 0%,
      rgba(13, 13, 13, 0.6) 40%,
      rgba(13, 13, 13, 0.95) 100%
    ),
    url('assets/court_dark.jpeg') center/cover no-repeat;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .gold {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  animation: float 3s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Features Section --- */
.features {
  padding: var(--section-padding) 0;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.features-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* --- Feature Block --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block.reversed {
  direction: rtl;
}

.feature-block.reversed > * {
  direction: ltr;
}

.feature-text {
  padding: 20px 0;
}

.feature-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-description {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Screenshot Frame --- */
.feature-screenshot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px var(--border-subtle),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 184, 0, 0.05);
  transition: box-shadow 0.4s ease;
}

.feature-screenshot:hover {
  box-shadow:
    0 0 0 1px var(--border-gold),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 184, 0, 0.08);
  cursor: zoom-in;
}

.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-subtle);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

/* Screenshot placeholder (shown until real screenshots added) */
.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-subtle);
}

/* --- Bottom CTA Section --- */
.cta-section {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

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

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  margin: 0 auto 80px;
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }

  .feature-block.reversed {
    direction: ltr;
  }

  .feature-text {
    text-align: center;
    padding: 0;
  }

  .feature-screenshot {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-link.login-link {
    display: none;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .features-header {
    margin-bottom: 48px;
  }

  .feature-block {
    gap: 24px;
    margin-bottom: 60px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    gap: 16px;
  }
}
