@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Noto+Sans+KR:wght@400;500;700&family=Noto+Serif+KR:wght@700;900&display=swap');

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --ink:     #06060f;
  --ink2:    #0d0d1e;
  --surface: #111127;
  --text:    #ede9e1;
  --sub:     #8b8aa8;
  --red:     #e8233a;
  --red-dim: rgba(232,35,58,0.12);
  --line:    rgba(255,255,255,0.07);
  --radius:  10px;

  --f-serif:   'Noto Serif KR', serif;
  --f-sans:    'Noto Sans KR', sans-serif;
  --f-display: 'Cormorant Garamond', serif;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
  /* grain overlay */
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .028;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(6,6,15,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 600; font-style: italic;
  color: var(--text); letter-spacing: -.01em;
}
.logo span { color: var(--red); font-style: normal; }
.logo:hover { text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-family: var(--f-sans); font-size: 0.82rem; font-weight: 700;
  padding: 7px 18px; border-radius: 6px;
  letter-spacing: .02em; transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; text-decoration: none; color: #fff; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 100px 32px 80px;
  position: relative; overflow: hidden;
  background: var(--ink);
}

/* subtle grid background */
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* large decorative background letter */
.hero-bg-text {
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(200px, 30vw, 480px);
  font-weight: 600; font-style: italic;
  color: rgba(255,255,255,0.018);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none;
  user-select: none; letter-spacing: -.05em;
  line-height: 1;
}

.hero-inner {
  max-width: 900px; text-align: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--sub);
  margin-bottom: 32px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--sub); opacity: .6;
}

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 900; line-height: 1.18; letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-family: var(--f-display);
  font-size: 1.12em;
  color: var(--red);
  letter-spacing: -.03em;
}

.hero-sub {
  font-size: 1.05rem; color: var(--sub); line-height: 1.75;
  max-width: 480px; margin: 0 auto 44px;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  font-family: var(--f-sans); font-weight: 700; font-size: 0.9rem;
  padding: 13px 28px; border-radius: 8px; border: none;
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px); text-decoration: none; color: #fff;
  box-shadow: 0 12px 36px rgba(232,35,58,.35);
}
.btn-outline {
  background: transparent; color: var(--sub);
  font-family: var(--f-sans); font-weight: 500; font-size: 0.9rem;
  padding: 12px 24px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  letter-spacing: .01em; transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,.25); text-decoration: none; }

.hero-stats {
  margin-top: 36px; padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 600; font-style: italic;
  color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.75rem; color: var(--sub); letter-spacing: .08em; text-transform: uppercase; }

/* ─────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────── */
.section {
  padding: 96px 32px;
  border-top: 1px solid var(--line);
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────
   FEATURES — EDITORIAL LIST
───────────────────────────────────────── */
.features-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: end; margin-bottom: 64px;
}
.features-title {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.25; letter-spacing: -.02em;
}
.features-desc { color: var(--sub); font-size: 0.95rem; line-height: 1.75; }

.feature-list { list-style: none; }
.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0 40px; align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.feature-item:first-child { border-top: 1px solid var(--line); }
.feature-num {
  font-family: var(--f-display);
  font-size: 3.5rem; font-weight: 600; font-style: italic;
  color: rgba(255,255,255,.1); line-height: 1;
  transition: color .2s;
  padding-top: 4px;
}
.feature-item:hover .feature-num { color: var(--red); }
.feature-name {
  font-family: var(--f-serif);
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 8px; padding-top: 6px;
}
.feature-desc { color: var(--sub); font-size: 0.88rem; line-height: 1.7; }
.feature-tag {
  align-self: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sub);
  text-align: right; padding-right: 8px;
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.steps-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: end; margin-bottom: 64px;
}
.steps-title {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.25; letter-spacing: -.02em;
}
.steps-desc { color: var(--sub); font-size: 0.95rem; line-height: 1.75; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--ink); padding: 36px 28px;
  transition: background .2s;
}
.step:hover { background: var(--ink2); }
.step-num {
  font-family: var(--f-display);
  font-size: 4rem; font-weight: 600; font-style: italic;
  color: rgba(255,255,255,.07);
  line-height: 1; margin-bottom: 24px;
  transition: color .2s;
}
.step:hover .step-num { color: var(--red); }
.step-title {
  font-family: var(--f-serif);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1.4;
}
.step-desc { color: var(--sub); font-size: 0.85rem; line-height: 1.65; }
.step-tag {
  margin-top: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  padding: 96px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink2) 0%, var(--ink) 60%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,35,58,.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.cta-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.2; letter-spacing: -.025em;
  margin-bottom: 20px;
}
.cta-title em {
  font-style: italic; font-family: var(--f-display);
  font-size: 1.1em; color: var(--red);
}
.cta-desc { color: var(--sub); margin-bottom: 40px; font-size: 0.95rem; }

/* ─────────────────────────────────────────
   FOOTER — FIXED BOTTOM BAR
───────────────────────────────────────── */
footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,15,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-links {
  display: flex; gap: 0;
}
.footer-links a {
  font-size: 0.78rem; color: #a8a6c4; padding: 4px 14px;
  border-right: 1px solid var(--line); transition: color .2s;
  letter-spacing: .01em;
}
.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-links a.active { color: var(--text); }
.footer-copy {
  font-size: 0.72rem; color: rgba(139,138,168,.4);
  font-family: var(--f-display); font-style: italic;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   DOC PAGES (privacy / terms)
───────────────────────────────────────── */
.doc-page { padding-top: 58px; }
.doc-hero {
  padding: 72px 32px 60px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: relative; overflow: hidden;
}
.doc-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
  opacity: .5;
}
.doc-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.doc-hero-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.doc-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 10px;
}
.doc-hero-meta { color: var(--sub); font-size: 0.85rem; }

.doc-body {
  max-width: 760px; margin: 0 auto;
  padding: 60px 32px 80px;
}
.doc-body h2 {
  font-family: var(--f-serif);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  margin: 44px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li {
  color: var(--sub); font-size: 0.93rem; line-height: 1.8; margin-bottom: 10px;
}
.doc-body ul, .doc-body ol { padding-left: 18px; }
.doc-body li { margin-bottom: 7px; }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body a { color: var(--red); }
.doc-body code {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 7px; font-size: .84em;
  font-family: 'Courier New', monospace; color: rgba(232,35,58,.9);
}
.highlight-box {
  margin: 20px 0; padding: 18px 22px;
  background: rgba(232,35,58,.06); border: 1px solid rgba(232,35,58,.2);
  border-radius: var(--radius);
}
.highlight-box p { margin-bottom: 0; color: rgba(237,233,225,.7); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .features-header, .steps-header { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 60px 1fr; }
  .feature-tag { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0 20px; }
  .hero { padding: 88px 20px 64px; }
  .section { padding: 64px 20px; }
  .hero h1 { font-size: 2.1rem; }
  .feature-item { grid-template-columns: 48px 1fr; gap: 0 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 16px; }
  .footer-links a { font-size: 0.72rem; padding: 4px 9px; }
  .footer-copy { display: none; }
  .cta-section { padding: 72px 20px; }
  .doc-hero { padding: 60px 20px 48px; }
  .doc-body { padding: 48px 20px 72px; }
}
@media (max-width: 440px) {
  .hero-stats { gap: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
}
