@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@600;700&family=Outfit:wght@400;500;700;900&display=swap");

/* === VARIABLES & THEMES === */
:root {
  color-scheme: light;
  /* Light Theme */
  --bg: #ffffff;
  --text-main: #171717;
  --text-muted: #5b5f52;
  --accent: #b7f70a;
  --accent-contrast: #0d1204;
  --accent-glow: rgba(183, 247, 10, 0.22);
  --hard-shadow: rgba(23, 23, 23, 0.82);
  --grid-line: rgba(23, 23, 23, 0.085);
  --text-grad: linear-gradient(135deg, #111111 0%, #111111 62%, #b7f70a 100%);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: 1px solid rgba(23, 23, 23, 0.12);
  --glass-shadow: 0 16px 30px rgba(17, 24, 10, 0.08);
  --glass-blur: 10px;
  --hover-bg: rgba(183, 247, 10, 0.08);
  /* Legacy shape vars kept for structure compatibility */
  --shape-1: transparent;
  --shape-2: transparent;
  --shape-3: transparent;
  --shape-op: 0;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Dark Theme */
  --bg: #000000;
  --text-main: #f3f4f6;
  --text-muted: #a3ad93;
  --accent: #ccff00;
  --accent-contrast: #090d02;
  --accent-glow: rgba(204, 255, 0, 0.26);
  --hard-shadow: rgba(204, 255, 0, 0.34);
  --grid-line: rgba(204, 255, 0, 0.118);
  --text-grad: linear-gradient(135deg, #ffffff 0%, #f7fee7 34%, #ccff00 100%);
  --glass-bg: rgba(7, 7, 7, 0.86);
  --glass-border: 1px solid rgba(204, 255, 0, 0.18);
  --glass-shadow: 0 18px 36px rgba(0, 0, 0, 0.56);
  --glass-blur: 8px;
  --hover-bg: rgba(204, 255, 0, 0.08);
  /* Legacy shape vars kept for structure compatibility */
  --shape-1: transparent;
  --shape-2: transparent;
  --shape-3: transparent;
  --shape-op: 0;
}

/* === GLOBAL RESET === */
html {
  width: 100%;
  /* ВАЖНО: height: auto, чтобы html растягивался на всю длину контента */
  height: auto;
  min-height: 100%;
  /* Разрешаем стандартный скролл */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* Тоже разрешаем расти */
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    "Outfit", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  transition: background 0.6s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

/* FIX WORD BREAKING GLOBALLY */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
div {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === TYPOGRAPHY === */
.logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 0 0 30px 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Keep hero title words intact; explicit <br> controls line breaks. */
.hero h1,
.hero h1 .gradient-text,
.hero h1 .hero-line-accent {
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

/* Cyrillic uppercase needs slightly looser tracking to avoid Й accent drift. */
html[lang^="ru"] .hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.04;
}

html[lang^="ru"] .hero h1 .hero-line-accent {
  letter-spacing: -0.01em;
}

h1 .gradient-text {
  filter: drop-shadow(0 0 15px rgba(191, 255, 0, 0.28));
}

.hero .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  background-clip: border-box;
  color: var(--text-main);
  filter: none;
}

.hero-line-accent {
  display: block;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.72);
  text-shadow: 0 0 18px rgba(183, 247, 10, 0.18);
}

[data-theme="dark"] .hero-line-accent {
  -webkit-text-stroke: 1px rgba(5, 5, 5, 0.92);
  text-shadow:
    0 0 22px rgba(204, 255, 0, 0.34),
    0 0 1px rgba(5, 5, 5, 0.42);
}

.gradient-sh {
  filter: drop-shadow(0 0 35px rgba(191, 255, 0, 0.42));
}

.logo,
.hero-overline,
.step-number,
.card-symbol,
.card-symbol-404 {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}

/* === COMPONENTS: GLASS & CARDS === */
.glass-container {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.glass-box {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  /* FIX: Явно разрешаем прокрутку по элементу */
  touch-action: pan-y;
}

.glass-box:hover {
  transform: translate(-2px, -2px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 0 24px var(--accent-glow);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* === HEADER & FOOTER === */
.row-layout {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-layout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: none;
  border-left: none;
  border-right: none;
}

.footer-layout {
  margin-top: auto;
  border-bottom: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}

.controls {
  display: flex;
  gap: 10px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  font-size: 0.9rem;
}

.icon-mode {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 4px 0 0 0 var(--bg);
  transform: translateX(-2px);
  transition: box-shadow 0.3s;
}

[data-theme="light"] .icon-mode {
  box-shadow: 0 0 0 0 transparent;
}

.footer-layout .row-layout {
  height: auto;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 5px;
  display: block;
  text-align: center;
}

.footer-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.made-in {
  margin-top: 2px;
}

.footer-trust {
  padding: 0 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.84;
}

.footer-trust p {
  margin: 2px 0;
}

.footer-trust a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 20px;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  opacity: 1;
}

/* === HERO SECTION === */
.page-content {
  padding-top: 100px;
  padding-bottom: 60px;
  flex: 1 0 auto;
  /* Ensure content pushes footer down */
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  padding-top: 140px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 450px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-overline {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-content {
  flex: 1 1 540px;
  min-width: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 16px 36px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--hard-shadow);
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-primary:hover {
  background: #111111;
  border-color: #111111;
  color: var(--accent);
  transform: translate(4px, 4px);
  box-shadow: none;
}

[data-theme="dark"] .btn-primary:hover {
  background: transparent;
  border-color: var(--accent);
}

/* === VISUAL FX === */
.background-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
  isolation: isolate;
}

.background-fx::before,
.background-fx::after,
.noise-overlay {
  position: absolute;
  inset: 0;
}

.background-fx::before {
  content: "";
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center center;
}

.background-fx::after {
  content: "";
  z-index: 1;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: 0.55;
}

[data-theme="dark"] .background-fx::after {
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.062) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.062) 1px, transparent 1px);
  opacity: 0.88;
}

.noise-overlay {
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .noise-overlay {
  opacity: 0.09;
  mix-blend-mode: screen;
}

.prism-light,
.shape-1,
.shape-2,
.shape-3 {
  display: none;
}

.card-glass {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 23, 23, 0.78);
  box-shadow: 10px 10px 0 rgba(23, 23, 23, 0.12);
  border-radius: 16px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .card-glass {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(204, 255, 0, 0.36);
  box-shadow:
    0 0 0 1px rgba(204, 255, 0, 0.12),
    0 0 30px rgba(204, 255, 0, 0.14);
}

.floating-card {
  width: min(360px, 100%);
  min-width: 320px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 24px;
  position: relative;
  flex-shrink: 0;
  animation: cardPulse 6.2s steps(1, end) infinite;
}

.card-content {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  padding: 30px 24px 36px;
  box-sizing: border-box;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 14px;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 23, 0.02), rgba(255, 255, 255, 0));
  background-size: 18px 18px, 18px 18px, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .card-content {
  border: 1px solid rgba(204, 255, 0, 0.16);
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.065) 1px, transparent 1px),
    linear-gradient(180deg, rgba(204, 255, 0, 0.08), rgba(204, 255, 0, 0.015));
}

