:root {
  --font-size: 14px;
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --border: oklch(0.269 0 0);
  --input-background: oklch(0.269 0 0);
  --header-background: oklch(0.145 0 0);
  --risk: #8b5cf6;
  --risk-foreground: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.light {
  --background: #ffffff;
  --foreground: #030213;
  --card: #ffffff;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input-background: #f3f3f5;
  --header-background: #ffffff;
  --risk: #7c3aed;
  --risk-foreground: #ffffff;
  --shadow: 0 8px 24px rgba(3, 2, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:hover {
  color: var(--foreground);
}

svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2rem, 1344px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--header-background) 60%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 0.65rem;
}

.brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.brand-subtitle {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.desktop-nav,
.header-actions {
  display: none;
}

.desktop-nav {
  align-items: center;
  gap: 2rem;
}

.desktop-nav a,
.site-footer a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--foreground);
}

.header-actions {
  align-items: center;
  gap: 0.75rem;
}

.site-header .button {
  min-height: 2rem;
  gap: 0.375rem;
  padding: 0 0.75rem;
}

.site-header .button:has(svg) {
  padding-inline: 0.625rem;
}

.site-header .button svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
}

.site-header .icon-button {
  position: relative;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
}

.site-header .icon-button svg {
  width: 1rem;
  height: 1rem;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  width: 1rem;
  height: 1rem;
}

.theme-toggle .sun-icon {
  display: none !important;
}

.theme-toggle .moon-icon {
  display: block !important;
}

.light .theme-toggle .sun-icon {
  display: block !important;
}

.light .theme-toggle .moon-icon {
  display: none !important;
}

.button,
.icon-button,
.menu-button,
.scan-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover,
.menu-button:hover,
.scan-form button:hover {
  transform: translateY(-1px);
}

.button {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.button-large {
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  color: var(--primary-foreground);
  background: color-mix(in oklab, var(--primary) 88%, var(--background));
}

.button-risk {
  position: relative;
  overflow: visible;
  isolation: isolate;

  background: var(--risk);
  color: var(--risk-foreground);
  border-color: color-mix(in oklab, var(--risk) 75%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--risk) 14%, transparent),
    0 12px 32px color-mix(in oklab, var(--risk) 18%, transparent);
}

.button-risk::before,
.button-risk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  width: 3px;
  height: 3px;
  border-radius: 999px;

  pointer-events: none;
  background: rgba(196, 181, 253, 0.6);
  filter: blur(0.2px);

  /* Ð±Ñ‹Ð»Ð¾ -1, Ð¸Ð·-Ð·Ð° ÑÑ‚Ð¾Ð³Ð¾ Ñ‡Ð°ÑÑ‚Ð¸Ñ†Ñ‹ Ð¿Ñ€ÑÑ‚Ð°Ð»Ð¸ÑÑŒ Ð·Ð° ÐºÐ½Ð¾Ð¿ÐºÐ¾Ð¹ */
  z-index: 1;
}

.button-risk::before {
  box-shadow:
    -18px -10px 0 rgba(196, 181, 253, 0.28),
    20px -14px 0 rgba(196, 181, 253, 0.24),
    -24px 12px 0 rgba(196, 181, 253, 0.22),
    28px 10px 0 rgba(196, 181, 253, 0.2),
    4px -24px 0 rgba(196, 181, 253, 0.24);

  animation: risk-particles-a 2.6s ease-out infinite;
}

.button-risk::after {
  box-shadow:
    -32px -4px 0 rgba(168, 85, 247, 0.22),
    34px -2px 0 rgba(168, 85, 247, 0.24),
    -10px 24px 0 rgba(168, 85, 247, 0.18),
    14px 26px 0 rgba(168, 85, 247, 0.2),
    0 -34px 0 rgba(168, 85, 247, 0.18);

  animation: risk-particles-b 3.2s ease-out infinite;
  animation-delay: 0.8s;
}

/* Ð§Ñ‚Ð¾Ð±Ñ‹ Ñ‚ÐµÐºÑÑ‚ Ð¸ svg Ð±Ñ‹Ð»Ð¸ Ð¿Ð¾Ð²ÐµÑ€Ñ… Ñ‡Ð°ÑÑ‚Ð¸Ñ† */
.button-risk svg,
.button-risk span {
  position: relative;
  z-index: 2;
}

