/* QuotaBar site — tokens from the JeongHoon Lim design system (me.scian.xyz) */

:root {
  --bg: #eef1f6;
  --bg-2: #ffffff;
  --fg: #14161c;
  --fg-2: rgba(20, 22, 28, 0.6);
  --fg-3: rgba(20, 22, 28, 0.4);
  --line: rgba(20, 22, 28, 0.12);
  --line-2: rgba(20, 22, 28, 0.06);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.95);
  --glass-hi: rgba(255, 255, 255, 0.45);
  --accent: #2f63d6;
  --accent-soft: rgba(47, 99, 214, 0.1);
  --on-accent: #ffffff;
  --shadow: 0 26px 60px -42px rgba(20, 40, 90, 0.26);

  /* the product's own usage-stage colours (mock gauge only) */
  --stage-1: #2fbf8f;
  --stage-2: #e5b53a;
  --stage-3: #ee8a3a;
  --stage-4: #e5484d;

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --name: 'Newsreader', Georgia, serif;
  --disp: var(--sans); /* Korean: display face swaps to the sans stack */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-glass: 15px;
  --radius-card: 18px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0b0d11;
  --bg-2: #12151b;
  --fg: #e8eaee;
  --fg-2: rgba(232, 234, 238, 0.56);
  --fg-3: rgba(232, 234, 238, 0.34);
  --line: rgba(232, 234, 238, 0.11);
  --line-2: rgba(232, 234, 238, 0.06);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --accent: #6f9eff;
  --accent-soft: rgba(111, 158, 255, 0.16);
  --on-accent: #0b0d11;
  --shadow: 0 30px 80px -44px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-md); }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--space-6); }

/* glass utility */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: var(--space-3) 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  border-radius: var(--radius-glass);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; flex: none; display: block; }
.brand b { font-family: var(--name); font-weight: 500; font-size: 18px; letter-spacing: -0.025em; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a {
  color: var(--fg-2); font-size: 14px; font-weight: 500; line-height: 1.3;
  padding: 7px 11px; border-radius: var(--radius-md);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-links a:hover { background: var(--glass-2); color: var(--fg); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: var(--space-1);
  background: transparent; color: var(--fg-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  cursor: pointer; transition: color 0.25s var(--ease), background 0.25s var(--ease), translate 0.25s var(--ease);
}
.icon-btn:hover { color: var(--fg); background: var(--glass-2); translate: 0 -1px; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-sun { display: none; }
:root[data-theme='dark'] .icon-btn .i-sun { display: block; }
:root[data-theme='dark'] .icon-btn .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { padding: var(--space-14) 0 var(--space-12); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); line-height: 1.3;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-name {
  font-family: var(--name); font-weight: 500; letter-spacing: -0.025em; line-height: 0.96;
  font-size: clamp(44px, 8vw, 80px); margin: var(--space-5) 0 var(--space-5);
}
.tagline {
  font-family: var(--disp); font-weight: 500; letter-spacing: -0.02em; line-height: 1.42;
  font-size: clamp(18px, 2vw, 23px); color: var(--fg-2); margin: 0 0 var(--space-8); max-width: 30em;
}
.tagline em { font-style: normal; color: var(--fg); position: relative; white-space: nowrap; }
.tagline em svg { position: absolute; left: -2%; bottom: -9px; width: 104%; height: 12px; overflow: visible; }
.tagline em path {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s 0.35s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  padding: 13px 20px; border-radius: var(--radius-lg); border: 1px solid transparent; cursor: pointer;
  transition: translate 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { translate: 0 -2px; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--glass-2); }
.meta { margin-top: var(--space-5); font-size: 12px; font-weight: 500; color: var(--fg-3); }
.meta span + span::before { content: '·'; margin: 0 var(--space-2); }

/* mock gauge card */
.mock { border-radius: var(--radius-card); padding: var(--space-6); }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; color: var(--fg-3); margin-bottom: var(--space-4); }
.mock-head b { color: var(--fg-2); font-weight: 600; letter-spacing: 0.04em; }
.ring-hero { display: grid; place-items: center; position: relative; margin: var(--space-2) 0 var(--space-5); }
.ring-hero svg { width: 168px; height: 168px; transform: rotate(-90deg); }
.ring-hero .track { stroke: var(--line); }
.ring-hero .val { stroke: var(--stage-2); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; animation: fill 1.4s 0.3s var(--ease) forwards; --to: 128; }
@keyframes fill { to { stroke-dashoffset: var(--to); } }
.ring-label { position: absolute; text-align: center; line-height: 1.1; }
.ring-label b { display: block; font-family: var(--name); font-weight: 500; font-size: 44px; letter-spacing: -0.03em; }
.ring-label small { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row .n { font-weight: 600; }
.row .v { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 5px; border-radius: var(--radius-full); background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; width: 0; animation: grow 1.2s 0.5s var(--ease) forwards; }
@keyframes grow { to { width: var(--w); } }

/* ---------- sections ---------- */
section { padding: var(--space-12) 0; border-top: 1px solid var(--line-2); }
.sec-title {
  font-family: var(--disp); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
  font-size: clamp(30px, 4.4vw, 44px); margin: var(--space-3) 0 var(--space-4);
}
.lead { color: var(--fg-2); max-width: 38em; margin: 0 0 var(--space-8); }
.grid { display: grid; gap: var(--space-8); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.lead + .lead { margin-top: calc(var(--space-4) * -1); }

.plain { margin: 0; padding: 0; list-style: none; max-width: 40em; }
.plain li { padding: var(--space-4) 0; border-top: 1px solid var(--line-2); color: var(--fg-2); font-size: 15px; }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain strong { color: var(--fg); font-weight: 600; }

.services { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.services li { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

pre {
  margin: 0; padding: var(--space-5); border-radius: var(--radius-xl); overflow-x: auto; font-size: 13px; line-height: 1.7;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg);
}
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); color: var(--fg-2); font-size: 15px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700;
}

#assets { margin-top: var(--space-6); display: grid; gap: var(--space-2); }
.asset {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2);
  font-size: 14px; color: var(--fg); font-weight: 500;
}
.asset:hover { text-decoration: none; border-color: var(--accent); }
.asset small { color: var(--fg-3); font-weight: 500; white-space: nowrap; }

/* ---------- footer ---------- */
footer { margin-top: var(--space-10); border-top: 1px solid var(--line); padding: var(--space-6) 0 var(--space-12); font-size: 13px; color: var(--fg-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: center; }
.foot nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.foot a { color: var(--fg-2); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--space-8); gap: var(--space-10); }
  .g2 { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .tagline em path { stroke-dashoffset: 0; }
  .ring-hero .val { stroke-dashoffset: var(--to); }
  .bar i { width: var(--w); }
}
