:root {
  --bg: #0b0b0d;
  --bg-raised: #101013;
  --bg-card: #151519;
  --bg-card-hover: #1c1c22;
  --fg: #f0ece4;
  --fg-muted: #918d85;
  --fg-dim: #58545e;
  --accent: #d4a843;
  --accent-soft: rgba(212, 168, 67, 0.1);
  --accent-hover: #e0b94f;
  --accent-glow: rgba(212, 168, 67, 0.25);
  --success: #3ecf8e;
  --success-soft: rgba(62, 207, 142, 0.1);
  --danger: #ef5a5a;
  --danger-soft: rgba(239, 90, 90, 0.1);
  --warning: #f0a030;
  --warning-soft: rgba(240, 160, 48, 0.1);
  --info: #5ba8f5;
  --info-soft: rgba(91, 168, 245, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(212, 168, 67, 0.3);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 272px;
  --sidebar-collapsed-width: 68px;
}

html.light {
  --bg: #f5f4f1;
  --bg-raised: #edecea;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f7f4;
  --fg: #111010;
  --fg-muted: #55524e;
  --fg-dim: #99958f;
  --border: rgba(0, 0, 0, 0.08);
  --border-active: rgba(212, 168, 67, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.heading {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 16px;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.section-desc {
  max-width: 600px;
  margin-bottom: 40px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
}

.accent-text,
.text-accent {
  color: var(--accent);
}

.muted,
.text-muted {
  color: var(--fg-muted);
}

.dim,
.text-dim {
  color: var(--fg-dim);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.container-sm {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 64px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-sm {
  display: grid;
  gap: 8px;
}

.stack-md {
  display: grid;
  gap: 16px;
}

.stack-lg {
  display: grid;
  gap: 24px;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.bg-card {
  background: var(--bg-card);
}

.bg-raised {
  background: var(--bg-raised);
}

.bg-accent-soft {
  background: var(--accent-soft);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.p-card {
  padding: 28px;
}

.p-card-sm {
  padding: 20px;
}

.p-section {
  padding: 100px 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.anim-fade-up {
  animation: fadeUp 0.6s ease both;
}

.anim-fade-in {
  animation: fadeIn 0.4s ease both;
}

.anim-float {
  animation: float 6s ease-in-out infinite;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

html.light ::-webkit-scrollbar-track {
  background: var(--bg-raised);
}

html.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container,
  .container-sm {
    width: min(100%, calc(100% - 32px));
  }
}