/* ───────────────────────────────────────────────────────────────
   incove — marketing site design system
   Tokens mirrored from design_handoff_incove/design/theme.jsx (T)
   Dark-mode only. Single gold accent (#cda349). Cinematic.
   ─────────────────────────────────────────────────────────────── */

:root {
  /* colors */
  --bg:        #0A0A0B;
  --surface:   #16161A;
  --surfaceHi: #222226;
  --border:    rgba(255,255,255,0.06);
  --borderHi:  rgba(255,255,255,0.12);
  --text:      #F5F5F0;
  --textMid:   #A0A0A0;
  --textDim:   #6B6B6B;
  --textFaint: #48484A;
  --accent:    #cda349;
  --accentDim: rgba(205,163,73,0.18);
  --onAccent:  #1a1208;
  --error:     #E07856;
  --good:      #7EC894;

  /* gold gradient (mark/seal sync) */
  --gold-grad: linear-gradient(135deg, #f4dd9a 0%, #cda349 45%, #9d7a2e 100%);

  /* spacing scale (T.s) */
  --xxs: 4px; --xs: 8px; --sm: 16px; --md: 24px; --lg: 32px; --xl: 48px; --xxl: 64px;

  /* radius (T.r) */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-full: 999px;

  /* motion (T.ease) */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --slowEase: cubic-bezier(0.16, 1, 0.3, 1);

  /* type */
  --ui:    "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "PT Serif", "Noto Serif KR", Georgia, serif;
  --mono:  "JetBrains Mono", "SF Mono", Menlo, monospace;

  --maxw: 1080px;
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* film-grain overlay (theme.jsx body::after) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accentDim); color: var(--text); }

/* ── layout helpers ────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--textDim);
}
.gold-text { color: var(--accent); }
.serif { font-family: var(--serif); font-style: italic; color: var(--textMid); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
p { color: var(--textMid); }

/* ── header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,11,0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand .word { font-size: 21px; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { font-size: 14px; color: var(--textMid); transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { font-family: var(--mono); font-size: 12px; color: var(--textDim); letter-spacing: 1px; }
.lang a.active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding-inline: 22px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--onAccent);
  transition: transform .2s var(--ease), filter .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--borderHi);
}
.btn-sm { height: 38px; padding-inline: 16px; font-size: 13px; }

/* ── hero ──────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(205,163,73,0.10), transparent 55%),
    radial-gradient(90% 90% at 50% 30%, var(--surface), var(--bg) 70%);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 68px);
  font-weight: 600; letter-spacing: -0.045em;
  max-width: 16ch;
  background: linear-gradient(180deg, #ffffff 0%, #cfcfca 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin-top: 26px; max-width: 56ch;
  font-size: clamp(16px, 2.1vw, 20px); color: var(--textMid); line-height: 1.7;
}
.hero .poetic { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(15px,2vw,19px); color: var(--accent); opacity: .92; }
.hero .cta-row { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--textFaint); letter-spacing: .5px; }

/* ── seal motif ────────────────────────────────────────────── */
.seal-float { width: clamp(120px, 22vw, 200px); height: auto; margin-inline: auto; filter: drop-shadow(0 12px 40px rgba(205,163,73,0.18)); }
@media (prefers-reduced-motion: no-preference) {
  .seal-float { animation: breath 6s var(--slowEase) infinite; }
  @keyframes breath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
}

/* ── answer-first block (AEO/GEO: quotable definition) ─────── */
.answer { padding-block: clamp(28px, 5vw, 48px); }
.answer .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 24px 26px;
  max-width: 70ch;
}
.answer .q { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.answer .a { font-size: clamp(15px, 2vw, 17px); line-height: 1.7; color: var(--text); }

/* ── feature grid ──────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: var(--borderHi); transform: translateY(-3px); }
.card .ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accentDim); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14.5px; color: var(--textMid); }

/* concept cross-link cards (internal linking for SEO) */
a.card.link { display: block; }
a.card.link:hover h3 { color: var(--accent); }
a.card.link .arrow { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 1px; }

/* ── section heading block ─────────────────────────────────── */
.sec-head { max-width: 60ch; margin-bottom: 44px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 40px); color: var(--text); }
.sec-head p { margin-top: 16px; font-size: 16.5px; }

