/* ===== Darts Tournament Manager — Promo Website Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #2563EB;
  --color-primary-light: #3B82F6;
  --color-primary-glow: #60A5FA;
  --color-secondary: #22C55E;
  --color-bg-start: #020617;
  --color-bg-end: #0F172A;
  --color-surface: #0B1220;
  --color-surface-border: rgba(148,163,184,0.1);
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-dim: #334155;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--color-bg-start), var(--color-bg-end));
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-glow); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-surface-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--color-text-primary);
  white-space: nowrap;
}
.nav-brand .brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--color-text-secondary); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius); transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
  background: rgba(37,99,235,0.1);
}

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--color-text-secondary);
  margin: 5px 0; transition: all .3s; border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(2,6,23,0.95); backdrop-filter: blur(16px);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid var(--color-surface-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
}

/* ===== Hero Section ===== */
.hero {
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: 20%; left: 50%; transform: translate(-50%, -30%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(59,130,246,0.3);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--color-primary-glow); margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--color-primary-light); }
.hero-desc {
  font-size: 17px; color: var(--color-text-secondary);
  max-width: 480px; line-height: 1.7; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero device mockup */
.hero-device { position: relative; z-index: 2; display: flex; justify-content: center; }
.device-frame {
  position: relative; max-width: 280px; width: 100%;
  background: #111827; border-radius: 36px; padding: 12px;
  box-shadow: 0 0 60px rgba(37,99,235,0.15), 0 25px 50px rgba(0,0,0,0.5);
  border: 2px solid rgba(148,163,184,0.1);
}
.device-frame::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: #000; border-radius: 12px; z-index: 5;
}
.device-frame img {
  width: 100%; border-radius: 24px; display: block;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-device { margin-top: 40px; }
  .device-frame { max-width: 220px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all .25s; text-decoration: none;
  line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(37,99,235,0.6);
  transform: translateY(-1px); color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-surface-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-primary);
}

/* ===== Section Base ===== */
.section {
  padding: 80px 24px; position: relative;
}
.section-inner {
  max-width: 1100px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.section-header p {
  color: var(--color-text-secondary); font-size: 16px; max-width: 560px;
  margin: 0 auto; line-height: 1.6;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all .3s;
}
.feature-card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px;
}
.feature-card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; color: var(--color-text-secondary); line-height: 1.6;
  text-align: left;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== Screenshots Carousel ===== */
