/* Ridemate 홍보 사이트 — 앱 다크/인더스트리얼 톤 */
:root {
  --bg: #0c0c0d;
  --surface: #141517;
  --surface2: #1b1d20;
  --surface3: #222529;
  --border: #272a2f;
  --border-bright: #363b42;
  --metal-light: #c4ccd6;
  --accent: #e8a020;
  --accent-dim: #3a2808;
  --red: #d04040;
  --red-dim: #2e1010;
  --green: #38a868;
  --text: #e8ecf0;
  --text-dim: #9aa3ad;
  --text-muted: #7f8792;
  --maxw: 1080px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 12, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}
.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-main {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 22px; letter-spacing: 3px; color: var(--accent);
}
.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; letter-spacing: 2px; color: var(--text-muted); margin-top: 3px;
}
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #000 !important;
  padding: 8px 14px; border-radius: 8px;
}
.nav-cta:hover { background: #f2b23e; }
.lang-switch { display: flex; gap: 2px; flex-shrink: 0; }
.lang-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-muted);
  padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px;
}
.lang-link:hover { color: var(--text); text-decoration: none; }
.lang-link.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* ── Sections ──────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section > .wrap > h2 {
  font-size: 28px; margin-bottom: 32px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; }

.link-arrow { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ── Hero ──────────────────────────────── */
.hero { padding: 64px 0 72px; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start;
}
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; color: var(--text-dim); margin: 20px 0 32px; max-width: 30em; }
.hero-shot { display: flex; justify-content: center; }
.hero-shot img {
  border-radius: 22px; border: 1px solid var(--border-bright);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  max-height: 620px; width: auto;
}

/* ── CTA ───────────────────────────────── */
.cta-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; border-radius: 10px; padding: 12px 20px;
  border: 1px solid transparent; transition: background 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-play {
  background: var(--accent); color: #000;
  flex-direction: column; align-items: flex-start; line-height: 1.15; padding: 10px 22px;
}
.btn-play:hover { background: #f2b23e; }
.btn-play-sub { font-size: 11px; font-weight: 600; opacity: 0.7; letter-spacing: 0.5px; }
.btn-play-main { font-size: 16px; }
.qr-box { display: none; text-align: center; }
.qr-box img { border-radius: 8px; border: 4px solid #fff; }
.qr-box figcaption { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
@media (min-width: 768px) {
  .qr-box { display: block; }
}

/* ── Features ──────────────────────────── */
.feature-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.feature h3::before { content: "▸ "; color: var(--accent); }
.feature p { font-size: 14px; color: var(--text-dim); }

/* ── Screenshots row ───────────────────── */
.shots-section { background: var(--surface); }
.shots-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.shot { max-width: 280px; flex: 0 0 auto; }
.shot img {
  border-radius: 18px; border: 1px solid var(--border-bright);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}
.shot figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ── News cards ────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.news-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.news-card.is-safety { background: var(--red-dim); border-color: rgba(208, 64, 64, 0.35); border-left: 3px solid var(--red); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-meta time { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.card-title { font-size: 16px; line-height: 1.35; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-summary { font-size: 13.5px; color: var(--text-dim); }
.card-warn {
  font-size: 12px; color: var(--accent);
  background: var(--accent-dim); border-radius: 6px; padding: 5px 8px;
}
.card-source { font-size: 12px; color: var(--text-muted); margin-top: auto; }

.cat-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--surface3); color: var(--text-dim);
}
.cat-badge.cat-safety { background: var(--red-dim); color: #e98080; }
.cat-badge.cat-policy { background: #14233a; color: #7fb0e6; }
.cat-badge.cat-info { background: #14261a; color: #6fc48f; }

/* ── Page head / hubs ──────────────────── */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-lede { color: var(--text-dim); margin-top: 12px; max-width: 46em; }
.count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.crumbs a { color: var(--text-dim); }
.crumbs span { margin: 0 6px; opacity: 0.5; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 16px;
  background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border);
}
.chip:hover { color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--accent); color: #000; border-color: var(--accent); }

.news-layout { display: grid; grid-template-columns: 1fr 220px; gap: 40px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
.news-main { min-width: 0; }
.news-side h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-pill {
  font-size: 13px; padding: 5px 11px; border-radius: 8px;
  background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border);
}
.brand-pill:hover { color: var(--text); text-decoration: none; }
.brand-pill.is-active { border-color: var(--accent); color: var(--accent); }

.news-group { margin-bottom: 36px; }
.group-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.empty { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* ── Article ───────────────────────────── */
.article { padding: 40px 0 20px; }
.article-inner { max-width: 720px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.article-meta time { font-size: 13px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.article h1 { font-size: clamp(24px, 3.5vw, 34px); }
.article h1.safety-title { color: #f0a0a0; }
.article-body { font-size: 17px; color: var(--text); margin: 24px 0; }
.notice { border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 18px 0; }
.notice-warn { background: var(--accent-dim); color: #f0c070; border: 1px solid rgba(232, 160, 32, 0.3); }
.article-source {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 14px; color: var(--text-muted);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; margin: 28px 0;
}
.article-cta { margin: 28px 0; }
.related { border-top: 1px solid var(--border); }

/* ── Ridemesh / bottom CTA ─────────────── */
.ridemesh-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 20px;
  padding: 4px 12px; margin-bottom: 18px;
}
.ridemesh-inner h2 { font-size: 24px; margin-bottom: 14px; }
.ridemesh-inner p { color: var(--text-dim); }

.bottom-cta { background: var(--surface); text-align: center; }
.bottom-cta-inner { max-width: 560px; margin: 0 auto; }
.bottom-cta-inner h2 { font-size: 28px; margin-bottom: 6px; }
.bottom-cta-inner p { color: var(--text-muted); margin-bottom: 24px; }
.bottom-cta .cta-group { justify-content: center; }

/* ── Footer ────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 32px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .hero-shot img { max-height: 460px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { border-top: 1px solid var(--border); padding-top: 24px; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .shots-row {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px;
  }
  .shot { max-width: 220px; scroll-snap-align: center; }
  .shot img { height: auto; }
}
