﻿:root {
  color-scheme: light;

  --color-primary-950: #071a38;
  --color-primary-900: #0b2e63;
  --color-primary-800: #123f80;
  --color-primary-700: #1951a0;
  --color-primary-600: #2466c2;
  --color-primary-500: #3478db;

  --color-accent-700: #c6530b;
  --color-accent-600: #df6815;
  --color-accent-500: #f58220;
  --color-accent-400: #ff9b46;

  --color-background: #f7f9fc;
  --color-background-soft: #eef3fa;
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-surface-solid: #ffffff;
  --color-surface-muted: #edf2f8;

  --color-text: #152238;
  --color-text-soft: #526078;
  --color-text-muted: #76839a;
  --color-border: rgba(21, 34, 56, 0.11);

  --color-success: #168353;
  --color-warning: #d97706;
  --color-danger: #c93d3d;

  --shadow-small:
    0 8px 24px rgba(11, 46, 99, 0.08);

  --shadow-medium:
    0 18px 50px rgba(11, 46, 99, 0.12);

  --shadow-large:
    0 30px 80px rgba(7, 26, 56, 0.17);

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --radius-pill: 999px;

  --container-width: 1180px;
  --header-height: 76px;

  --transition-fast: 160ms ease;
  --transition-normal: 260ms ease;
  --transition-slow: 520ms ease;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --color-background: #08111f;
  --color-background-soft: #0d192b;
  --color-surface: rgba(15, 30, 51, 0.83);
  --color-surface-solid: #101e33;
  --color-surface-muted: #17263d;

  --color-text: #f4f7fb;
  --color-text-soft: #bdc8d8;
  --color-text-muted: #8998ae;
  --color-border: rgba(255, 255, 255, 0.11);

  --shadow-small:
    0 8px 24px rgba(0, 0, 0, 0.22);

  --shadow-medium:
    0 18px 50px rgba(0, 0, 0, 0.28);

  --shadow-large:
    0 30px 80px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(52, 120, 219, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(245, 130, 32, 0.12),
      transparent 30%
    ),
    var(--color-background);

  color: var(--color-text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

p {
  color: var(--color-text-soft);
}

::selection {
  background: rgba(245, 130, 32, 0.28);
  color: var(--color-text);
}

.site-page {
  min-height: 100vh;
}

.container {
  width: min(
    calc(100% - 40px),
    var(--container-width)
  );
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 104px;
}

.section--compact {
  padding-block: 72px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;
  padding: 7px 12px;

  border: 1px solid rgba(245, 130, 32, 0.28);
  border-radius: var(--radius-pill);

  background: rgba(245, 130, 32, 0.09);
  color: var(--color-accent-600);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gradient-text {
  color: transparent;

  background:
    linear-gradient(
      115deg,
      var(--color-primary-600),
      var(--color-accent-500)
    );

  background-clip: text;
  -webkit-background-clip: text;
}

.surface-grid {
  display: grid;
  gap: 22px;
}

.surface-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.surface-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;

  padding: 10px 14px;

  border-radius: var(--radius-small);
  background: var(--color-primary-900);
  color: #ffffff;

  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}
