/* ==========================================================================
   Crobby (크로비) — web/ design system (v2)
   Bridging online↔offline: cyan = 온라인/디지털, gold = 오프라인/사람.
   Gold is the Crobby brand gold (#FFC53D, same as the app accent) — see brand/README.md.
   Premium ink canvas, hairline borders, restrained motion.
   Serves the landing (.nav/.hero/.section…) and the legal pages (.wrap/…).
   Self-contained: system fonts, same-origin SVG/PNG, no external assets.
   ========================================================================== */

:root {
  --bg: #070809;
  --bg-2: #0b0d11;
  --surface: #0f1217;
  --surface-2: #13171e;
  --elev: #171c24;
  --border: #20262f;
  --border-soft: #171c23;
  --hair: rgba(255, 255, 255, 0.06);
  --text: #f2f4f7;
  --dim: #98a2b0;
  --faint: #5c6672;
  --gold: #ffc53d;        /* offline · human · warmth — Crobby brand gold */
  --gold-2: #ffda7a;
  --gold-deep: #d9a021;
  --cyan: #5cc8ff;        /* online · digital */
  --cyan-2: #8fdcff;
  --cyan-deep: #2b9fe0;
  --on-accent: #08090a;
  --safe: #5fd3a3;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Nanum Myeongjo", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; }
::selection { background: rgba(255, 197, 61, 0.25); }

/* ---- layout primitives ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 68px 0; }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent); margin: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); }
.eyebrow.cy { color: var(--cyan); }
.eyebrow.cy::before { background: linear-gradient(90deg, var(--cyan-deep), transparent); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
.section-title { font-size: clamp(29px, 4.2vw, 46px); margin: 0 0 16px; }
.section-lead { color: var(--dim); font-size: 17px; max-width: 60ch; margin: 0 0 48px; line-height: 1.6; }

/* gradient text — the online↔offline bridge, animated shimmer */
.grad {
  background: linear-gradient(100deg, var(--cyan-2), var(--gold-2) 55%, var(--gold));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}
.grad.warm { background-image: linear-gradient(110deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(16px); background: rgba(7, 8, 9, 0.7); border-bottom: 1px solid var(--hair); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .logo { display: block; height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--dim); font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-accent);
  font-weight: 800; font-size: 15px; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease);
  box-shadow: 0 12px 32px -14px rgba(255, 197, 61, 0.55);
}
.btn:hover { color: var(--on-accent); transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 40px -16px rgba(255, 197, 61, 0.7); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; font-weight: 700; }
.btn.ghost:hover { color: var(--text); border-color: var(--gold-deep); background: rgba(255, 197, 61, 0.06); }
.btn.sm { padding: 9px 16px; font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--cyan-2); background: rgba(92, 200, 255, 0.09); border: 1px solid rgba(92, 200, 255, 0.26); padding: 5px 13px; border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 0 rgba(95, 211, 163, 0.5); animation: beat 2.6s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 163, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95, 211, 163, 0); } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(50% 55% at 72% 12%, rgba(255, 197, 61, 0.14), transparent 70%),
    radial-gradient(46% 50% at 20% 4%, rgba(92, 200, 255, 0.12), transparent 72%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; } to { transform: translate3d(-2%, 2%, 0) scale(1.06); opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(40px, 6.2vw, 70px); letter-spacing: -0.04em; margin: 0 0 22px; }
.hero .sub { color: var(--dim); font-size: clamp(16px, 2.1vw, 19px); max-width: 52ch; margin: 0 0 34px; line-height: 1.62; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta-note { color: var(--faint); font-size: 13px; margin: 20px 0 0; }

/* hero visual — the online↔offline bridge */
.stage {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)), radial-gradient(120% 90% at 50% 0%, rgba(92, 200, 255, 0.06), transparent 60%);
  padding: 20px; box-shadow: 0 50px 90px -46px rgba(0, 0, 0, 0.85), inset 0 1px 0 var(--hair);
}
.stage svg { display: block; width: 100%; height: auto; }

/* ---- staggered load-in ---- */
.rise { opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- gap / duality two-up ---- */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.duo .side { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.duo .side .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; display: inline-block; }
.duo .side.online .tag { color: var(--cyan); }
.duo .side.offline .tag { color: var(--gold); }
.duo .side h3 { font-size: 19px; margin: 0 0 8px; font-weight: 750; }
.duo .side p { color: var(--dim); font-size: 14.5px; margin: 0; }
.duo .link { display: grid; place-items: center; color: var(--faint); font-size: 22px; }
.duo .link .arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; background: var(--surface-2); background-image: linear-gradient(135deg, rgba(92, 200, 255, 0.12), rgba(255, 197, 61, 0.12)); }

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

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease; position: relative; }
.card.feature:hover { transform: translateY(-4px); border-color: rgba(255, 197, 61, 0.35); background: var(--surface-2); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(92, 200, 255, 0.1), rgba(255, 197, 61, 0.1)); border: 1px solid var(--hair); margin-bottom: 18px; }
.card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 750; }
.card p { color: var(--dim); font-size: 14.5px; margin: 0; }

