/* Quotex Leader — layout, motion, theme (black/grey + #35b972) */

:root {
  --bg-deep: #050506;
  --bg-elevated: #121214;
  --bg-card: #1a1a1e;
  --bg-card-hover: #222228;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: rgba(244, 244, 245, 0.65);
  --accent: #35b972;
  --accent-hover: #2ea866;
  --accent-glow: rgba(53, 185, 114, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --header-h-mobile: 132px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(53, 185, 114, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(180deg, #0a0a0c 0%, #0e0e12 40%, #121215 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  opacity: 0.5;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(1rem, 4vw, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, 4vw, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.container.narrow {
  width: 100%;
  max-width: 720px;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 6, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0);
}

@media (min-width: 901px) {
  .site-header {
    height: var(--header-h);
    min-height: var(--header-h);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.header-inner .nav {
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: clamp(0.9rem, 3.5vw, 1.15rem);
  min-width: 0;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-mark 2.5s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%,
  100% {
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(53, 185, 114, 0.55);
    transform: scale(1.05);
  }
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s var(--ease-out);
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.3s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s;
  box-shadow: 0 4px 24px rgba(53, 185, 114, 0.25);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(53, 185, 114, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(53, 185, 114, 0.5);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(53, 185, 114, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(53, 185, 114, 0.2);
}

.btn-wide {
  min-width: 180px;
}

@keyframes tg-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 4px 24px rgba(53, 185, 114, 0.28);
  }
  50% {
    opacity: 0.78;
    box-shadow:
      0 4px 32px rgba(53, 185, 114, 0.55),
      0 0 0 1px rgba(53, 185, 114, 0.35),
      0 0 28px rgba(53, 185, 114, 0.45);
  }
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.25;
  animation: tg-blink 1.4s ease-in-out infinite;
  will-change: opacity, box-shadow;
}

.btn-tg:hover {
  animation-play-state: paused;
  opacity: 1;
  box-shadow: 0 8px 32px rgba(53, 185, 114, 0.35);
}

.btn-tg .tg-icon {
  flex-shrink: 0;
}

.tg-label-short {
  display: none;
}

.tg-label-full {
  display: inline;
}

@media (max-width: 400px) {
  .tg-label-full {
    display: none;
  }

  .tg-label-short {
    display: inline;
  }
}

/* ——— Hero ——— */

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  animation: fade-slide 0.8s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.glass-card {
  width: min(100%, 340px);
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-card) 0%, #141418 100%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.5s;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(53, 185, 114, 0.25);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(53, 185, 114, 0.08);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  margin-bottom: 1.25rem;
}

.chart-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(53, 185, 114, 0.25) 100%);
  border-radius: 4px 4px 2px 2px;
  animation: bar-dance 2.4s ease-in-out infinite;
}

.chart-bars span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.chart-bars span:nth-child(2) {
  height: 65%;
  animation-delay: 0.15s;
}
.chart-bars span:nth-child(3) {
  height: 50%;
  animation-delay: 0.3s;
}
.chart-bars span:nth-child(4) {
  height: 85%;
  animation-delay: 0.1s;
}
.chart-bars span:nth-child(5) {
  height: 55%;
  animation-delay: 0.25s;
}
.chart-bars span:nth-child(6) {
  height: 70%;
  animation-delay: 0.05s;
}
.chart-bars span:nth-child(7) {
  height: 45%;
  animation-delay: 0.2s;
}

@keyframes bar-dance {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

.glass-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.glass-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ——— Sections ——— */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Features */

.features {
  background: linear-gradient(180deg, transparent, rgba(26, 26, 30, 0.4));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s,
    background 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 185, 114, 0.2);
  background: var(--bg-card-hover);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(53, 185, 114, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out), background 0.35s;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-card:hover .icon-wrap {
  transform: scale(1.06) rotate(-3deg);
  background: rgba(53, 185, 114, 0.18);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Signals */

.signals {
  border-block: 1px solid var(--border);
}

.signals-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.signals-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.signals-copy > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.signals-list {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.signals-list li {
  margin-bottom: 0.5rem;
}

.signals-list li::marker {
  color: var(--accent);
}

.signals-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-elevated), #18181c);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.45s var(--ease-out), border-color 0.35s;
}

.signals-panel:hover {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  border-color: rgba(53, 185, 114, 0.15);
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease-out);
}

.signal-row:last-of-type {
  border-bottom: none;
}

.signal-row:hover {
  padding-left: 6px;
}

.pair {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tf {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: transform 0.25s;
}

.tag-up {
  background: rgba(53, 185, 114, 0.2);
  color: #86e4b4;
}
.tag-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.tag-down {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.signals-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Prediction widget (pure CSS) */

.pred-widget {
  text-align: center;
}

.pred-sr {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.prediction-inner {
  max-width: 640px;
  margin-inline: auto;
}

.prediction-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.prediction-copy p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.prediction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pred-msg {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition:
    opacity 0.45s var(--ease-out),
    max-height 0.45s var(--ease-out),
    margin 0.35s var(--ease-out);
}

#pred-up:checked ~ .pred-msg-up,
#pred-down:checked ~ .pred-msg-down {
  opacity: 1;
  max-height: 120px;
  margin-top: 1.25rem;
}

/* App strip */

.app-strip {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.app-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.app-flex h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.app-flex p {
  margin: 0;
  color: var(--text-muted);
}

.store-badges {
  display: flex;
  gap: 0.75rem;
}

.store-pill {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s var(--ease-out);
}

.store-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(53, 185, 114, 0.35);
  transform: translateY(-2px);
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s;
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 185, 114, 0.2);
}

.quote-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quote-card footer {
  font-size: 0.85rem;
  color: var(--text);
}

/* Steps */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 185, 114, 0.2);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FAQ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  animation: faq-open 0.45s var(--ease-out);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA */

.cta-box {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #151518 0%, #0c0c0e 50%, #12121a 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, rgba(53, 185, 114, 0.12), transparent 45%);
  animation: cta-shimmer 8s ease-in-out infinite;
}

@keyframes cta-shimmer {
  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4%);
  }
}

.cta-box h2,
.cta-box p,
.cta-actions {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-box p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: #080809;
}

.footer-inner {
  max-width: 48ch;
}

.footer-brand {
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* On-load animation */

.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 0.9s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ——— Mobile nav ——— */

@media (max-width: 900px) {
  :root {
    --header-h: var(--header-h-mobile);
  }

  .site-header {
    height: auto;
    min-height: 0;
    align-items: stretch;
    padding-bottom: 0.35rem;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    align-items: center;
  }

  /* Telegram: full-width strip on top (first row) */
  .btn-tg {
    order: -1;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: clamp(0.78rem, 2.8vw, 0.9rem);
    box-sizing: border-box;
    border-radius: var(--radius-sm);
  }

  .btn-tg .tg-icon {
    width: 20px;
    height: 20px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .signals-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 102;
  }

  .header-inner .nav {
    margin-left: 0;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    gap: 0;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.45s var(--ease-out),
      opacity 0.35s,
      visibility 0.35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a:not(.btn) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav .btn {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  .nav-toggle:checked ~ .nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .prediction-actions {
    flex-direction: column;
  }

  .prediction-actions .btn {
    width: 100%;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .signal-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
  }

  .pair {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .signal-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .signal-row .pair {
    white-space: normal;
  }

  .signal-row .tag,
  .signal-row .tf {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn-tg {
    animation: none !important;
    opacity: 1;
    box-shadow: 0 4px 24px rgba(53, 185, 114, 0.25);
  }

  html {
    scroll-behavior: auto;
  }
}
