/* ClubArena Website Styles */

/* ===== CSS Variables ===== */
:root {
  --color-background: #0a0a0f;
  --color-surface: #1a1a2e;
  --color-surface-hover: #252540;
  --color-primary: #00b4d8;
  --color-primary-hover: #0096c7;
  --color-secondary: #0077b6;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: #2a2a4a;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--color-text-muted);
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 180, 216, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-text);
}

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

.btn-ghost:hover {
  color: var(--color-text);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.5)) drop-shadow(0 0 80px rgba(0, 180, 216, 0.3));
  animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.5)) drop-shadow(0 0 80px rgba(0, 180, 216, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(0, 180, 216, 0.6)) drop-shadow(0 0 100px rgba(0, 180, 216, 0.4));
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.mockup-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-content {
  background: var(--color-background);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 400px;
}

.mockup-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mockup-kpi {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--color-border);
}

.mockup-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.mockup-kpi-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mockup-match {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}

.mockup-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mockup-match-team {
  font-weight: 600;
  color: var(--color-primary);
}

.mockup-match-badge {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 180, 216, 0.1);
  color: var(--color-primary);
  border-radius: 4px;
}

.mockup-match-opponent {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.mockup-match-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ===== Features Section ===== */
.features {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 180, 216, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9375rem;
}

/* ===== Benefits Section ===== */
.benefits {
  padding: 6rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-content h2 {
  margin-bottom: 1.5rem;
}

.benefits-content > p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefits-list .check-icon {
  width: 24px;
  height: 24px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefits-list .check-icon svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
}

.benefits-list strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.benefits-list p {
  font-size: 0.9375rem;
  margin: 0;
}

.benefits-visual {
  position: relative;
}

.visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.visual-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.visual-card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
}

.visual-card h4 {
  font-size: 1rem;
  color: var(--color-text);
}

.visual-card-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
}

.visual-card-stat span:first-child {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.visual-card-stat span:last-child {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== Communication Section ===== */
.communication {
  padding: 6rem 0;
  background: var(--color-surface);
}

.communication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.communication-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comm-preview {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.875rem;
}

.comm-preview.story {
  aspect-ratio: 9/16;
  grid-row: span 2;
}

.comm-preview span {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* ===== CTA Section ===== */
.cta {
  padding: 6rem 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.1));
  border: 1px solid var(--color-primary);
  border-radius: 24px;
  padding: 4rem 2rem;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  fill: none;
}

.footer-social a:hover svg {
  stroke: white;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 8rem 0 4rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.legal-page p {
  margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.legal-page strong {
  color: var(--color-text);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    display: flex;
    justify-content: center;
  }

  .hero-logo-img {
    width: 120px;
    height: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .benefits-grid,
  .communication-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

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

  .comm-preview.story {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
