/* ═══════════════════════════════════════════════════════
   Trading Cafe — Common Styles
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #12131a;
  --bg-card: #16171f;
  --bg-elevated: #1c1d27;
  --accent: #c9a84c;
  --accent-dim: #a08636;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --text-primary: #e8e6e1;
  --text-secondary: #8a8b95;
  --text-muted: #55566a;
  --red: #e74c3c;
  --green: #2ecc71;
  --blue: #3498db;
  --border: rgba(255,255,255,0.06);
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font-kr);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--accent); color: var(--bg-primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.nav-cta:hover { background: #d4b35a; transform: translateY(-1px); }
.mobile-menu { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ─── BUTTONS ─── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: var(--accent); color: var(--bg-primary); font-size: 0.9rem; font-weight: 700; text-decoration: none; letter-spacing: 0.5px; transition: all 0.25s; }
.btn-primary:hover { background: #d4b35a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.25); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: transparent; color: var(--text-primary); font-size: 0.9rem; font-weight: 500; text-decoration: none; border: 1px solid var(--border); letter-spacing: 0.5px; transition: all 0.25s; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 64px; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }
.hero h1 { font-family: var(--font-kr); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.25; letter-spacing: -1px; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; max-width: 480px; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }

.hero-data { position: relative; opacity: 0; animation: fadeUp 0.8s 1s forwards; }
.data-card { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; position: relative; overflow: hidden; }
.data-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.data-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.data-card-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.data-card-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--green); }
.data-card-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.offer-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.offer-row:last-child { border-bottom: none; }
.offer-label { font-size: 0.9rem; color: var(--text-secondary); }
.offer-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; }
.offer-value.highlight { color: var(--accent); }
.offer-value.zero { color: var(--green); font-weight: 700; }

/* ─── SECTION COMMON ─── */
section { padding: 120px 0; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-desc { font-size: 1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.8; margin-bottom: 60px; }

/* ─── PAGE HEADER (SUB PAGES) ─── */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .section-tag { justify-content: center; }
.page-header .section-title { text-align: center; }
.page-header .section-desc { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* ─── PROBLEM SECTION ─── */
.problem { background: var(--bg-secondary); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.problem-card { background: var(--bg-card); padding: 36px 28px; position: relative; transition: all 0.3s; }
.problem-card:hover { background: var(--bg-elevated); }
.problem-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--red); opacity: 0.6; }
.problem-persona { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 12px; }
.problem-years { font-size: 2.2rem; font-weight: 900; color: var(--red); margin-bottom: 4px; line-height: 1; }
.problem-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }
.problem-detail { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.problem-vs { text-align: center; margin-top: 48px; padding: 40px; border: 1px solid var(--accent); background: var(--accent-glow); }
.problem-vs-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 3px; margin-bottom: 12px; }
.problem-vs-text { font-size: 1.6rem; font-weight: 900; line-height: 1.4; }
.problem-vs-text em { font-style: normal; color: var(--accent); }

/* ═══ INTERACTIVE CALCULATOR ═══ */
.calculator { border-top: 1px solid var(--border); position: relative; overflow: hidden; max-width: 100%; }
.calculator::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(ellipse, rgba(201,168,76,0.04) 0%, transparent 70%); pointer-events: none; }

.calc-input-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 48px;
  position: relative;
}
.calc-input-area::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--green), var(--accent)); }