.card-content::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 12px;
  pointer-events: none;
}

[data-theme="dark"] .card-content::before {
  border-color: rgba(204, 255, 0, 0.12);
}

.core-marker {
  position: absolute;
  z-index: 2;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(23, 23, 23, 0.44);
  line-height: 1;
}

[data-theme="dark"] .core-marker {
  color: rgba(204, 255, 0, 0.58);
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.18);
}

.core-marker-tl {
  top: 14px;
  left: 14px;
}

.core-marker-tr {
  top: 14px;
  right: 14px;
}

.core-marker-bl {
  bottom: 14px;
  left: 14px;
}

.core-marker-br {
  bottom: 14px;
  right: 14px;
}

.core-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 18px;
  padding: 10px 0 8px;
}

.card-symbol-shell {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 23, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(23, 23, 23, 0.04);
  animation: corePulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.card-symbol-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 12px;
}

.card-symbol-shell::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(23, 23, 23, 0.14);
  border-radius: 20px;
  opacity: 0.5;
}

[data-theme="dark"] .card-symbol-shell {
  border-color: rgba(204, 255, 0, 0.48);
  background: rgba(8, 8, 8, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(204, 255, 0, 0.08),
    0 0 24px rgba(204, 255, 0, 0.18);
}

[data-theme="dark"] .card-symbol-shell::before {
  border-color: rgba(204, 255, 0, 0.2);
}

[data-theme="dark"] .card-symbol-shell::after {
  border-color: rgba(204, 255, 0, 0.18);
}

.card-symbol {
  font-size: 3.2rem;
  color: var(--accent);
  opacity: 0.95;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 14px rgba(204, 255, 0, 0.24);
  animation: coreGlyphPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.core-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .core-status {
  border-color: rgba(204, 255, 0, 0.18);
  background: rgba(7, 7, 7, 0.82);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.06);
}

.core-status-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.core-status-cursor {
  color: var(--accent);
  animation: cursorBlink 1s steps(1, end) infinite;
}

.card-shimmer {
  position: absolute;
  top: -6%;
  left: 14px;
  right: 14px;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(204, 255, 0, 0.08) 18%,
      var(--accent) 50%,
      rgba(204, 255, 0, 0.12) 82%,
      transparent 100%);
  animation: scanline 3.4s linear infinite;
  opacity: 0.95;
  mix-blend-mode: screen;
}

