/* ============================================================================
   NOTAMEN · LANDING · LIQUID DARK
   Tokens borrowed from themes/liquid-dark.css of the Ember Design stand.
   ============================================================================ */

:root {
  --bg-app:         #0E0F13;
  --bg-raised:      rgba(255, 255, 255, 0.045);
  --bg-hover:       rgba(255, 255, 255, 0.06);

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-base:    rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.16);

  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary:  rgba(255, 255, 255, 0.52);
  --text-muted:     rgba(255, 255, 255, 0.32);

  --rb-300: #B0AFF5;
  --rb-500: #5E5CE6;
  --rb-glow: rgba(94, 92, 230, 0.45);

  --ew-500: #F59E0B;

  --accent-grad-1:    #5E5CE6;
  --accent-grad-2:    #FF375F;
  --accent-grad:      linear-gradient(135deg, var(--accent-grad-1) 0%, var(--accent-grad-2) 100%);
  --accent-grad-soft: linear-gradient(135deg, #8786EF 0%, #FF6B8A 60%, #FFB075 100%);
  --accent-grad-glow: rgba(94, 92, 230, 0.45);

  --shadow-card:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  --font-sans:  'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:  'Geist Mono', 'SF Mono', Menlo, monospace;
  --font-serif: 'Fraunces', Georgia, serif;

  --glass-blur: 24px;

  --container-w: 1120px;
  --header-h:    72px;
}

/* ---------- Reset / base ---------- */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: rgba(94, 92, 230, 0.35); color: var(--text-primary); }

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Background blobs ---------- */

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.blob-1 {
  width: 70vmax; height: 70vmax;
  top: -25vmax; left: -20vmax;
  background: radial-gradient(circle at 30% 30%, var(--accent-grad-1), transparent 60%);
  opacity: 0.45;
}
.blob-2 {
  width: 70vmax; height: 70vmax;
  bottom: -30vmax; right: -25vmax;
  background: radial-gradient(circle at 70% 70%, var(--accent-grad-2), transparent 60%);
  opacity: 0.40;
}
.blob-3 {
  width: 50vmax; height: 50vmax;
  top: 30%; left: 40%;
  background: radial-gradient(circle at 50% 50%, #7C4DFF, transparent 65%);
  opacity: 0.28;
}

/* ---------- Site header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(14, 15, 19, 0.55);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 16px var(--accent-grad-glow);
  flex-shrink: 0;
}

/* ---------- Language switcher ---------- */

.lang {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
}
.lang__btn {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background 0.18s ease;
}
.lang__btn:hover { color: var(--text-primary); }
.lang__btn.is-active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-grad-glow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 12vw, 160px) 0 clamp(40px, 7vw, 80px);
}
.hero__inner {
  max-width: 900px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  margin-bottom: 36px;
  border: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ew-500);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* Brand mark: огромный градиент, главный визуальный фокус */
.hero__brand {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(72px, 14vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero__brand-text {
  background: var(--accent-grad-soft);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 48px rgba(94, 92, 230, 0.35))
          drop-shadow(0 4px 24px rgba(255, 55, 95, 0.25));
}

.hero__tagline {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hero__tagline em {
  font-style: italic;
  color: var(--text-secondary);
}

.hero__lede {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: 640px;
}

/* ---------- Features ---------- */

.features {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 7vw, 80px) 0 clamp(72px, 11vw, 140px);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 30% 20%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: screen;
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

.feature {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}
.feature__kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
}
.feature__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.feature__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 15, 19, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.site-footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__lede {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-secondary);
}
.site-footer__meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer__sep { color: var(--text-muted); }
.site-footer__link {
  color: var(--text-tertiary);
  transition: color 0.18s ease;
}
.site-footer__link:hover { color: var(--rb-300); }

/* ---------- Error page (404 etc.) ---------- */

.error {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) 0;
}
.error__inner {
  text-align: center;
  max-width: 640px;
}
.error__code {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(96px, 22vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error__code-text {
  background: var(--accent-grad-soft);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 48px rgba(94, 92, 230, 0.35))
          drop-shadow(0 4px 24px rgba(255, 55, 95, 0.25));
}
.error__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.error__subtitle {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-tertiary);
}
.error__body {
  margin: 0 0 36px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-tertiary);
}
.error__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.error__home:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; }
  .brand { font-size: 17px; }
  .hero { padding-top: clamp(56px, 18vw, 96px); }
  .hero__brand { font-size: clamp(64px, 22vw, 120px); }
}

@media (prefers-reduced-motion: reduce) {
  .pill__dot { animation: none; }
  .feature { transition: none; }
}