.calc-question { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.calc-amount-display {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 32px;
  transition: all 0.15s;
}
.calc-amount-display .currency { font-size: 0.5em; color: var(--text-muted); vertical-align: middle; margin-right: 4px; }

.calc-slider-wrap { position: relative; padding: 12px 0; margin-bottom: 16px; }
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  box-shadow: 0 0 20px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 2;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.25);
}
.calc-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.calc-slider::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: none;
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.slider-track {
  position: absolute; top: 50%; left: 0;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: translateY(-50%);
  pointer-events: none;
  transition: width 0.05s;
  margin-top: 12px;
}
.calc-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.calc-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.calc-preset {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-preset:hover, .calc-preset.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 48px; }
.calc-result-card {
  background: var(--bg-card);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.calc-result-card:hover { background: var(--bg-elevated); }
.calc-result-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--green); opacity: 0.6; }
.calc-market { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.calc-period { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 20px; }
.calc-return-pct { font-family: var(--font-mono); font-size: 0.85rem; color: var(--green); margin-bottom: 12px; }

.calc-profit-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.calc-profit {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  transition: all 0.2s;
}
.calc-invested { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.calc-invested span { color: var(--text-secondary); }

.calc-missed {
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(231,76,60,0.3);
  background: rgba(231,76,60,0.05);
}
.calc-missed-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--red); letter-spacing: 2px; margin-bottom: 12px; }
.calc-missed-text { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.calc-missed-text em { font-style: normal; color: var(--red); }
.calc-missed-text .accent { color: var(--accent); }

.calc-bottom-cta {
  text-align: center; margin-top: 48px;
  padding: 40px;
  border: 1px solid var(--accent);
  background: var(--accent-glow);
}
.calc-bottom-cta p { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.calc-bottom-cta p em { font-style: normal; color: var(--accent); }

/* ─── MINI CHART ─── */
.calc-chart-wrap {
  width: 100%;
  height: 60px;
  margin: 8px 0 12px;
  position: relative;
}
.calc-chart {
  width: 100%;
  height: 100%;
  display: block;
}

/* Compact result cards */
.calc-result-card { padding: 28px 24px; }
.calc-profit { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ─── HOW IT WORKS ─── */
.how { background: var(--bg-secondary); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; counter-reset: step; }
.step { background: var(--bg-card); padding: 36px 28px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: rgba(201,168,76,0.12); line-height: 1; margin-bottom: 16px; display: block; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── COMPARISON ─── */
.comparison { border-top: 1px solid var(--border); overflow: hidden; }
.comp-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comp-table { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; }
.comp-table th, .comp-table td { padding: 16px 20px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.comp-table th { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; background: var(--bg-card); }
.comp-table td { color: var(--text-secondary); }
.comp-table td:last-child { color: var(--accent); font-weight: 700; }
.comp-table tr:hover td { background: rgba(201,168,76,0.03); }
.comp-table .price { font-family: var(--font-mono); }
.comp-free { color: var(--green) !important; font-weight: 900 !important; font-size: 1rem !important; }

/* ─── RISK MANAGEMENT ─── */
.risk { background: var(--bg-secondary); }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.risk-card { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; }
.risk-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent-glow); border: 1px solid rgba(201,168,76,0.2); margin-bottom: 20px; font-size: 1.2rem; }
.risk-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.risk-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── CTA ─── */
.cta { text-align: center; background: var(--bg-primary); position: relative; padding: 140px 0; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%); pointer-events: none; }
.cta .section-title { margin-left: auto; margin-right: auto; }
.cta .section-desc { margin-left: auto; margin-right: auto; margin-bottom: 40px; text-align: center; }
.cta-stats { display: flex; justify-content: center; gap: 48px; margin-bottom: 48px; }
.cta-stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent); }
.cta-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ─── FOOTER ─── */
footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; text-align: right; max-width: 500px; }

/* ─── CONTENT GRID (ABOUT, PROGRAM) ─── */
.content-section { padding: 100px 0; }
.content-section:nth-child(even) { background: var(--bg-secondary); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; position: relative; transition: all 0.3s; }
.feature-card:hover { background: var(--bg-elevated); transform: translateY(-2px); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); opacity: 0.6; }
.feature-icon { font-size: 1.5rem; margin-bottom: 16px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── PROGRAM CONDITIONS TABLE ─── */
.conditions-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.conditions-table th { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; background: var(--bg-elevated); padding: 16px 24px; text-align: left; }
.conditions-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.conditions-table td:first-child { color: var(--text-secondary); width: 40%; }
.conditions-table td:last-child { font-weight: 600; }
.conditions-table tr:last-child td { border-bottom: none; }
.conditions-table .highlight { color: var(--accent); }
.conditions-table .free { color: var(--green); font-weight: 900; }

/* ─── PROCESS STEPS (VERTICAL) ─── */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.process-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: rgba(201,168,76,0.2); line-height: 1; }
.process-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── FAQ ACCORDION ─── */
.faq-category { margin-bottom: 48px; }
.faq-category-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '\2212'; color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─── COMING SOON (PLACEHOLDER) ─── */
.coming-soon {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
}
.coming-soon-icon { font-size: 3rem; margin-bottom: 24px; }
.coming-soon h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.coming-soon p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 32px; }

/* ─── COUNT UP ANIMATION ─── */
.count-up { transition: all 0.3s ease-out; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.6rem; transition: transform 0.2s; }
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -12px;
  background: rgba(18,19,26,0.97); backdrop-filter: blur(20px);
  border: 1px solid var(--border); min-width: 180px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.83rem; transition: all 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--accent); background: rgba(201,168,76,0.05); }

