:root {
  --bg: #0a0a0b;
  --bg-2: #18181a;
  --card: #0b0b0c;
  --line: #2a2a2e;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #ff5a78;
  --accent-2: #ff7a92;
  --radius: 10px;
  --max: 1200px;
  --font-head: 'Montserrat', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 11, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #111; }
.lang a { padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); border-radius: 4px; transition: .2s; }
.lang a.active { background: #26262a; color: var(--text); }
.lang a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px; right: -150px; top: -150px;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #151517; font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.12; letter-spacing: -.03em;
  margin: 20px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--text); }
.hero p.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 460px; }

.signup { display: flex; gap: 10px; margin-top: 36px; max-width: 460px; }
.signup input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 1rem;
  background: #151517; color: var(--text); border: 1px solid var(--line); border-radius: 6px; outline: none;
  transition: border-color .2s;
}
.signup input:focus { border-color: var(--text); }
.btn {
  padding: 14px 26px; border: 0; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 8px 24px rgba(255,90,115,.35); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { box-shadow: 0 8px 24px rgba(255,255,255,.2); }
.form-msg { margin-top: 12px; font-size: .9rem; min-height: 1.4em; color: var(--text); }

/* Mock card */
.mock {
  justify-self: center; width: min(100%, 360px);
  background: #1c1c1f; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transition: transform .4s;
  animation: float 6s ease-in-out infinite;
}
.mock:hover { transform: rotate(0); }
@keyframes float { 50% { translate: 0 -10px; } }
.mock-map { height: 160px; background: #2a2a2d; position: relative; }
.mock-map svg { width: 100%; height: 100%; }
.mock-map path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock-body { padding: 20px; }
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mock-title { font-weight: 800; font-size: 1.1rem; }
.mock-date { font-size: .75rem; color: var(--muted); }
.tag { background: #fff; color: #111; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 16px 0; padding: 14px 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.stats small { display: block; font-size: .7rem; color: var(--muted); font-weight: 700; }
.stats b { font-size: 1.3rem; }
.stats b span { font-size: .75rem; font-weight: 400; }
.mates { display: flex; justify-content: space-between; align-items: center; }
.avatars { display: flex; }
.avatars span { width: 26px; height: 26px; display: grid; place-items: center; font-size: .65rem; font-weight: 700; background: #3a3a3e; border: 2px solid #1c1c1f; border-radius: 4px; margin-left: -4px; }
.avatars span:first-child { margin-left: 0; }
.avatars span.me { background: #fff; color: #111; }
.mates small { color: var(--text); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }

/* Features */
.features { background: var(--bg-2); padding: clamp(60px, 9vw, 100px) 0; border-top: 1px solid var(--line); }
.features h2, .cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2rem); letter-spacing: -.02em; }
.features .sub { color: var(--muted); max-width: 520px; margin: 12px 0 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.35); }
.card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .9rem; }

/* CTA */
.cta { text-align: center; padding: clamp(70px, 10vw, 100px) 0; border-top: 1px solid var(--line); }
.cta p { color: var(--muted); margin: 14px 0 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer small { color: var(--muted); font-weight: 700; letter-spacing: .06em; font-size: .75rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* EN-specific: uppercase headings like the mockup */
html[lang="en"] .hero h1, html[lang="en"] h2, html[lang="en"] .card h3,
html[lang="en"] .btn, html[lang="en"] .mock-title { text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead, .signup { margin-inline: auto; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .signup { flex-direction: column; }
  .mock { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mock-map path { stroke-dashoffset: 0; }
}
