/* ============================================
   Goal Runner — Global Styles
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #f1f5f9;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: all 0.2s; border: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-hero {
  background: var(--primary); color: white; padding: 16px 40px;
  font-size: 17px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.btn-hero:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; text-align: center; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #ede9fe 100%);
}
.hero h1 {
  font-size: 44px; font-weight: 900; line-height: 1.2; margin-bottom: 20px;
  color: var(--bg-dark);
}
.hero .highlight { color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-light); line-height: 1.8; margin-bottom: 32px; }
.hero-note { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* Trust Badge */
.trust-badge {
  padding: 20px 0;
  background: white;
  border-bottom: 1px solid var(--border);
}
.trust-badge .container {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.badge-item { font-size: 14px; font-weight: 500; color: var(--text-light); }

/* Section Titles */
.section-title {
  font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-light); text-align: center;
  margin-bottom: 48px; line-height: 1.6;
}

/* Services */
.services { padding: 80px 0; background: var(--bg); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* Comparison Table */
.comparison { padding: 80px 0; background: var(--bg-alt); }
.compare-table-wrapper { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-weight: 700; background: var(--bg-dark); color: var(--text-white); }
.compare-table thead th:first-child { text-align: left; border-radius: var(--radius-sm) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.yes { color: var(--success); font-weight: 600; }
.no { color: #ef4444; }
.price-highlight { font-weight: 800; color: var(--primary); font-size: 16px; }

/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card.featured .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.price { font-size: 36px; font-weight: 900; color: var(--text); margin-bottom: 24px; }
.price small { font-size: 16px; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; margin-bottom: 28px; text-align: left; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-card ul li:last-child { border-bottom: none; }

/* About */
.about { padding: 80px 0; background: var(--bg-alt); }
.about-content { max-width: 600px; margin: 0 auto; }
.about-text p { margin-bottom: 16px; font-size: 16px; line-height: 1.8; }
.about-text ul { margin-bottom: 24px; }
.about-text ul li { padding: 6px 0; font-size: 15px; color: var(--text-light); }
.about-mission { font-size: 18px; font-weight: 500; color: var(--primary); padding: 20px; background: var(--primary-light); border-radius: var(--radius); }

/* Footer */
.footer { padding: 40px 0; background: var(--bg-dark); text-align: center; }
.footer p { font-size: 13px; color: var(--text-light); }
.footer .disclaimer { margin-top: 8px; font-size: 12px; opacity: 0.7; }

/* Auth Page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%); padding: 24px; }
.auth-box { background: white; border-radius: var(--radius); box-shadow: var(--shadow-xl); padding: 48px 40px; width: 100%; max-width: 420px; }
.auth-box .logo { justify-content: center; margin-bottom: 32px; }
.auth-box h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-box .auth-subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.auth-error { background: #fef2f2; color: #dc2626; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: none; }
.auth-success { background: #f0fdf4; color: #16a34a; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: none; }
.auth-divider { text-align: center; color: var(--text-light); font-size: 13px; margin: 24px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-light); margin-top: 20px; }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.btn-google { background: white; color: var(--text); border: 1.5px solid var(--border); width: 100%; padding: 12px; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.btn-google:hover { background: var(--bg-alt); border-color: var(--text-light); }

/* Dashboard */
.dash-page { min-height: 100vh; background: var(--bg-alt); }
.dash-header { background: white; border-bottom: 1px solid var(--border); }
.dash-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-email { font-size: 13px; color: var(--text-light); }
.dash-main { padding: 40px 0; }
.dash-welcome { margin-bottom: 40px; }
.dash-welcome h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.dash-welcome p { color: var(--text-light); font-size: 15px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dash-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all 0.3s; cursor: pointer;
}
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.dash-card-icon { font-size: 32px; margin-bottom: 12px; }
.dash-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dash-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.dash-card .plan-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; margin-top: 12px;
}
.plan-free { background: #f1f5f9; color: var(--text-light); }
.plan-starter { background: var(--primary-light); color: var(--primary); }
.plan-pro { background: #fef3c7; color: #d97706; }
.plan-enterprise { background: #ede9fe; color: #7c3aed; }
.btn-logout {
  background: transparent; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-light);
  font-family: inherit; transition: all 0.2s;
}
.btn-logout:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .trust-badge .container { gap: 12px; }
  .badge-item { font-size: 12px; }
}