/* ─── WHY FUNDED ─── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--bg-card); border: 1px solid var(--border); padding: 36px 28px; position: relative; transition: all 0.3s; }
.why-card:hover { background: var(--bg-elevated); border-color: rgba(201,168,76,0.2); }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); opacity: 0.4; }
.why-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: rgba(201,168,76,0.1); line-height: 1; margin-bottom: 16px; }
.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.why-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── DIFFERENCE (EDUCATION PAGE) ─── */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.diff-card { background: var(--bg-card); padding: 40px 36px; position: relative; }
.diff-card.bad::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--red); opacity: 0.5; }
.diff-card.good::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--green); opacity: 0.5; }
.diff-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.diff-label.bad { color: var(--red); }
.diff-label.good { color: var(--green); }
.diff-list { list-style: none; }
.diff-list li { font-size: 0.88rem; color: var(--text-secondary); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.diff-list li:last-child { border-bottom: none; }
.diff-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; }
.diff-card.bad .diff-list li::before { background: var(--red); opacity: 0.6; }
.diff-card.good .diff-list li::before { background: var(--green); opacity: 0.6; }

/* ─── EDUCATION CURRICULUM ─── */
.curriculum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; counter-reset: curr; }
.curriculum-card { background: var(--bg-card); padding: 36px 28px; counter-increment: curr; position: relative; transition: all 0.3s; }
.curriculum-card:hover { background: var(--bg-elevated); }
.curriculum-card::before { content: 'STEP ' counter(curr, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 2px; display: block; margin-bottom: 16px; }
.curriculum-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.curriculum-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── CTA SUB TEXT ─── */
.cta-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 20px; }

/* ─── COMP NOTE ─── */
.comp-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 20px; line-height: 1.6; }

/* ─── COMPOUND GROWTH CHART ─── */
.compound { border-top: 1px solid var(--border); background: var(--bg-secondary); }
.compound-chart-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 32px;
}
.compound-chart-area canvas {
  width: 100%;
  height: 350px;
  display: block;
}
.compound-legend {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.compound-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.compound-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compound-result {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}
.compound-insight {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--accent);
  background: var(--accent-glow);
}
.compound-insight p {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
}
.compound-insight em {
  font-style: normal;
  color: var(--accent);
}