.screenshots-section { overflow: hidden; }
.carousel-container {
  max-width: 900px; margin: 0 auto; position: relative;
}
.carousel-track {
  display: flex; transition: transform .4s ease;
  gap: 20px;
}
.carousel-slide {
  flex: 0 0 auto; width: 220px;
}
.carousel-slide .device-frame-sm {
  position: relative; background: #111827; border-radius: 28px;
  padding: 8px; border: 1px solid rgba(148,163,184,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer; transition: transform .3s;
}
.carousel-slide .device-frame-sm:hover { transform: scale(1.03); }
.carousel-slide .device-frame-sm::before {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 16px; background: #000; border-radius: 8px; z-index: 5;
}
.carousel-slide .device-frame-sm img {
  width: 100%; border-radius: 20px; display: block;
  filter: blur(5px); transition: filter .3s;
}
.carousel-slide .device-frame-sm img.loaded { filter: blur(0); }

.carousel-nav {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 28px; align-items: center;
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--color-surface-border);
  color: var(--color-text-secondary); font-size: 18px;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover {
  background: rgba(37,99,235,0.15); color: var(--color-text-primary);
  border-color: rgba(37,99,235,0.3);
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(148,163,184,0.3); cursor: pointer;
  transition: all .3s;
}
.carousel-dots span.active {
  background: var(--color-primary-light); width: 24px; border-radius: 4px;
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 85vh; max-width: 90vw;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 28px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== Highlights Strip ===== */
.highlights {
  background: var(--color-surface);
  border-top: 1px solid var(--color-surface-border);
  border-bottom: 1px solid var(--color-surface-border);
}
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.highlight-item {
  text-align: center; padding: 36px 20px;
  border-right: 1px solid var(--color-surface-border);
}
.highlight-item:last-child { border-right: none; }
.highlight-item .num {
  font-size: 32px; font-weight: 800; color: var(--color-primary-glow);
  line-height: 1;
}
.highlight-item .label {
  font-size: 13px; color: var(--color-text-muted); margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-item:nth-child(2) { border-right: none; }
  .highlight-item { border-bottom: 1px solid var(--color-surface-border); }
  .highlight-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
}
.cta-banner h2 { position: relative; z-index: 2; }
.cta-banner p {
  color: var(--color-text-secondary); margin: 14px auto 30px;
  max-width: 440px; position: relative; z-index: 2;
}
.cta-banner .btn { position: relative; z-index: 2; }

/* ===== Footer ===== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--color-surface-border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-size: 13px; color: var(--color-text-muted);
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
  font-size: 13px; color: var(--color-text-muted); transition: color .2s;
}
.footer-links a:hover { color: var(--color-text-secondary); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Content Pages (Privacy, Terms, Contact) ===== */
.page-header {
  padding: 120px 24px 48px;
  text-align: center; position: relative;
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -0.5px; position: relative; z-index: 2;
}
.page-header .subtitle {
  color: var(--color-text-muted); font-size: 14px; margin-top: 10px;
  position: relative; z-index: 2;
}

.content-container {
  max-width: 780px; margin: 0 auto; padding: 0 24px 80px;
}
.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: left;
}
.content-card h2 {
  font-size: 22px; font-weight: 600; margin: 32px 0 14px;
  color: var(--color-text-primary);
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
  font-size: 17px; font-weight: 600; margin: 24px 0 10px;
  color: var(--color-text-primary);
}
.content-card p {
  color: var(--color-text-secondary); font-size: 15px;
  line-height: 1.7; margin-bottom: 14px;
}
.content-card ul, .content-card ol {
  color: var(--color-text-secondary); font-size: 15px;
  line-height: 1.7; margin-bottom: 14px; padding-left: 24px;
}
.content-card li { margin-bottom: 6px; }
.content-card a { color: var(--color-primary-glow); }
.content-card a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .content-card { padding: 24px 20px; }
}

/* ===== Contact Form ===== */
.contact-grid {
  max-width: 900px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
}
.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-info h3 {
  font-size: 20px; font-weight: 600; margin-bottom: 16px;
}
.contact-info p {
  color: var(--color-text-secondary); font-size: 14px;
  line-height: 1.7; margin-bottom: 24px;
}
.contact-detail {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(37,99,235,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-detail-text {
  font-size: 14px; color: var(--color-text-secondary);
}
.contact-detail-text strong {
  display: block; color: var(--color-text-primary); font-weight: 600;
  margin-bottom: 2px;
}

.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--color-text-secondary); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(11,18,32,0.8);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--color-text-primary); font-size: 15px;
  font-family: var(--font-family); transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] {
  padding: 10px 16px; cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  background: rgba(37,99,235,0.15); border: 1px solid rgba(59,130,246,0.3);
  color: var(--color-primary-glow); padding: 6px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; margin-right: 12px; font-family: var(--font-family);
}

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success .check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,197,94,0.15); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.form-success h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.form-success p { color: var(--color-text-secondary); font-size: 14px; }

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

/* ===== Privacy Accept Button (Flutter integration) ===== */
.privacy-accept-btn {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 10000; text-align: center;
  padding: 20px 24px 28px;
  background: linear-gradient(to top, var(--color-bg-start) 60%, transparent);
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 400px;
  padding: 16px 32px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff; font-size: 16px; font-weight: 600;
  font-family: var(--font-family); cursor: pointer;
  box-shadow: 0 4px 24px rgba(37,99,235,0.5);
  transition: all .25s;
}
.accept-btn:hover {
  box-shadow: 0 6px 30px rgba(37,99,235,0.7);
  transform: translateY(-1px);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 8px; }
.mb-4 { margin-bottom: 16px; }