@keyframes risk-particles-a {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }

  25% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

@keyframes risk-particles-b {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }

  30% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.3) rotate(18deg);
  }
}

.button-risk:hover {
  color: var(--risk-foreground);
  background: color-mix(in oklab, var(--risk) 88%, #000000);
  border-color: color-mix(in oklab, var(--risk) 90%, var(--border));
}

.button-outline,
.button-ghost,
.icon-button,
.menu-button {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
}

.icon-button,
.menu-button {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
}

.menu-button {
  flex: 0 0 auto;
}

.mobile-menu {
  display: none;
}

body.is-mobile-menu-open {
  overflow: hidden;
}

.mobile-menu.is-open {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--header-background) 92%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem;
}

.mobile-menu-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.mobile-close {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 0;
  padding: 0;
}

.mobile-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 5rem;
  padding-inline: 2.5rem;
}

.mobile-menu-links a {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--card) 85%, var(--muted) 30%);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  background: color-mix(in oklab, var(--card) 95%, var(--muted) 20%);
  color: var(--foreground);
  transform: translateY(-1px);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 5rem;
  padding-inline: 2.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--primary) 5%, transparent),
    transparent 48%,
    color-mix(in oklab, var(--accent) 5%, transparent)
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 980px;
  padding-block: clamp(4rem, 9vw, 8rem) 4.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.eyebrow svg {
  width: 0.9rem;
  height: 0.9rem;
}

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

h1 {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: clamp(2.6rem, 5.8vw, 5.35rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--primary);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tag {
  border-radius: 999px;
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(3, 2, 19, 0.14);
}

.tag-blue {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.tag-red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.tag-green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.hero-copy,
.section-lead {
  color: var(--muted-foreground);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.scan-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  width: min(100%, 560px);
  margin: 0 auto 1.25rem;
}

.scan-form svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  transform: translateY(-50%);
}

.scan-form input {
  min-width: 0;
  min-height: 2.85rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--input-background);
  color: var(--foreground);
  font: inherit;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  outline: none;
}

.scan-form input:focus {
  border-color: color-mix(in oklab, var(--primary) 34%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent);
}

.scan-form button {
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  background: var(--input-background);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.hero-actions .button {
  border-radius: 0.55rem;
  font-weight: 500;
  box-shadow: none;
}

.hero-actions .button-primary {
  background: color-mix(in oklab, var(--primary) 92%, var(--background));
}

.feature-grid,
.check-grid,
.split-section {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 1px 2px rgba(3, 2, 19, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.2rem;
}

.feature-card p,
.content-band p,
.plain-list,
.faq-section p {
  color: var(--muted-foreground);
}

.feature-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.feature-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.content-band {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.content-band-muted {
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 22%, transparent);
}

.split-section {
  grid-template-columns: 1fr;
}

.split-section > div,
.check-grid > div {
  min-width: 0;
}

.content-band p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.content-band a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.section-lead {
  max-width: 880px;
  margin-bottom: 2rem;
}

.check-grid {
  grid-template-columns: 1fr;
}

.check-grid > div {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.25rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.plain-list li + li {
  margin-top: 0.65rem;
}

.faq-section {
  max-width: 880px;
}

.faq-section details {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
}

.faq-section p {
  margin: 0.75rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 4rem 3rem;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 1rem;
  margin-bottom: 1.1rem;
  color: var(--muted-foreground);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground) !important;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 1px 2px rgba(3, 2, 19, 0.04);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.site-footer h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 1.35rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 1rem;
  }

  .scan-form {
    grid-template-columns: 1fr;
  }

  .scan-form svg {
    top: 1.425rem;
    transform: translateY(-50%);
  }

  .split-section,
  .faq-section {
    padding-inline: 0.35rem;
  }

  .content-band p {
    font-size: 1rem;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .desktop-nav,
  .header-actions {
    display: flex;
  }

  .menu-button {
    display: none;
  }

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

  .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}