/* ── feature rows (alternating) ────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-row + .feature-row { margin-top: 64px; }
.feature-row .fr-visual {
  aspect-ratio: 4/3; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: radial-gradient(80% 80% at 50% 35%, var(--surfaceHi), var(--surface));
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.feature-row .fr-visual svg { width: 46%; height: auto; }
.feature-row h3 { font-size: clamp(22px, 3vw, 30px); color: var(--text); margin-bottom: 14px; }
.feature-row p { font-size: 16px; }
.feature-row ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feature-row li { display: flex; gap: 10px; font-size: 14.5px; color: var(--textMid); }
.feature-row li::before { content: "✦"; color: var(--accent); flex-shrink: 0; }

/* ── stat / proof strip ────────────────────────────────────── */
.proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.proof div { background: var(--bg); padding: 30px 24px; text-align: center; }
.proof .num { font-family: var(--mono); font-size: clamp(26px,4vw,38px); font-weight: 700; color: var(--accent); letter-spacing: -1px; }
.proof .lbl { margin-top: 8px; font-size: 13px; color: var(--textDim); }

/* ── quote / poetic band ───────────────────────────────────── */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.6vw, 34px); line-height: 1.5; color: var(--text); max-width: 24ch; margin-inline: auto; text-align: center; }
.band cite { display: block; margin-top: 22px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 1.5px; color: var(--textDim); }

/* ── final CTA ─────────────────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(28px, 4.6vw, 46px); color: var(--text); }
.cta-final p { margin-top: 18px; font-size: 17px; }
.cta-final .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--textDim); margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14px; color: var(--textMid); padding: 5px 0; transition: color .2s var(--ease); }
.foot-grid a:hover { color: var(--text); }
.foot-brand .word { font-size: 19px; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.foot-brand p { margin-top: 12px; font-size: 13.5px; color: var(--textDim); max-width: 34ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--textFaint); letter-spacing: .5px; }

/* ── legal pages (privacy policy / terms) ──────────────────── */
.legal { max-width: 800px; padding-block: clamp(40px, 7vw, 72px); }
.legal h1 { font-size: clamp(28px, 4.4vw, 40px); color: var(--text); margin-bottom: 10px; }
.legal .meta { font-family: var(--mono); font-size: 12.5px; color: var(--textDim); letter-spacing: .3px; }
.legal h2 { font-size: clamp(18px, 2.6vw, 22px); color: var(--text); margin-top: 2.2em; padding-bottom: .4em; border-bottom: 1px solid var(--border); }
.legal p, .legal li { color: var(--textMid); font-size: 15.5px; line-height: 1.8; }
.legal p { margin-top: 1em; }
.legal ul { margin: 1em 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal li { padding-left: 4px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { color: var(--textMid); font-style: italic; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-family: var(--mono); background: var(--surfaceHi); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.legal table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal td { color: var(--textMid); }
.legal .callout { background: var(--accentDim); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: var(--r-md); margin: 1.2em 0; }
.legal .callout.warn { background: rgba(224,120,86,0.12); border-left-color: var(--error); }
.legal .callout p { margin: 0; color: var(--text); }
.legal .draft-notice { background: rgba(224,120,86,0.12); border: 1px solid rgba(224,120,86,0.4); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 28px; font-size: 14px; color: var(--text); }
.legal mark.todo { background: rgba(224,120,86,0.22); color: var(--error); font-family: var(--mono); font-size: 12.5px; padding: 1px 7px; border-radius: 4px; font-style: normal; white-space: nowrap; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0 1.4em; }

/* ── scroll reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--slowEase), transform .7s var(--slowEase); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { gap: 14px; }
  .nav .nav-link { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.flip .fr-visual { order: -1; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .proof { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}
