:root {
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-hover: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border: #E2E8F0;
  --primary: #008B8B;
  --primary-hover: #007A7A;
  --primary-text: #FFFFFF;
  --shadow: 0 6px 24px rgba(0,139,139,0.05);
}

.dark {
  --bg: #0A0A0A;
  --surface: #121212;
  --surface-hover: #1E1E1E;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --border: #27272A;
  --primary: #00C9C9;
  --primary-hover: #00E0E0;
  --primary-text: #0A0A0A;
  --shadow: 0 6px 24px rgba(0,201,201,0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Satoshi', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5 {
  font-family: 'Clash Display', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

code, pre, .mono { font-family: 'JetBrains Mono', monospace; }

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

a { color: inherit; text-decoration: none; }

.container-x { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 1024px) { .container-x { padding-left: 2rem; padding-right: 2rem; } }

.s2o-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 0.75rem;
  font-weight: 500; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.s2o-btn-primary { background: var(--primary); color: var(--primary-text); }
.s2o-btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.s2o-btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.s2o-btn-secondary:hover { background: var(--surface-hover); }
.s2o-btn-ghost { background: transparent; color: var(--text-primary); }
.s2o-btn-ghost:hover { background: var(--surface); }

.s2o-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 1rem;
  transition: all 0.25s ease;
}
.s2o-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }

.s2o-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary);
  font-size: 0.95rem; outline: none; transition: border-color 0.2s ease;
}
.s2o-input:focus { border-color: var(--primary); }

.s2o-dropzone {
  border: 2px dashed var(--border); border-radius: 1rem; padding: 3rem 2rem;
  text-align: center; cursor: pointer; transition: all 0.2s ease;
  background: var(--surface);
}
.s2o-dropzone:hover, .s2o-dropzone.drag { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }

.s2o-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s ease;
}
.s2o-chip:hover { border-color: var(--primary); color: var(--text-primary); }
.s2o-chip.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }

.text-secondary { color: var(--text-secondary); }
.text-primary-c { color: var(--primary); }
.bg-surface { background: var(--surface); }
.border-default { border-color: var(--border); }

.s2o-grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

@keyframes fadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