/* ─── TIMELINE ─── */
.timeline-section { margin-top: 3rem; }
.timeline-title { text-align: center; color: var(--accent); font-size: 1.1rem; margin-bottom: 2rem; }
.timeline-wrap { display: flex; align-items: center; justify-content: center; max-width: 800px; margin: 0 auto; }
.timeline-item { text-align: center; flex: 1; padding: 1rem; }
.timeline-circle { background: var(--accent); color: #0a0b0f; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-weight: 700; font-size: .9rem; }
.timeline-label { font-weight: 600; margin-bottom: .25rem; font-size: .95rem; }
.timeline-sub { color: var(--text-muted); font-size: .82rem; }
.timeline-arrow { color: var(--accent); font-size: 1.5rem; flex-shrink: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-results { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-links.show { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,11,15,0.95); backdrop-filter: blur(20px); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .mobile-menu { display: block; }
  nav .container { padding: 0 12px; }
  .nav-cta { padding: 6px 10px; font-size: 0.65rem; letter-spacing: 0.3px; white-space: nowrap; }
  .nav-logo { font-size: 0.75rem; letter-spacing: 1.5px; }
  .container { padding: 0 16px; }
  .problem-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
  .calc-input-area { padding: 32px 20px; }
  .steps { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .cta-stats { flex-direction: column; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-left { align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-legal { text-align: center; max-width: 100%; }
  .comp-table th, .comp-table td { padding: 10px 8px; font-size: 0.72rem; white-space: nowrap; }
  .comp-table td:first-child, .comp-table th:first-child { position: sticky; left: 0; background: var(--bg-card); z-index: 1; }
  .comp-table th:first-child { background: var(--bg-elevated); }
  .conditions-table td, .conditions-table th { padding: 12px 16px; font-size: 0.85rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .calc-presets { justify-content: center; }
  .calc-missed { padding: 28px 20px; }
  .calc-missed-text { font-size: 1rem; }
  .calc-bottom-cta { padding: 28px 20px; }
  .calc-bottom-cta p { font-size: 1.1rem; }
  .process-step { grid-template-columns: 60px 1fr; gap: 16px; }
  .page-header { padding: 120px 0 60px; }
  .why-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .diff-card { padding: 32px 24px; }
  .nav-dropdown-menu { position: static; transform: none; background: transparent; border: none; padding: 0 0 0 16px; min-width: 0; backdrop-filter: none; display: none; opacity: 1; visibility: visible; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .compound-legend { flex-direction: column; gap: 12px; }
  .compound-chart-area canvas { height: 250px; }
  .timeline-wrap { flex-direction: column; gap: 0; }
  .timeline-item { padding: 0.75rem 0; }
  .timeline-arrow { transform: rotate(90deg); font-size: 1.2rem; margin: 4px 0; }
  .cta { padding: 80px 0; }
  .cta .section-title { font-size: 1.6rem; }
  .content-section { padding: 60px 0; }
  .section-desc { margin-bottom: 36px; }
  .settlement-summary { flex-direction: column; gap: 16px; }
  .summary-card { padding: 24px; }
  .summary-value { font-size: 1.8rem; }
  .leaderboard-table th, .leaderboard-table td { padding: 12px 10px; font-size: 0.85rem; }
  .reason-cell { max-width: 120px; }
}


/* ═══════════════════════════════════════════════════════
   Leaderboard & Settlement Styles
   ═══════════════════════════════════════════════════════ */

.leaderboard-section,
.settlements-section { padding: 40px 0 80px; }

/* 로딩 스피너 */
.loading-spinner { text-align: center; padding: 80px 0; }
.loading-spinner p { color: var(--text-secondary); margin-top: 16px; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 에러 메시지 */
.error-message {
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border-radius: 16px;
  border: 1px solid var(--border);
}
.error-icon { font-size: 3rem; margin-bottom: 16px; }
.error-message h3 { color: var(--text-primary); margin-bottom: 8px; }
.error-message p { color: var(--text-secondary); margin-bottom: 24px; }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border); padding: 10px 24px;
  border-radius: 8px; cursor: pointer; font-family: var(--font-kr);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* 섹션 제목 */
.lb-section-title {
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px;
}
.lb-updated {
  font-size: 0.8rem; color: var(--text-muted);
  font-family: var(--font-mono); margin-bottom: 20px;
}

/* 테이블 */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.leaderboard-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border);
}
.leaderboard-table thead { background: var(--bg-elevated); }
.leaderboard-table th {
  padding: 14px 16px; text-align: left;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
}
.leaderboard-table td {
  padding: 14px 16px; font-size: 0.9rem;
  color: var(--text-primary); border-top: 1px solid var(--border);
  white-space: nowrap;
}
.leaderboard-table tbody tr { transition: background 0.2s; }
.leaderboard-table tbody tr:hover { background: rgba(201,168,76,0.04); }

/* 순위 셀 */
.rank-cell { font-size: 1.1rem; text-align: center; min-width: 50px; }
.rank-medal { font-size: 1.3rem; }

/* 트레이더 이름 */
.trader-name { font-weight: 600; }

/* 수익률 색상 */
.pnl-positive { color: var(--green); font-weight: 600; font-family: var(--font-mono); }
.pnl-negative { color: var(--red); font-weight: 600; font-family: var(--font-mono); }

/* 정산 금액 */
.settlement-amount { font-family: var(--font-mono); font-weight: 600; color: var(--green); }

/* 상태 뱃지 */
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.status-badge.active { background: rgba(46,204,113,0.15); color: var(--green); }
.status-badge.failed { background: rgba(231,76,60,0.15); color: var(--red); }
.status-badge.revoked { background: rgba(243,156,18,0.15); color: #f39c12; }
.status-badge.given-up { background: rgba(138,139,149,0.15); color: var(--text-secondary); }
.status-badge.approved { background: rgba(46,204,113,0.15); color: var(--green); }

/* Inactive 행 */
.inactive-row { opacity: 0.7; }
.inactive-row:hover { opacity: 1; }
.reason-cell {
  max-width: 200px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-secondary); font-size: 0.85rem;
}

/* 정산 요약 카드 */
.settlement-summary {
  display: flex; gap: 24px; margin-bottom: 16px;
}
.summary-card {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; text-align: center;
}
.summary-label {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.summary-value {
  font-size: 2.2rem; font-weight: 900; color: var(--accent);
  font-family: var(--font-mono);
}
