/* Coin Quant v2 — Twitter promo landing (same visual system as v1) */

:root {
  --bg: #070b12;
  --bg-elevated: #0e1522;
  --bg-card: #121a28;
  --bg-card-hover: #182233;
  --border: rgba(125, 211, 252, 0.12);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #e8eef7;
  --text-muted: #93a0b4;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-deep: #0ea5e9;
  --green: #34d399;
  --orange: #fbbf24;
  --money: #fbbf24;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 55%, #67e8f9 100%);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Syne", var(--font);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body.nav-open,
body.modal-open { overflow: hidden; }

body.modal-open .fab-tg {
  visibility: hidden;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.text-accent { color: var(--accent-2); }
.text-money {
  background: linear-gradient(135deg, #fbbf24, #fde68a 55%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn--primary {
  background: var(--gradient);
  color: #041018;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
}

.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--block { width: 100%; max-width: 100%; box-sizing: border-box; }
.btn--cta { width: min(100%, 520px); padding: 16px 28px; font-size: 16px; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 8px 0;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(420px, calc(100% - 140px));
}

.brand__partners {
  display: block;
  width: 100%;
  height: 40px;
  max-height: 40px;
  max-width: 100%;
  overflow: visible;
  background: transparent;
}

.brand__partners--sm {
  height: 32px;
  max-height: 32px;
  max-width: 280px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #0a1220;
  border: 1px solid var(--border);
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  font-family: var(--font-display);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: rgba(14, 21, 34, 0.45); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section__head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 10px;
}

.section__head p { color: var(--text-muted); font-size: 16px; }
.section__cta { margin-top: 28px; text-align: center; }

/* Hero */
.hero {
  padding: 48px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.hero__copy { order: 1; }
.hero__visual { order: 2; }

.hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 22px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.offer-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #041018;
  background: var(--orange);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

.offer-card__price {
  font-size: 18px;
  margin-bottom: 6px;
}

.offer-card__price strong {
  font-size: 28px;
  color: var(--money);
  font-family: var(--font-display);
}

.offer-card__quota {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.hero__visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.chart-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  overflow: hidden;
}

.chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.chart-card__head strong { font-size: 18px; }

.chart-svg {
  width: 100%;
  height: 140px;
}

.chart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55));
}

.chart-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chart-card__tags span {
  font-size: 12px;
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.08);
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1628;
}

/* Show full promo art — do not crop headline text inside the JPG */
.media-frame--hero {
  aspect-ratio: auto;
  width: 100%;
}

.media-frame--hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

/* Pain */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}

.pain-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--accent);
}

.pain-card p { color: var(--text-muted); font-size: 15px; }

/* Value */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.value-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.value-card--safe {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.12), rgba(18, 26, 40, 0.9));
}

.value-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.value-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.value-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.value-card strong { color: var(--text); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
}

.step-card__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Reviews */
.reviews-feed {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}

.comment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.comment-card--reply {
  margin-left: 0;
  border-left: 3px solid rgba(56, 189, 248, 0.45);
}

.comment-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #041018;
  background: var(--gradient);
}

.comment-card__head strong {
  display: block;
  font-size: 14px;
}

.comment-card__head time {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

.comment-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Final CTA */
.section--cta {
  padding: 64px 0 80px;
}

.cta-box {
  text-align: center;
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.18), rgba(14, 21, 34, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 12px;
}

.cta-box__lead {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 10px;
}

.cta-box__arrows {
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: 0.15em;
}

.cta-box__hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: #05080e;
}

.footer-bar {
  display: grid;
  gap: 14px;
}

.footer-risk {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 80ch;
}

/* FAB */
.fab-tg {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #041018;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

/* Modal — viewport centered */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: none;
}

.modal-overlay[hidden] { display: none !important; }

.modal {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  max-width: 400px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  max-height: min(calc(100dvh - 32px), calc(100vh - 32px));
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.modal__header h3 {
  font-size: clamp(16px, 4.2vw, 18px);
  min-width: 0;
  flex: 1 1 auto;
}

.modal__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
}

.modal__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.modal__hint { color: var(--text-muted); font-size: 14px; }

.modal__tg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.modal__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0;
  padding: 13px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal__btn--primary {
  background: var(--gradient);
  color: #041018;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.modal__btn--outline {
  border: 1px solid var(--border-strong);
  background: rgba(14, 165, 233, 0.06);
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Narrow screens: copy on top, visuals below */
  .hero__copy { order: 1; }
  .hero__visual { order: 2; }

  .pain-grid,
  .value-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }

  .brand { max-width: min(360px, calc(100% - 130px)); }
  .brand__partners { height: 36px; max-height: 36px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 24px); }
  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: clamp(22px, 6.5vw, 30px); line-height: 1.25; }
  .hero__lead { font-size: 15px; }
  .offer-card { padding: 16px; }
  .offer-card__price { font-size: 16px; }
  .offer-card__price strong { font-size: 24px; }
  .chart-card__tags { gap: 6px; }
  .chart-card__tags span { font-size: 11px; padding: 4px 8px; }
  .fab-tg { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); padding: 12px; }
  .fab-tg span { display: none; }
  .btn--cta { font-size: 14px; padding: 14px 16px; width: 100%; }
  .cta-box { padding: 28px 16px; }
  .nav-actions .btn { padding: 9px 12px; font-size: 13px; flex-shrink: 0; }
  .brand { max-width: min(240px, calc(100% - 118px)); }
  .brand__partners { height: 30px; max-height: 30px; }
  .brand__partners--sm { height: 28px; max-height: 28px; }
  .site-nav__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .nav-actions {
    width: auto;
    justify-content: flex-end;
  }
  .step-card .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 21px; }
  .brand { max-width: min(190px, calc(100% - 108px)); }
  .brand__partners { height: 26px; max-height: 26px; }
  .nav-actions .btn { padding: 8px 10px; font-size: 12px; }
  .modal__btn { font-size: 14px; padding: 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--primary:hover { transform: none; }
  .offer-card__badge { animation: none; }
}
