/* TigerShield Design System — Developer Native v1.0
   토큰 근거: marketing/05-브랜드-가이드라인.md §9 */

:root {
  /* surfaces */
  --bg-base: #0B0E14;
  --bg-elevated: #12161F;
  --bg-card: #161B26;
  --border: #232A36;
  --border-strong: #33404F;
  /* text */
  --text-primary: #E6EDF3;
  --text-secondary: #9AA7B8;
  --text-muted: #5C6B7E;
  /* accent */
  --accent: #3DDC97;
  --accent-hover: #2FC784;
  --accent-2: #5B8DEF;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --accent-ink: #07120D;
  /* risk (제품 UI 공유) */
  --risk-low: #3DDC97;
  --risk-medium: #F5B849;
  --risk-high: #F97B5B;
  --risk-critical: #F0466E;
  /* type */
  --font-sans: "Pretendard", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* geometry */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --maxw: 1160px;
  --gutter: 24px;
  /* spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  /* depth: border + glow, no heavy drop shadows */
  --hairline: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --lift: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 50px -30px rgba(0, 0, 0, 0.8);
  --glow-accent: 0 0 0 1px var(--accent-soft), 0 20px 60px -28px rgba(61, 220, 151, 0.28);
  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv01" 1, "ss01" 1;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Typography scale ---- */
.display { font-size: clamp(2.6rem, 5.2vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; }
.h1 { font-size: clamp(2rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.65rem, 2.7vw, 2rem); letter-spacing: -0.025em; }
.h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text-secondary); line-height: 1.65; letter-spacing: -0.01em; text-wrap: pretty; }
.small { font-size: 0.875rem; }
.muted { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
:is(p, li) { text-wrap: pretty; }

/* kicker: 모노 uppercase + 도트 (pill 형태로 격상) */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px 6px 11px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(61, 220, 151, 0.18);
  box-shadow: var(--hairline);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: kickerPulse 2.6s var(--ease) infinite;
}
@keyframes kickerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.22s var(--ease-out), background 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 30px -12px rgba(61, 220, 151, 0.5);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 40px -14px rgba(61, 220, 151, 0.6); }
.btn-secondary { background: rgba(255, 255, 255, 0.015); color: var(--text-primary); border-color: var(--border-strong); box-shadow: var(--hairline); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }
.btn-ghost { padding: 0; color: var(--accent); border: 0; font-weight: 600; }
.btn-ghost .arrow { display: inline-block; transition: transform 0.22s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(5px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
/* button-in-button trailing icon */
.btn__ic {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 999px; margin: -4px -6px -4px 2px;
  background: rgba(7, 18, 13, 0.14);
  transition: transform 0.22s var(--ease-out), background 0.2s var(--ease-out);
}
.btn-secondary .btn__ic { background: var(--accent-soft); }
.btn:hover .btn__ic { transform: translate(2px, -1px) scale(1.06); }
.btn__ic svg { width: 13px; height: 13px; }

/* ---- Cards ---- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)) ,
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--hairline);
  transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background 0.28s var(--ease-out);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card--glow:hover { border-color: var(--accent); box-shadow: var(--glow-accent), var(--hairline); transform: translateY(-4px); }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.badge--accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.risk-low { color: var(--risk-low); border-color: var(--risk-low); background: rgba(61,220,151,.12); }
.risk-medium { color: var(--risk-medium); border-color: var(--risk-medium); background: rgba(245,184,73,.12); }
.risk-high { color: var(--risk-high); border-color: var(--risk-high); background: rgba(249,123,91,.12); }
.risk-critical { color: var(--risk-critical); border-color: var(--risk-critical); background: rgba(240,70,110,.12); }

/* ---- Terminal / code window ---- */
.window {
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.window__dot { width: 10px; height: 10px; border-radius: 50%; }
.window__title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.window__body { padding: 16px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; }

/* dividers & texture */
.hr { height: 1px; background: var(--border); border: 0; }
.tiger-texture {
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(61,220,151,0.02) 22px 24px);
}

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* a11y */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
