/* ==========================================================
   mykoreanname — landing prototype
   ========================================================== */

:root {
  --bg: #fffafc;
  --bg-soft: #fff0f6;
  --ink: #1a0d1f;
  --ink-soft: #5b4960;
  --ink-faint: #8a7a90;
  --line: #f1e1ec;
  --card: #ffffff;
  --pink: #ff6b9d;
  --purple: #c44bd3;
  --indigo: #6c4bff;
  --grad: linear-gradient(135deg, #ff6b9d 0%, #c44bd3 50%, #6c4bff 100%);
  --grad-soft: linear-gradient(135deg, #fff0f6 0%, #f4ecff 100%);
  --shadow-sm: 0 2px 8px rgba(196, 75, 211, 0.06);
  --shadow-md: 0 8px 28px rgba(196, 75, 211, 0.12);
  --shadow-lg: 0 20px 60px rgba(108, 75, 255, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 1100px;
  --maxw-narrow: 720px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
fieldset { border: none; padding: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--pink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 24px clamp(56px, 10vw, 120px);
  background: var(--grad-soft);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
  margin-bottom: 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.float-han {
  position: absolute;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  color: rgba(196, 75, 211, 0.10);
  user-select: none;
  animation: float 14s ease-in-out infinite;
}
.float-han.f1 { top: 12%; left: 6%; font-size: clamp(50px, 7vw, 110px); animation-delay: 0s; }
.float-han.f2 { top: 18%; right: 8%; font-size: clamp(40px, 6vw, 90px); animation-delay: -3s; }
.float-han.f3 { bottom: 14%; left: 11%; font-size: clamp(45px, 6.5vw, 100px); animation-delay: -6s; }
.float-han.f4 { bottom: 18%; right: 6%; font-size: clamp(40px, 5.5vw, 85px); animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

/* ==========================================================
   Generic section
   ========================================================== */
.section {
  padding: clamp(56px, 8vw, 110px) 24px;
}
.section + .section { border-top: 1px solid var(--line); }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-inner.narrow { max-width: var(--maxw-narrow); }
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================
   Generator form
   ========================================================== */
.gen-form, .waitlist-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.field {
  display: block;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.field-hint {
  font-weight: 500;
  color: var(--ink-faint);
}
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.12);
}

/* Pills (radio) and chips (checkbox) */
.radio-row, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-row.wrap { flex-wrap: wrap; }
.pill, .chip {
  position: relative;
  display: inline-flex;
}
.pill input, .chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.pill span, .chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  transition: all .15s ease;
  user-select: none;
}
.pill:hover span, .chip:hover span {
  border-color: var(--pink);
  color: var(--ink);
}
.pill input:checked + span,
.chip input:checked + span {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.pill input:focus-visible + span,
.chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.25);
}

/* Result card */
.result {
  margin-top: 36px;
  display: grid;
  gap: 18px;
  justify-items: center;
  animation: fadeUp .4s ease;
}
.result.hidden { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  text-align: center;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.result-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.result-hangul {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 10vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-roman {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.result-pron {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.result-divider {
  width: 36px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  margin: 0 auto 18px;
  opacity: 0.6;
}
.result-meaning {
  font-size: 15.5px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}
.result-copy {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.result-copy:hover { color: var(--ink); border-color: var(--pink); }
.result-copy.copied {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.copy-icon { font-size: 13px; }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================
   Premium teaser cards
   ========================================================== */
.premium {
  background: var(--bg-soft);
}
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) {
  .premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .premium-grid { grid-template-columns: 1fr; }
}

.locked-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.locked-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 75, 211, 0.25);
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: #f4ecff;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.locked-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.locked-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.55;
}
.blurred {
  filter: blur(5px);
  user-select: none;
}

/* Overlay used over locked previews — always visible to make the gating obvious */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,250,252,0.85) 100%);
  transition: padding-bottom .2s ease;
}
.card-overlay span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.locked-card:hover .card-overlay { padding-bottom: 18px; }

/* ----- Hanja deep-dive ----- */
.hanja-mock {
  position: relative;
  background: linear-gradient(180deg, #fffdfb 0%, #fff5fa 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.hanja-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hanja-char {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  filter: blur(2px);
}
.hanja-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  filter: blur(2.5px);
}
.hanja-pin { color: var(--purple); font-weight: 700; letter-spacing: 0.04em; }
.hanja-stroke { color: var(--ink-faint); }
.hanja-elem { color: var(--ink-faint); }

/* ----- Calligraphy certificate ----- */
.cert-mock {
  position: relative;
  perspective: 800px;
}
.cert-frame {
  background: #fffdfb;
  border: 2px solid #e7d4cc;
  border-radius: 6px;
  padding: 22px 14px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(120, 60, 80, 0.10);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(196, 75, 211, 0.04), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 107, 157, 0.05), transparent 40%);
}
.cert-frame::before, .cert-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #efdfd6;
  border-radius: 3px;
  pointer-events: none;
}
.cert-eyebrow {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: #b08d80;
  margin-bottom: 8px;
}
.cert-han {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 0.12em;
  color: #2a1a20;
  margin-bottom: 6px;
  filter: blur(2.5px);
}
.cert-rom {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #b08d80;
  margin-bottom: 12px;
  filter: blur(2px);
}
.cert-foot {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: #c0a094;
  text-transform: uppercase;
}
.cert-stamp {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: #c43044;
  color: #fff;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transform: rotate(-6deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* ----- Audio waveform ----- */
.audio-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  padding: 16px 18px;
  border-radius: 14px;
}
.audio-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: var(--shadow-sm);
}
.audio-play[disabled] { opacity: 0.85; cursor: not-allowed; }
.wave {
  flex: 1;
  height: 32px;
  color: var(--purple);
  opacity: 0.55;
}
.audio-time {
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ----- Personal seal ----- */
.seal-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.seal-stamp {
  width: 84px;
  height: 84px;
  background: #c43044;
  color: #fff;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  border-radius: 6px;
  letter-spacing: 0;
  line-height: 1;
  box-shadow:
    inset 0 0 0 3px #c43044,
    inset 0 0 0 4px #fff,
    inset 0 0 0 6px #c43044,
    0 4px 10px rgba(196, 48, 68, 0.25);
  transform: rotate(-4deg);
  filter: blur(0.6px);
  position: relative;
}
.seal-stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.seal-caption {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 600;
}

/* ----- Alternative names ----- */
.alts-mock {
  position: relative;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.alt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.alt-han {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.alt-rom {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ----- Shareable card ----- */
.ig-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.ig-frame {
  width: 100%;
  aspect-ratio: 9 / 12;
  background: var(--grad);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.ig-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.ig-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.ig-han {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ig-rom {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.32em;
  margin-bottom: 10px;
  opacity: 0.95;
}
.ig-meaning {
  font-size: 9.5px;
  font-style: italic;
  opacity: 0.85;
  max-width: 80%;
  line-height: 1.4;
}
.ig-platforms {
  display: flex;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================
   Waitlist
   ========================================================== */
.waitlist {
  background: var(--card);
}
.form-status {
  font-size: 14px;
  text-align: center;
  margin-top: 4px;
  min-height: 20px;
}
.form-status.error { color: #d63854; }
.form-status.success { color: #1f9d55; font-weight: 600; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  background: var(--bg-soft);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow .15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: var(--purple);
  font-weight: 700;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-meta {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .hero { padding: 56px 18px 64px; }
  .section { padding: 56px 18px; }
  .float-han { display: none; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
