/* ---------- Fonts (self-hosted, latin + latin-ext for Romanian letters) ---------- */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Anton has no Cyrillic letters: Russian headings use Oswald Bold, a similar condensed face. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/oswald-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
/* Registered so the accent colour can animate smoothly when a flavour changes. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #e0261f;
}

:root {
  --bg: #0a0908;
  --bg-2: #100e0d;
  --surface: #161312;
  --surface-2: #1e1a18;
  --surface-3: #292321;
  --line: rgba(255, 238, 224, 0.1);
  --line-strong: rgba(255, 238, 224, 0.22);
  --text: #f6efe9;
  --muted: #aaa097;
  --red: #e0261f;
  --red-deep: #a81814;
  --ember: #ff6a2b;
  --gold: #f2b66d;
  --ok: #7fd49a;
  --danger: #ff7a6b;

  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --nav-h: 76px;

  --z-base: 1;
  --z-nav: 100;
  --z-menu: 90;
  --z-bar: 80;
  --z-toast: 200;
  --z-pre: 1000;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: calc(var(--z-pre) + 1);
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: top 0.2s var(--ease-out);
}
.skip:focus {
  top: 16px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
section {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
}

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
}
.hot {
  background: linear-gradient(100deg, #ff3b2f 0%, #ff6a2b 45%, #f2b66d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .eyebrow {
    letter-spacing: 0.13em;
    font-size: 0.72rem;
  }
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.h2,
.hero__title {
  text-wrap: balance;
}
.lead,
.panel__sub,
.hero__lead {
  text-wrap: pretty;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lead {
  margin-top: 22px;
}
.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn svg {
  transition: transform 0.35s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:active {
  transform: scale(0.97);
}
.btn--lg {
  min-height: 58px;
  padding: 0 34px;
  font-size: 1.05rem;
}
.btn--sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.92rem;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #f2392f 0%, #c71e18 100%);
  box-shadow: 0 10px 30px -8px rgba(224, 38, 31, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn--primary:hover::before {
  transform: translateX(120%);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -8px rgba(255, 90, 40, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn[disabled]::before,
.btn[aria-disabled="true"]::before {
  display: none;
}

/* Visually hidden but read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* GSAP drives transform and opacity on these buttons, so CSS must not transition them (it makes GSAP read half-way values) */
html.motion .magnetic,
.hero__cta .btn {
  transition-property: box-shadow, background-color, border-color;
}
.nav:focus-within {
  transform: none;
}

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