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

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #dcfce7;
  --green-50: #f0fdf4;
  --dark: #0a0a0a;
  --gray-900: #171717;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

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

.nav-logo {
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
}

.logo-golf { color: var(--gray-900); }
.logo-rivals { color: var(--green); }

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  text-decoration: none;
  background: var(--green);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--green-dark); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-cta {
  background: var(--green);
  color: white !important;
  padding: 12px 20px !important;
  border-radius: 8px;
  text-align: center;
  font-weight: 600 !important;
}

/* ========== Hero ========== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.text-green { color: var(--green); }

.hero-sub {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: var(--gray-900);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.1);
}

.phone-screen {
  background: var(--white);
  border-radius: 26px;
  padding: 24px 16px 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.mock-logo {
  font-size: 18px;
  color: var(--gray-900);
}

.mock-logo strong { color: var(--green); }

.mock-badge {
  background: var(--green);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.mock-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.mock-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 8px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock-dot.green { background: var(--green); }
.mock-dot.blue { background: #3b82f6; }

.mock-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.mock-card-detail {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.mock-card-btn {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.mock-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ========== Features ========== */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========== How It Works ========== */
.how-it-works {
  background: var(--gray-50);
  padding: 100px 24px;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  text-align: center;
  max-width: 400px;
  padding: 20px 0;
}

.step-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--green);
  opacity: 0.3;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.step-line {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* ========== Game Modes ========== */
.game-modes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

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

.mode-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mode-card.featured {
  border-color: var(--green);
  background: var(--green-50);
}

.mode-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.mode-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mode-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.mode-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 12px;
  letter-spacing: 0.3px;
}

/* ========== Community ========== */
.community {
  background: var(--gray-900);
  padding: 100px 24px;
}

.community-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.community-text .section-tag {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.community-text h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.community-text p {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 32px;
}

.community-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-300);
  font-size: 15px;
}

/* Leaderboard Mock */
.leaderboard-mock {
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-700);
}

.lb-header {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-700);
}

.lb-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lb-row:last-child { border-bottom: none; }

.lb-rank {
  width: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
}

.lb-row.gold .lb-rank { color: #fbbf24; }
.lb-row.silver .lb-rank { color: #94a3b8; }
.lb-row.bronze .lb-rank { color: #d97706; }

.lb-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
}

.lb-score {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-right: 12px;
}

.lb-tee {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.blue-tee { background: #3b82f6; }
.white-tee { background: #e5e7eb; }
.gold-tee { background: #fbbf24; }

/* ========== Download CTA ========== */
.download {
  padding: 100px 24px;
  text-align: center;
}

.download-inner {
  max-width: 600px;
  margin: 0 auto;
}

.download h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.download p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-900);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.store-btn:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.store-btn small {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.download-note {
  font-size: 13px;
  color: var(--gray-400);
}

/* ========== Footer ========== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-400);
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; }
  .hero-visual { order: -1; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 44px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .community-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .section-header h2 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr 1fr; }
  .community-text h2 { font-size: 32px; }
  .download h2 { font-size: 32px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .phone-mockup { width: 260px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .modes-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
