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

html {
  scrollbar-color: rgba(165, 92, 255, 0.75) #08040f;
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: #08040f;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #08040f;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(165, 92, 255, 0.85), rgba(219, 64, 179, 0.65));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(185, 120, 255, 0.95), rgba(235, 85, 190, 0.8));
}

::-webkit-scrollbar-corner {
  background: transparent;
}

:root {
  --bg: #000000;
  --bg-soft: #050505;
  --panel: #09090b;
  --surface: #0b0b0f;
  --surface-2: #111016;
  --surface-3: #171321;
  --blue: #8b4bdc;
  --blue-soft: #b78cff;
  --blue-bright: #a970ff;
  --cyan: #d8b4fe;
  --success: #22c55e;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(183, 140, 255, 0.2);
  --border-soft: rgba(148, 163, 184, 0.14);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --glow: 0 0 70px rgba(139, 75, 220, 0.28);
  --card-bg-dark: rgba(8, 10, 18, 0.78);
  --card-bg-dark-strong: rgba(10, 9, 18, 0.84);
  --card-bg-dark-gradient: linear-gradient(145deg, rgba(10, 9, 18, 0.88), rgba(5, 7, 13, 0.82));
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1260px;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Sora", "Manrope", sans-serif;
  --font-display: "DM Serif Display", "Libre Bodoni", "Cormorant Garamond", Georgia, serif;
  /* Visual scale — tuned for comfortable 100% browser zoom */
  --nav-height: 60px;
  --section-y: clamp(32px, 4.2vw, 50px);
  --section-y-tight: clamp(24px, 3.2vw, 40px);
  --heading-section: clamp(1.56rem, 2.85vw, 2.28rem);
  --heading-page: clamp(1.5rem, 3.1vw, 2.58rem);
  --gap-grid: 12px;
  --card-pad: 17px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #070411;
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  background-color: #070411;
  background-image:
    linear-gradient(
      to bottom,
      #070411 0%,
      #10071d 18%,
      #160824 42%,
      #1a0926 68%,
      #1e0a24 100%
    );
  background-attachment: scroll;
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
}

.hero-title,
.hero-title-line {
  font-family: var(--font-display);
}

h1 {
  max-width: 13ch;
  font-size: clamp(1.92rem, 3.65vw, 3.25rem);
}

h1 span:not(.hero-title-line) {
  color: transparent;
  background: linear-gradient(135deg, var(--blue-soft), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

@media (min-width: 1024px) {
  :root {
    --max-width: 1320px;
    --nav-height: 54px;
    --section-y: clamp(22px, 2.7vw, 34px);
    --section-y-tight: clamp(18px, 2.2vw, 28px);
    --heading-section: clamp(1.36rem, 2.3vw, 1.96rem);
    --heading-page: clamp(1.32rem, 2.55vw, 2.16rem);
    --gap-grid: 10px;
    --card-pad: 14px;
  }

  body {
    font-size: 0.9rem;
  }

  h1:not(.hero-title) {
    font-size: clamp(1.72rem, 3vw, 2.7rem);
  }
}

@media (max-width: 1080px) {
  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

button,
a,
input,
textarea,
select,
label,
summary {
  pointer-events: auto;
}
