
@font-face {
font-family: 'Inter';
src: url('../fonts/InterVariable.woff2') format('woff2-variations'),
url('../fonts/InterVariable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
font-feature-settings: 'cv11','ss01','ss03';
}
@font-face {
font-family: 'JetBrains Mono';
src: url('../fonts/JetBrainsMonoVariable.woff2') format('woff2-variations'),
url('../fonts/JetBrainsMonoVariable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: optional;
}

:root {

--s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
--s-5: 20px; --s-6: 24px;  --s-7: 32px; --s-8: 40px;
--s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;
--s-13: 128px; --s-14: 160px; --s-15: 200px; --s-16: 240px;

--container-w: 1280px;
--gutter-x: clamp(16px, 4vw, 48px);

--fs-xs: 12px;
--fs-sm: 13px;
--fs-base: 16px;
--fs-md: 18px;
--fs-lg: clamp(20px, 1.5vw, 24px);
--fs-xl: clamp(24px, 2vw, 32px);
--fs-2xl: clamp(28px, 3vw, 40px);
--fs-3xl: clamp(32px, 4vw, 56px);
--fs-4xl: clamp(40px, 6vw, 80px);
--fs-display: clamp(56px, 9vw, 128px);

--lh-tight: 1.05;
--lh-snug: 1.2;
--lh-base: 1.55;
--lh-relaxed: 1.7;

--ls-display: -0.04em;
--ls-h: -0.02em;
--ls-ui: 0.02em;
--ls-eyebrow: 0.14em;

--r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;

--c-bg-page: #050510;
--c-bg-elevated: #0a0a1e;
--c-bg-card: rgba(255,255,255,0.025);
--c-bg-card-hover: rgba(255,255,255,0.05);

--c-fg: #f5f5f7;
--c-fg-muted: #a1a1aa;
--c-fg-dim: #6b7280;

--c-border: rgba(255,255,255,0.08);
--c-border-strong: rgba(255,255,255,0.16);

--c-accent: #7c3aed;
--c-accent-2: #a78bfa;
--c-accent-3: #8b5cf6;
--c-accent-soft: rgba(124,58,237,0.10);
--c-accent-glow: rgba(124,58,237,0.4);

--shadow-sm: 0 2px 6px rgba(0,0,0,0.2);
--shadow-md: 0 8px 24px rgba(0,0,0,0.3);
--shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
--shadow-glow: 0 12px 40px var(--c-accent-glow);

--easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);
--easing-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);
--t-fast: 0.15s var(--easing-smooth);
--t-mid: 0.3s var(--easing-smooth);
--t-slow: 0.6s var(--easing-smooth);

--color-bg: var(--c-bg-page);
--color-text: var(--c-fg);
--color-text-secondary: var(--c-fg-muted);
--color-border: var(--c-border);
--accent: var(--c-accent);
--accent-2: var(--c-accent-2);
--color-violet: var(--c-accent-3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
font-feature-settings: 'cv11','ss01','ss03';
font-variation-settings: 'wght' 420;
background: var(--c-bg-page);
color: var(--c-fg);
line-height: var(--lh-base);
font-size: var(--fs-base);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6 {
margin: 0 0 var(--s-4);
font-variation-settings: 'wght' 800;
letter-spacing: var(--ls-h);
line-height: var(--lh-tight);
}
h1 { font-size: var(--fs-4xl); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--s-4); color: var(--c-fg-muted); }

.mono, .num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variation-settings: 'wght' 500; font-feature-settings: 'tnum' 1; }

.container { max-width: var(--container-w); margin: 0 auto; padding-left: var(--gutter-x); padding-right: var(--gutter-x); }

.section-pad { padding: var(--s-12) 0; }
@media (max-width: 768px) { .section-pad { padding: var(--s-10) 0; } }

.section-eyebrow {
display: inline-flex;
align-items: center;
gap: var(--s-2);
color: #9b6ff8;
font-size: var(--fs-sm);
font-variation-settings: 'wght' 700;
text-transform: uppercase;
letter-spacing: var(--ls-eyebrow);
margin-bottom: var(--s-4);
}
.section-title {
font-size: var(--fs-3xl);
font-variation-settings: 'wght' 900;
letter-spacing: var(--ls-h);
line-height: var(--lh-tight);
margin: 0 0 var(--s-4);
}