/* === FEATURES GRID === */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

#features {
  max-width: 1040px;
  margin: 0 auto 60px;
}

.info-card {
  position: relative;
}

.feature-icon {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    4px 4px 0 rgba(23, 23, 23, 0.1),
    0 0 18px rgba(183, 247, 10, 0.1);
  color: #171717;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 10px;
}

.feature-icon svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(183, 247, 10, 0.14));
}

.feature-icon-offline,
.feature-icon-private,
.feature-icon-speed {
  color: #171717;
}

[data-theme="dark"] .feature-icon {
  border-color: rgba(204, 255, 0, 0.22);
  background: rgba(8, 8, 8, 0.76);
  box-shadow:
    0 0 0 1px rgba(204, 255, 0, 0.06),
    0 0 20px rgba(204, 255, 0, 0.08);
  color: var(--accent);
}

[data-theme="dark"] .feature-icon::before {
  border-color: rgba(204, 255, 0, 0.12);
}

.info-card h2,
.info-card h3 {
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 1.4rem;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.info-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.info-card::before,
.info-card:nth-child(1)::before,
.info-card:nth-child(2)::before,
.info-card:nth-child(3)::before,
.info-card:hover::before {
  display: none;
}

/* === FAQ SECTION === */
.faq-header {
  text-align: center;
  margin-top: 125px;
  margin-bottom: 45px;
  width: 100%;
}

.faq-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  position: relative;
  border-radius: 14px;
  background: var(--glass-bg);
  border: var(--glass-border);
  overflow: hidden;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  /* FIX: Touch Action */
  touch-action: pan-y;
}

.faq-card:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 0 22px var(--accent-glow);
}

.faq-card.active {
  border-color: var(--accent);
  background: var(--hover-bg);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 0 26px var(--accent-glow);
}

.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  padding: 18px 24px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-head h3 {
  margin: 0;
  font-size: inherit;
  line-height: 1.4;
}

.faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: height;
}

.faq-inner {
  padding: 0 24px 24px 24px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.faq-card.active .faq-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.faq-list {
  margin: 10px 0 10px 20px;
  padding: 0;
  color: var(--text-muted);
}

.faq-list li {
  margin-bottom: 5px;
}

.icon-plus {
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-plus::before {
  width: 100%;
  height: 2px;
}

.icon-plus::after {
  width: 2px;
  height: 100%;
}

.faq-card.active .icon-plus {
  transform: rotate(45deg);
}

/* === REVIEWS & STEPS === */
.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 24px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.5;
  margin-bottom: 10px;
  line-height: 1;
}

/* === STORE BUTTONS === */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 230px;
  background: var(--text-main);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s,
    box-shadow 0.2s;
  border: 1px solid transparent;
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
}

