:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #0e0e0e;
  --border: #1f1f1f;
  --text: #ffffff;
  --muted: #8a8a8a;
  --muted-2: #aaaaaa;
  --accent: #b8ff3a;
  --accent-bright: #c4ff4d;
  --accent-glow: rgba(184, 255, 58, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Header / Nav ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.brand-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-2); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-cta { color: #000; background: var(--accent); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.nav-links .nav-cta:hover { background: var(--accent-bright); color: #000; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted-2); display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; transition: color 0.15s, border-color 0.15s; }
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary::after { content: "▾"; font-size: 10px; opacity: 0.7; }
.lang-dropdown summary:hover { color: var(--text); border-color: #333; }
.lang-dropdown[open] summary { color: var(--text); border-color: var(--accent); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #0e0e0e; border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-width: 84px; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.lang-menu a { display: block; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--muted-2); border-radius: 6px; }
.lang-menu a:hover { background: #1a1a1a; color: var(--text); }
.lang-menu a.active { color: var(--accent); }

/* ── Buttons ── */
.btn-store { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 14px; font-weight: 700; cursor: pointer; border: 0; font-family: inherit; transition: transform 0.1s, background 0.15s; }
.btn-store:hover { transform: translateY(-1px); }
.btn-store.primary { background: var(--accent); color: #000; box-shadow: 0 0 40px var(--accent-glow); }
.btn-store.primary:hover { background: var(--accent-bright); }
.btn-store.secondary { background: #1c1c1e; color: #fff; border: 1px solid #2a2a2a; }
.btn-store.secondary:hover { background: #2a2a2a; }
.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store .label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .label .small { font-size: 10px; font-weight: 500; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.btn-store .label .big { font-size: 16px; font-weight: 700; }
.footer-dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-store-sm { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: #1c1c1e; color: #fff; border: 1px solid #2a2a2a; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn-store-sm svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-store-sm:hover { background: #2a2a2a; color: #fff; }

/* Waitlist modal */
.wl-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.wl-overlay.open { display: flex; }
.wl-modal { background: #0c0c0c; border: 1px solid var(--border); border-radius: 20px; padding: 36px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.wl-modal h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.wl-modal p { margin: 0 0 22px; color: var(--muted-2); font-size: 14px; line-height: 1.5; }
.wl-modal input { width: 100%; padding: 15px 16px; background: #000; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; outline: none; margin-bottom: 14px; font-family: inherit; color: var(--text); }
.wl-modal input:focus { border-color: var(--accent); }
.wl-modal input:disabled { opacity: 0.5; }
.wl-row { display: flex; gap: 10px; }
.wl-row button { flex: 1; padding: 14px; border-radius: 12px; font-weight: 700; font-family: inherit; cursor: pointer; font-size: 14px; }
.wl-submit { background: var(--accent); color: #000; border: 0; box-shadow: 0 0 30px var(--accent-glow); }
.wl-submit:hover { background: var(--accent-bright); }
.wl-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.wl-cancel { background: transparent; color: var(--muted-2); border: 1px solid var(--border); }
.wl-msg { margin-top: 14px; font-size: 13px; min-height: 18px; }
.wl-msg.ok { color: var(--accent); }
.wl-msg.err { color: #f87171; }
.btn-text { color: var(--accent); font-weight: 600; }

/* ── Generic sections ── */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
h1, h2, h3 { letter-spacing: -0.02em; }
.section-title { font-size: 48px; line-height: 1.0; font-weight: 900; text-transform: uppercase; margin: 0 0 16px; }
.section-title .accent { color: var(--accent); }
.section-sub { color: var(--muted-2); font-size: 18px; margin: 0 auto; max-width: 600px; }
.center { text-align: center; }

/* ── Hero ── */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 72px; line-height: 0.95; font-weight: 900; text-transform: uppercase; margin: 0 0 24px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted-2); margin: 0 0 36px; max-width: 480px; }
.hero p.lead .accent { color: var(--accent); font-weight: 600; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { width: auto; max-width: 100%; max-height: 600px; height: auto; display: block; margin: 0 auto; }

/* ── Feature rows ── */
.feature-list { display: flex; flex-direction: column; gap: 80px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }
.feature-row img { width: auto; max-width: 100%; max-height: 560px; display: block; margin: 0 auto; border-radius: 20px; }
.feature-text h3 { font-size: 40px; line-height: 1.0; font-weight: 900; text-transform: uppercase; margin: 0 0 18px; }
.feature-text h3 .accent { color: var(--accent); }
.feature-text p { color: var(--muted-2); font-size: 16px; margin: 0; }

/* ── Card grid ── */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(184,255,58,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 22px; }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted-2); margin: 14px 0 0; font-size: 15px; }

/* ── Big CTA ── */
.big-cta { padding: 120px 0; text-align: center; background: linear-gradient(180deg, transparent 0%, rgba(184,255,58,0.04) 100%); border-top: 1px solid var(--border); }
.big-cta h2 { font-size: 60px; line-height: 0.98; font-weight: 900; text-transform: uppercase; margin: 0 0 24px; }
.big-cta h2 .accent { color: var(--accent); }
.big-cta p { color: var(--muted-2); margin: 0 0 40px; font-size: 17px; }
.big-cta .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Blog ── */
.page-head { padding: 80px 0 40px; text-align: center; }
.page-head h1 { font-size: 56px; font-weight: 900; text-transform: uppercase; margin: 0 0 12px; }
.page-head h1 .accent { color: var(--accent); }
.page-head p { color: var(--muted-2); font-size: 18px; margin: 0; }
.blog-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); padding-bottom: 100px; }
.blog-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.15s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--accent); }
.blog-card .cover { aspect-ratio: 16/9; background: var(--bg-soft); overflow: hidden; }
.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px; }
.blog-card .date { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { font-size: 19px; margin: 8px 0 8px; color: var(--text); letter-spacing: -0.01em; }
.blog-card p { color: var(--muted); font-size: 14px; margin: 0; }
.blog-empty { color: var(--muted); text-align: center; padding: 60px 0 120px; }

/* ── Blog post (markdown) ── */
.post { max-width: 720px; margin: 0 auto; padding: 60px 0 100px; }
.post .post-meta { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.post h1.post-title { font-size: 44px; line-height: 1.05; font-weight: 900; margin: 0 0 36px; letter-spacing: -0.02em; }
.post-body { font-size: 17px; line-height: 1.75; color: #d8d8d8; }
.post-body h2 { font-size: 28px; font-weight: 800; margin: 44px 0 16px; }
.post-body h3 { font-size: 21px; font-weight: 700; margin: 32px 0 12px; }
.post-body p { margin: 0 0 20px; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body img { border-radius: 12px; margin: 24px 0; }
.post-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--muted-2); }
.post-body code { background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 14px; }
.post-body pre { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow-x: auto; }
.post-body pre code { border: 0; padding: 0; }
.back-link { display: inline-block; color: var(--muted-2); margin-bottom: 28px; font-size: 14px; }
.back-link:hover { color: var(--text); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 16px 0 0; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--muted-2); font-size: 14px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #000; border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 24px; }
  .nav-links .nav-cta { margin: 8px 24px; width: calc(100% - 48px); text-align: center; }
  .lang-dropdown { margin: 4px 24px; }
  .lang-dropdown summary { justify-content: center; }
  .lang-menu { position: static; box-shadow: none; margin-top: 6px; min-width: 0; }
  .lang-menu a { text-align: center; }
  .hero { padding: 56px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 46px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .section { padding: 64px 0; }
  .section-title, .big-cta h2 { font-size: 34px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; direction: ltr; gap: 32px; text-align: center; }
  .feature-text h3 { font-size: 30px; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .page-head h1 { font-size: 38px; }
  .post h1.post-title { font-size: 32px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .section-title, .big-cta h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