.gradient-text {
background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--s-2);
padding: 14px 28px;
border-radius: var(--r-pill);
font-family: inherit;
font-size: var(--fs-base);
font-variation-settings: 'wght' 700;
border: none;
cursor: pointer;
text-decoration: none;
white-space: nowrap;
position: relative;
overflow: hidden;
transition: transform var(--t-fast), box-shadow var(--t-mid), background var(--t-fast);
isolation: isolate;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
color: #fff;
box-shadow: 0 4px 14px var(--c-accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
transform: translateX(-100%);
transition: transform 0.7s var(--easing-smooth);
z-index: -1;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-ghost {
background: rgba(255,255,255,0.05);
color: var(--c-fg);
border: 1px solid var(--c-border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: var(--c-accent); }

.tag {
display: inline-flex;
align-items: center;
gap: var(--s-2);
padding: var(--s-1) var(--s-4);
border-radius: var(--r-pill);
border: 1px solid var(--c-accent-soft);
background: var(--c-accent-soft);
font-size: var(--fs-sm);
color: var(--c-accent-2);
font-variation-settings: 'wght' 600;
}
.tag::before {
content: '';
width: 6px; height: 6px;
border-radius: 50%;
background: var(--c-accent);
box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
animation: pulse 2.4s ease-in-out infinite;
}

.card {
background: var(--c-bg-card);
border: 1px solid var(--c-border);
border-radius: var(--r-xl);
padding: var(--s-6);
position: relative;
overflow: hidden;
transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.card::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background: linear-gradient(135deg, transparent 0%, transparent 70%, var(--c-accent-soft) 100%);
opacity: 0;
transition: opacity var(--t-mid);
}
.card:hover {
transform: translateY(-4px);
border-color: var(--c-border-strong);
box-shadow: var(--shadow-md);
}
.card:hover::after { opacity: 1; }

.glow-orb {
position: absolute;
border-radius: 50%;
filter: blur(120px);
opacity: 0.3;
pointer-events: none;
z-index: 0;
background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
}
.glow-orb-2 { background: radial-gradient(circle, var(--c-accent-2) 0%, transparent 70%); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes drift {
0%,100% { transform: translate(0,0) scale(1); }
33% { transform: translate(50px,-30px) scale(1.05); }
66% { transform: translate(-30px,40px) scale(0.95); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-drift { animation: drift 20s ease-in-out infinite; }

[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity 0.6s var(--easing-smooth), transform 0.6s var(--easing-smooth); }

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
[data-reveal] { opacity: 1 !important; transform: none !important; }
}

:focus-visible {
outline: 2px solid var(--c-accent);
outline-offset: 2px;
border-radius: var(--r-sm);
}

::selection { background: var(--c-accent); color: #fff; }

.grid-cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.flex-row { display: flex; align-items: center; gap: var(--s-4); }
.flex-col { display: flex; flex-direction: column; gap: var(--s-4); }

.text-muted { color: var(--c-fg-muted); }
.text-dim { color: var(--c-fg-dim); }
.text-accent { color: var(--c-accent); }
.text-center { text-align: center; }

.fw-700 { font-variation-settings: 'wght' 700; }
.fw-800 { font-variation-settings: 'wght' 800; }
.fw-900 { font-variation-settings: 'wght' 900; }

.fs-sm { font-size: var(--fs-sm); }
.fs-md { font-size: var(--fs-md); }
.fs-lg { font-size: var(--fs-lg); }

.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); } .mt-12 { margin-top: var(--s-12); }
.mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }

/* первая секция под первым экраном показывается сразу */
/* Она попадает в первый экран на телефоне, и ожидание скрипта растягивало
   Speed Index: страница считалась незаконченной, пока блок проявлялся. */
.pp-section [data-reveal],
.pp-section [data-reveal-children] > *,
.sol-section [data-reveal],
.sol-section [data-reveal-children] > *{opacity:1;transform:none}
