@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --space-unit: 4px;
  --space-1: calc(var(--space-unit) * 1);
  --space-2: calc(var(--space-unit) * 2);
  --space-3: calc(var(--space-unit) * 3);
  --space-4: calc(var(--space-unit) * 4);
  --space-5: calc(var(--space-unit) * 5);
  --space-6: calc(var(--space-unit) * 6);
  --space-8: calc(var(--space-unit) * 8);
  --space-10: calc(var(--space-unit) * 10);
  --space-12: calc(var(--space-unit) * 12);
  --space-16: calc(var(--space-unit) * 16);
  --space-20: calc(var(--space-unit) * 20);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 10px 30px rgba(63, 6, 35, 0.08);
  --shadow-md: 0 20px 50px rgba(63, 6, 35, 0.12);
  --shadow-lg: 0 30px 80px rgba(63, 6, 35, 0.16);
  --content-width: 1200px;
  --content-wide: 1320px;
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.82rem);
  --text-sm: clamp(0.92rem, 0.88rem + 0.16vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --text-heading: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --text-subheading: clamp(1.9rem, 1.55rem + 1.35vw, 3.2rem);
  --font-family-base: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --line-height-base: 1.7;
  --line-height-heading: 1.08;
  --color-citrine-white: #fdfbea;
  --color-science-blue: #0766c2;
  --color-red-violet: #ea2188;
  --color-rose-bud: #840948;
  --color-melanzane: #3f0623;
  --color-ink: #200413;
  --color-bg: #fffaf2;
  --color-bg-soft: #fff4e7;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-strong: #ffffff;
  --color-text: #2d0719;
  --color-muted: rgba(45, 7, 25, 0.7);
  --color-primary: var(--color-red-violet);
  --color-secondary: var(--color-science-blue);
  --color-accent: var(--color-rose-bud);
  --color-border: rgba(63, 6, 35, 0.12);
  --gradient-brand: linear-gradient(135deg, #3f0623 0%, #840948 48%, #ea2188 100%);
  --gradient-highlight: linear-gradient(135deg, rgba(253, 251, 234, 0.98) 0%, rgba(255, 233, 244, 0.95) 48%, rgba(228, 242, 255, 0.95) 100%);
  --gradient-dark: linear-gradient(135deg, rgba(45, 7, 25, 0.96) 0%, rgba(63, 6, 35, 0.92) 50%, rgba(7, 102, 194, 0.82) 100%);
  --body-bg:
    radial-gradient(circle at top left, rgba(234, 33, 136, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(7, 102, 194, 0.12), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, #fff7ef 54%, #fffaf4 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #19040f;
    --color-bg-soft: #220613;
    --color-surface: rgba(35, 7, 19, 0.84);
    --color-surface-strong: #290817;
    --color-text: #fff7ed;
    --color-muted: rgba(255, 247, 237, 0.72);
    --color-border: rgba(255, 247, 237, 0.14);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
    --body-bg:
      radial-gradient(circle at top left, rgba(234, 33, 136, 0.22), transparent 36%),
      radial-gradient(circle at top right, rgba(7, 102, 194, 0.18), transparent 34%),
      linear-gradient(180deg, #12020a 0%, #19040f 56%, #0f0208 100%);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  font-size: var(--text-base);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: var(--line-height-heading);
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-heading); }
h2 { font-size: var(--text-subheading); }
h3 { font-size: var(--text-xl); }

p { margin: 0; }

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

a {
  color: inherit;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff8ef;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

*:focus-visible {
  outline: 2px solid rgba(234, 33, 136, 0.75);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

.container {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.mt-2 { margin-top: var(--space-2); }
.mb-2 { margin-bottom: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
