@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --primary-color: #00A3FF;
  --primary-hover: #008be5;
  --bg-color: #f4f7fb;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #475569;
  --text-light-gray: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  background: radial-gradient(circle at 100% 0%, #e0f2fe 0%, #f4f7fb 40%, var(--bg-color) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Japanese/Chinese have no inter-word spaces, so `keep-all` treats a whole
   sentence as one unbreakable token and stretches the layout horizontally.
   Fall back to the browser default (breaks at any CJK boundary). */
html[lang="ja"] body,
html[lang="zh-CN"] body,
html[lang="zh-TW"] body,
html[lang="th"] body {
  word-break: normal;
  line-break: strict;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Navbar */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Language Dropdown */
.lang-toggle {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: #e2e8f0;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 2000;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: #f1f5f9;
  color: var(--primary-color);
}

/* Hero Section (Clean Layout) */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.badge {
  display: inline-block;
  background: rgba(0, 163, 255, 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.primary-gradient {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 163, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: #0f172a;
  color: white;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background: white;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Universal Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* User Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  padding: 40px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid #f1f5f9;
  border-top: 5px solid transparent;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.card-creator { border-top-color: #ef4444; }
.card-fan { border-top-color: #3b82f6; }
.card-sponsor { border-top-color: #10b981; }

.benefit-card .icon {
  font-size: 40px;
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #0f172a;
}

.benefit-card p {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Split Image Sections (How it Works) */
.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}

.split-text h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.split-text p {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.split-text ul {
  list-style: none;
}

.split-text li {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.split-text li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.1rem;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
  transition: transform 0.5s ease;
}

.split-image:hover img {
  transform: translateY(-5px);
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 100px 0;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.footer-cta h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.footer-cta .btn-group {
  justify-content: center;
}

/* Footer */
footer {
  background: #f8fafc;
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
}

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

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

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* Toggles & Resets for Policy Pages — handled by lang.js */

.policy-content {
  background: white;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  margin-bottom: 80px;
  margin-top: 40px;
}
.policy-header {
  margin-top: 120px;
}
.policy-content h2 { margin-top: 40px; color: var(--primary-color); }
.policy-content p, .policy-content li { color: #334155; }

.alert-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.alert-box.danger {
  background: #fef2f2;
  border-left-color: #ef4444;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .btn-group { justify-content: center; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section, .split-section.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 3rem; }
  .section-header h2 { font-size: 2.2rem; }
  .split-text h2 { font-size: 2rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .split-section { gap: 40px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