.store-btn[hidden],
#rustore-market[hidden] {
  display: none !important;
}


.store-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.store-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  flex-shrink: 0;
}

.apple-btn .store-icon {
  width: 38px;
  height: 38px;
  margin-right: 11px;
  margin-bottom: 3px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.small-txt {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  font-weight: 500;
}

.big-txt {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.google-btn,
.rustore-btn {
  background: var(--text-main);
  color: var(--bg);
}

.rustore-btn .big-txt {
  letter-spacing: 0;
}

.web-btn {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid rgba(183, 247, 10, 0.42);
  box-shadow: 4px 4px 0 var(--hard-shadow);
}

.web-btn:hover {
  transform: translate(4px, 4px);
  opacity: 1;
  box-shadow: none;
  background: var(--accent);
  color: var(--accent-contrast);
}

.store-toast {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: max-content;
  max-width: min(92vw, 360px);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(183, 247, 10, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  box-shadow:
    0 12px 30px rgba(23, 23, 23, 0.12),
    0 0 0 1px rgba(183, 247, 10, 0.08);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 5;
}

[data-theme="dark"] .store-toast {
  background: rgba(7, 7, 7, 0.92);
  color: var(--accent);
  border-color: rgba(204, 255, 0, 0.32);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(204, 255, 0, 0.12);
}

.store-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .lang-menu {
  left: 0;
  right: auto;
  text-align: right;
}

html[dir="rtl"] .review-author,
html[dir="rtl"] .policy-content,
html[dir="rtl"] .summary-box,
html[dir="rtl"] .legal-hero,
html[dir="rtl"] .faq-card,
html[dir="rtl"] .feature-card {
  text-align: right;
}

/* === LANGUAGE DROPDOWN (DESKTOP) === */
.lang-dropdown {
  position: relative;
  z-index: 10001 !important;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid rgba(204, 255, 0, 0.16);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.lang-arrow {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  z-index: 10002 !important;
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(204, 255, 0, 0.14);
  border-radius: 10px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
  max-height: 60vh;
  overflow-y: auto;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-item:hover {
  background: rgba(191, 255, 0, 0.15);
}

.item-flag {
  font-size: 1.2rem;
}

.item-label {
  font-weight: 500;
}

/* Desktop Light Mode Override */
html[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 23, 23, 0.12);
}

html[data-theme="light"] .lang-item {
  color: #000;
}

html[data-theme="light"] .lang-item:hover {
  background: rgba(132, 204, 22, 0.12);
}

html[data-theme="light"] .lang-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 23, 23, 0.12);
  color: #000;
}

/* === MOBILE LANGUAGE PORTAL (JS INJECTED) === */
.mobile-lang-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.mobile-lang-overlay.visible {
  opacity: 1;
}

.mobile-lang-sheet {
  width: 100%;
  max-height: 80vh;
  background: #090909;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(204, 255, 0, 0.16);
  box-shadow: 0 -18px 32px rgba(0, 0, 0, 0.56);
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  padding: 20px 0 40px 0;
}

.mobile-lang-overlay.visible .mobile-lang-sheet {
  transform: translateY(0);
}

.mobile-lang-item {
  padding: 16px 24px;
  font-size: 1.1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.mobile-lang-flag {
  font-size: 1.5rem;
}

html[data-theme="light"] .mobile-lang-sheet {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .mobile-lang-item {
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.no-scroll {
  overflow: hidden;
}

/* === ANIMATIONS === */
@keyframes cardPulse {

  0%,
  91%,
  100% {
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 0 0 rgba(204, 255, 0, 0));
  }

  92% {
    transform: translate3d(-2px, 0, 0);
  }

  93% {
    transform: translate3d(2px, 0, 0);
  }

  94% {
    transform: translate3d(-1px, 1px, 0);
  }

  95% {
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 0 16px rgba(204, 255, 0, 0.24));
  }
}

@keyframes corePulse {

  0%,
  68%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.35),
      0 0 0 1px rgba(23, 23, 23, 0.04);
  }

  14% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.42),
      0 0 0 1px rgba(23, 23, 23, 0.04),
      0 0 28px rgba(183, 247, 10, 0.24);
  }

  30% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.35),
      0 0 0 1px rgba(23, 23, 23, 0.04),
      0 0 12px rgba(183, 247, 10, 0.12);
  }
}

