/* TwigSNS v1 — Design Tokens */
:root {
  /* Brand */
  --twig-primary: #23bf94;
  --twig-primary-dark: #1a9e7a;
  --twig-primary-light: #e8f9f3;
  --twig-primary-lighter: #f3fbf8;

  /* Partner */
  --phantom: #AB9FF2;
  --solana-start: #9945FF;
  --solana-end: #14F195;
  --kakao: #FEE500;

  /* Neutrals */
  --ink-0: #ffffff;
  --ink-50: #fafbfa;
  --ink-100: #f4f5f4;
  --ink-200: #e8eae8;
  --ink-300: #cdd1ce;
  --ink-500: #6e6e6e;
  --ink-700: #3d4142;
  --ink-900: #14201b;

  /* Dark */
  --dark-bg: #0b1410;
  --dark-surface: #111c17;
  --dark-surface-2: #17251e;
  --dark-border: #1f3028;

  /* Semantic */
  --bg: var(--ink-0);
  --surface: var(--ink-50);
  --border: var(--ink-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);

  /* Type */
  --font-sans: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 32, 27, 0.04), 0 1px 3px rgba(20, 32, 27, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 32, 27, 0.06), 0 2px 6px rgba(20, 32, 27, 0.04);
  --shadow-lg: 0 16px 48px rgba(20, 32, 27, 0.1), 0 4px 12px rgba(20, 32, 27, 0.06);
  --shadow-brand: 0 10px 30px rgba(35, 191, 148, 0.25);
}

[data-theme="dark"] {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --border: var(--dark-border);
  --text: #ecf5f0;
  --text-muted: #8a9991;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Typography */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--twig-primary-dark);
}
[data-theme="dark"] .eyebrow { color: var(--twig-primary); }

.h-display {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  word-break: keep-all;
}
.h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  word-break: keep-all;
}
.h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  word-break: keep-all;
}
.h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.body-lg {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  word-break: keep-all;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: keep-all;
}
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--twig-primary);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--twig-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(35, 191, 148, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-300);
}
[data-theme="dark"] .btn-ghost:hover { background: var(--dark-surface-2); }
.btn-phantom {
  background: var(--phantom);
  color: white;
}
.btn-phantom:hover { background: #9585e8; }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* Utilities */
.mint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--twig-primary-light);
  color: var(--twig-primary-dark);
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .mint-chip {
  background: rgba(35, 191, 148, 0.15);
  color: var(--twig-primary);
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--twig-primary);
  box-shadow: 0 0 0 0 rgba(35, 191, 148, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 191, 148, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(35, 191, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 191, 148, 0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.3, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal-child.in {
  opacity: 1;
  transform: translateY(0);
}

/* Idle motion primitives */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes coin-drift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--dx, 20px), -120px) rotate(360deg); opacity: 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 191, 148, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(35, 191, 148, 0); }
}
@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fill-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fill-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes draw-circle {
  from { stroke-dashoffset: var(--circ, 360); }
  to { stroke-dashoffset: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child { transition: none !important; transform: none !important; opacity: 1 !important; }
  * { animation: none !important; }
}
