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

html {
  scrollbar-color: #e10600 #050505;
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #050505;
  border-radius: 999px;
  background: #e10600;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff1b14;
}

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

:root {
  --color-black: #050505;
  --color-black-soft: #0c0c0c;
  --color-surface-dark: #111111;
  --color-white: #f7f7f5;
  --color-white-pure: #ffffff;
  --color-surface-light: #eeeeeb;
  --color-gray: #999999;
  --color-gray-dark: #555555;
  --color-border-dark: rgba(255, 255, 255, 0.14);
  --color-border-light: rgba(0, 0, 0, 0.14);
  --color-red: #e10600;
  --color-red-hover: #ff1b14;
  --bg: var(--color-black);
  --bg-soft: var(--color-black-soft);
  --panel: var(--color-surface-dark);
  --surface: var(--color-black-soft);
  --surface-2: var(--color-surface-dark);
  --surface-3: #181818;
  --blue: var(--color-red);
  --blue-soft: var(--color-red);
  --blue-bright: var(--color-red-hover);
  --cyan: var(--color-white-pure);
  --success: var(--color-red);
  --text: var(--color-white);
  --text-soft: #c8c8c5;
  --muted: var(--color-gray);
  --border: var(--color-border-dark);
  --border-soft: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --glow: 0 0 70px rgba(255, 255, 255, 0.08);
  --card-bg-dark: rgba(12, 12, 12, 0.82);
  --card-bg-dark-strong: rgba(17, 17, 17, 0.9);
  --card-bg-dark-gradient: linear-gradient(145deg, rgba(17, 17, 17, 0.92), rgba(5, 5, 5, 0.88));
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1260px;
  --font-primary: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: var(--font-primary);
  --font-heading: var(--font-primary);
  --font-display: var(--font-primary);
  /* 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: #050505;
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  background-color: #050505;
  background-image: none;
  background-attachment: scroll;
  font-family: var(--font-primary);
  line-height: 1.6;
}

html,
body,
button,
input,
textarea,
select,
nav,
h1,
h2,
h3,
h4,
h5,
h6,
p,
label {
  font-family: var(--font-primary);
}

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;
}