/* numbered steps */
.step .n { font-family: var(--mono); font-size: 13px; color: var(--gold); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: var(--surface); }
.step h3 { font-size: 16.5px; margin: 0 0 7px; font-weight: 750; }
.step p { color: var(--dim); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---- brand story ---- */
.story { position: relative; overflow: hidden; }
.story .glyph { position: absolute; right: -1%; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: clamp(130px, 27vw, 340px); line-height: 1; color: rgba(255, 197, 61, 0.055); pointer-events: none; user-select: none; }
.story .quote { font-family: var(--serif); font-size: clamp(25px, 3.6vw, 40px); line-height: 1.32; letter-spacing: -0.015em; color: var(--text); max-width: 22ch; margin: 0 0 26px; font-weight: 500; }
.story .quote em { color: var(--gold); font-style: italic; }
.story p { color: var(--dim); font-size: 16px; max-width: 58ch; line-height: 1.7; }
.story .term { color: var(--gold); font-weight: 700; }

/* ---- vision band ---- */
.vision { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 52px; background: radial-gradient(120% 140% at 10% 0%, rgba(92, 200, 255, 0.1), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 197, 61, 0.1), transparent 55%), var(--surface); }
.vision h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 14px; }
.vision p { color: var(--dim); font-size: 16.5px; max-width: 60ch; line-height: 1.7; margin: 0 0 26px; }
.vroad { display: flex; flex-wrap: wrap; gap: 10px; }
.vroad span { font-size: 13px; color: var(--dim); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; background: var(--surface-2); }
.vroad span b { color: var(--text); font-weight: 700; }

/* ---- trust ---- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust .item { border: 1px solid var(--border-soft); border-radius: 15px; padding: 22px; background: var(--surface); }
.trust .k { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.trust .k .u { color: var(--gold); }
.trust .v { color: var(--dim); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }

/* ---- CTA band ---- */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 54px; text-align: center; background: radial-gradient(90% 150% at 50% 0%, rgba(255, 197, 61, 0.12), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cta-band h2 { font-size: clamp(27px, 3.8vw, 40px); margin: 0 0 14px; }
.cta-band p { color: var(--dim); margin: 0 auto 30px; max-width: 48ch; line-height: 1.6; }

/* ---- site footer ---- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 60px 0 42px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 44px; }
.foot-brand .brand { font-size: 20px; margin-bottom: 14px; }
.foot-brand .brand .logo { height: 42px; }
.foot-brand p { color: var(--dim); font-size: 14px; max-width: 36ch; margin: 0 0 18px; line-height: 1.6; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--faint); margin: 0 0 15px; font-family: var(--mono); font-weight: 600; }
.foot-col a, .foot-col span { display: block; color: var(--dim); font-size: 14px; margin-bottom: 11px; }
.foot-col a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--border-soft); margin-top: 42px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; color: var(--faint); font-size: 12.5px; }
.foot-legal .biz { max-width: 72ch; line-height: 1.6; }

/* ==========================================================================
   Legal / utility pages (.wrap)
   ========================================================================== */
.wrap { max-width: 780px; margin: 0 auto; padding: 44px 24px 100px; }
.wrap header { margin-bottom: 8px; }
.wrap header a { color: var(--dim); font-weight: 700; font-size: 14px; }
.wrap header a:hover { color: var(--gold); }
.wrap header .back { display: inline-flex; align-items: center; gap: 10px; }
.wrap header .logo { display: block; height: 26px; width: auto; }
.wrap h1 { font-size: clamp(26px, 4vw, 34px); margin: 20px 0 6px; }
.wrap h2 { font-size: 18px; margin: 34px 0 8px; font-weight: 750; }
.wrap h3 { font-size: 15px; margin: 20px 0 6px; color: var(--gold); }
.wrap p, .wrap li { color: var(--text); font-size: 15px; line-height: 1.7; }
.dim, small { color: var(--dim); }
.note { background: rgba(255, 197, 61, 0.08); border: 1px solid rgba(255, 197, 61, 0.3); border-radius: 12px; padding: 12px 15px; color: var(--gold-2); font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; font-size: 14px; vertical-align: top; }
th { color: var(--dim); font-weight: 700; background: var(--surface); }
.wrap footer { margin-top: 52px; border-top: 1px solid var(--border-soft); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wrap footer a { color: var(--dim); font-size: 14px; }
.wrap footer a:hover { color: var(--gold); }
.card .btn { margin: 6px 8px 6px 0; }
code { background: #05070a; padding: 2px 6px; border-radius: 6px; color: var(--dim); font-family: var(--mono); font-size: 0.92em; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.s1 { transition-delay: 0.06s; } .reveal.s2 { transition-delay: 0.12s; } .reveal.s3 { transition-delay: 0.18s; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stage { order: 2; max-width: 460px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .duo .link { padding: 4px 0; }
  .duo .link .arrow { transform: rotate(90deg); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .section { padding: 74px 0; }
  .vision, .cta-band { padding: 38px 24px; }
}
@media (max-width: 520px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2, .trust, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .grad { animation: none; }
  .hero::before, .pill .dot { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* moved from inline style attributes (strict CSP: style-src 'self') */
b.hl { color: var(--text); }
.cta-row.center { justify-content: center; }