[data-theme="dark"] .card-symbol-shell {
  animation-name: corePulseDark;
}

@keyframes corePulseDark {

  0%,
  68%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(204, 255, 0, 0.08),
      0 0 24px rgba(204, 255, 0, 0.18);
  }

  14% {
    box-shadow:
      inset 0 0 0 1px rgba(204, 255, 0, 0.16),
      0 0 32px rgba(204, 255, 0, 0.42),
      0 0 52px rgba(204, 255, 0, 0.18);
  }

  30% {
    box-shadow:
      inset 0 0 0 1px rgba(204, 255, 0, 0.1),
      0 0 18px rgba(204, 255, 0, 0.22);
  }
}

@keyframes coreGlyphPulse {

  0%,
  68%,
  100% {
    transform: scale(1);
    opacity: 0.92;
    text-shadow: 0 0 14px rgba(204, 255, 0, 0.24);
  }

  14% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 26px rgba(204, 255, 0, 0.42);
  }

  30% {
    transform: scale(1.01);
  }
}

@keyframes cursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes scanline {

  0% {
    top: -6%;
    opacity: 0;
  }

  12% {
    opacity: 0.95;
  }

  58% {
    opacity: 0.62;
  }

  100% {
    top: 106%;
    opacity: 0;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

/* === MEDIA QUERIES (RESPONSIVE) === */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(48px, 8vw, 96px);
    padding-top: 60px;
  }

  .hero-visual {
    justify-content: flex-end;
    min-width: 320px;
  }

  .floating-card {
    margin-bottom: 0;
  }

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

@media (max-width: 767px) {

  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    position: static !important;
    touch-action: auto !important;
  }

  .container {
    padding: 0 20px;
    width: 100%;
    overflow: visible !important;
    height: auto !important;
  }

  .header-layout .row-layout {
    height: auto !important;
    padding: 8px 16px !important;
  }

  .grid-section,
  #start .grid-section,
  #reviews-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: min-content !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .grid-section>article,
  .grid-section>div,
  .review-card,
  .info-card,
  .glass-box {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    flex: none !important;
    margin-bottom: 24px !important;
    touch-action: pan-y !important;
  }

  .footer-layout {
    position: relative !important;
    height: auto !important;
    margin-top: auto !important;
    padding-top: 40px !important;
    padding-bottom: 120px !important;
    display: block !important;
    flex-shrink: 0 !important;
    z-index: 10;
  }

  .footer-layout .row-layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    text-align: center !important;
    order: 1;
  }

  .store-buttons {
    padding-bottom: 56px;
  }

  .store-toast {
    min-width: 0;
    width: calc(100% - 8px);
  }

  .floating-card {
    width: min(100%, 320px);
    min-width: 0;
    max-width: 320px;
    margin: 0 auto 32px;
  }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: auto;
  max-width: 90%;
  min-width: 280px;
  padding: 10px 16px;
  border-radius: 50px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner.privacy-notice {
  width: min(720px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  min-width: 280px;
  padding: 12px 16px;
  border-radius: 24px;
}

.cookie-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin: 0;
}

.privacy-notice .cookie-text {
  line-height: 1.35;
  text-align: left;
}

[dir="rtl"] .privacy-notice .cookie-text {
  text-align: right;
}

.cookie-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.8;
}

@media (max-width: 400px) {
  .cookie-banner.privacy-notice {
    align-items: stretch;
    border-radius: 18px;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-text {
    text-align: center;
  }

  .privacy-notice .cookie-btn {
    align-self: center;
  }
}
