/* ==========================================================================
   ROSSA (rossaterminal.com) — D1 Warm Espresso Editorial Design System
   Warm Espresso Charcoal (#131110) · Editorial Cream (#EAE5DC) · Matte Red (#C82323)
   Instrument Serif + Plus Jakarta Sans (Zero Monospace · Zero AI Slop)
   ========================================================================== */

:root {
  --bg: #131110;
  --surface: #1a1715;
  --surface-2: #221e1b;
  --border: rgba(234, 229, 220, 0.1);
  --border-strong: rgba(234, 229, 220, 0.22);
  --text: #eae5dc;
  --text-secondary: #a69e92;
  --text-muted: #787066;
  --accent: #c82323;
  --accent-hover: #a91b1b;
  --accent-soft: #e06666;
  --accent-tint: rgba(200, 35, 35, 0.11);
  --positive: #3ec978;

  --font-logo: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1020px;
  --narrow: 780px;
  --radius: 3px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--narrow);
}

/* ==========================================================================
   Commanding Double-Line ROSSA Wordmark
   ========================================================================== */

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  line-height: 1;
  flex-shrink: 0;
}

.brand-mark__rule {
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.brand-mark__text {
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.25em;
  padding-left: 0.25em;
  color: var(--text);
  line-height: 1.02;
}

.brand-mark--sm .brand-mark__rule {
  height: 1.5px;
}

.brand-mark--sm .brand-mark__text {
  font-size: 20px;
  letter-spacing: 0.23em;
  padding-left: 0.23em;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--border);
}

.lang-btn.is-active {
  color: var(--text);
  background-color: var(--surface-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn--primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #faf7f2;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-secondary);
  background-color: var(--surface);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-nav__list a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__list a:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   Hero + Integrated Swipeable 5-Slide Product Catalog
   ========================================================================== */

.hero {
  padding: clamp(52px, 7.5vw, 92px) 0 clamp(56px, 7vw, 88px);
}

.hero-top {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.6vw, 76px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 520px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Carousel Shell */
.carousel-shell {
  max-width: 880px;
  margin: 0 auto;
}

.carousel-stage-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
}

.slide-media {
  position: relative;
  background-color: #0e0d0c;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3.5vw, 36px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.slide-media--flush {
  padding: 14px;
}

.slide-media--flush img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.slide-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background-color: #0e0d0c;
  border-radius: 10px;
  border: 1px solid rgba(234, 229, 220, 0.1);
  display: none;
}

.slide-media.has-video .slide-video {
  display: block;
}

.slide-media.has-video .slide-fallback {
  display: none;
}

.slide-copy {
  padding: 22px 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.slide-copy__main {
  max-width: 660px;
}

.slide-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.slide-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.slide-badge {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Carousel Controls (Vertically Centered Side Arrows + Centered Dot Bar) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: rgba(19, 17, 16, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.carousel-arrow:hover {
  border-color: var(--text-secondary);
  background-color: var(--surface-2);
}

.carousel-arrow--prev {
  left: -58px;
}

.carousel-arrow--next {
  right: -58px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.dot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12.5px;
  transition: color 0.15s ease;
}

.dot-btn:hover {
  color: var(--text-secondary);
}

.dot-pip {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(234, 229, 220, 0.22);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.dot-btn.is-active {
  color: var(--text);
}

.dot-btn.is-active .dot-pip {
  width: 26px;
  background-color: var(--accent);
}

.carousel-hint {
  text-align: center;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Authentic Telegram Bot Preview Components (Matches real ROSSA bot output)
   ========================================================================== */

.tg-win {
  width: 100%;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.tg-out {
  align-self: flex-end;
  background-color: #2b5278;
  color: #f3f7fb;
  border-radius: 12px 12px 3px 12px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.tg-in {
  background-color: #182533;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 3px;
  padding: 13px 15px;
  color: #e6eef7;
  font-size: 12.5px;
  line-height: 1.56;
  text-align: left;
}

.tg-in__title {
  font-weight: 600;
  color: #ffffff;
  font-size: 12.5px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.tg-in__hr {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 7px 0;
}

.tg-in__line {
  margin: 2px 0;
  color: #d6e2ee;
}

.tg-in__line strong {
  color: #ffffff;
  font-weight: 600;
}

.tg-in__code {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.07);
  color: #f3f7fb;
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 500;
}

.tg-in__pos {
  color: #4ade80;
  font-weight: 600;
}

.tg-in__neg {
  color: #f87171;
  font-weight: 600;
}

.tg-in__muted {
  color: #8fa3b8;
  font-size: 11.5px;
  margin-top: 5px;
}

.tg-kb {
  display: grid;
  gap: 5px;
}

.tg-kb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.tg-kb-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-kb-btn {
  background-color: rgba(36, 52, 68, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: #e6eef7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Equity Report Visual inside Slide 5 */
.equity-mock {
  width: 100%;
  max-width: 680px;
}

.equity-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.equity-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.equity-pnl {
  font-size: 26px;
  font-weight: 600;
  color: var(--positive);
  font-variant-numeric: tabular-nums;
}

.equity-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.equity-kpi {
  padding: 12px 10px 12px 0;
}

.equity-kpi__k {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.equity-kpi__v {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.equity-kpi__v--neg {
  color: var(--accent-soft);
}

.equity-svg {
  width: 100%;
  height: auto;
}

.equity-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Exchange Connectivity Strip (Binance · Bybit · Kraken — Larger Editorial)
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(28px, 4vw, 40px) 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px clamp(42px, 8vw, 96px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.86;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.trust-item:hover {
  color: var(--text);
  opacity: 1;
}

.exchange-logo {
  display: block;
  width: auto;
}

.exchange-logo--binance {
  height: clamp(28px, 3.2vw, 35px);
}

.exchange-logo--bybit {
  height: clamp(22px, 2.5vw, 27px);
  transform: translateY(-2px);
}

.exchange-logo--kraken {
  height: clamp(20px, 2.3vw, 25px);
  transform: translateY(1px);
}

.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;
}

/* ==========================================================================
   Calm Editorial Sections (Zero Box Clutter)
   ========================================================================== */

.section {
  padding: clamp(64px, 8.5vw, 104px) 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}

.section-sub {
  margin: 0 0 clamp(32px, 4vw, 44px);
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* Security Horizontal Editorial Rows */
.row-list {
  border-top: 1px solid var(--border);
}

.row-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.row-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.row-item__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Closed Beta Access Block (E1 — Clean Editorial Block) */
.beta-block {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
}

.beta-block__text {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 640px;
}

.beta-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.beta-block__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-soft);
}

.faq-answer {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 52px 0 42px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 380px;
}

.footer-risk {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Legal Pages (/terms, /privacy, /refund)
   ========================================================================== */

.legal-main {
  padding: clamp(48px, 7vw, 84px) 0 clamp(64px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}

.legal-shell {
  max-width: 720px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal-back:hover {
  color: var(--text);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 10px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.legal-body h2 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  margin: 34px 0 12px;
  letter-spacing: -0.005em;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.76;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 500;
}

.legal-body a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}

.legal-callout {
  margin: 24px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background-color: var(--surface);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive (Telegram Mobile WebView First)
   ========================================================================== */

@media (max-width: 1040px) {
  .carousel-arrow {
    top: auto;
    bottom: -52px;
    transform: none;
    width: 36px;
    height: 36px;
  }

  .carousel-arrow--prev {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }

  .carousel-nav {
    padding: 0 46px;
  }

  .carousel-hint {
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .brand-mark__text {
    font-size: 22px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .slide-media {
    min-height: 310px;
  }

  .slide-media--flush img {
    height: auto;
    max-height: 320px;
  }

  .slide-video {
    height: auto;
    max-height: 400px;
  }

  .equity-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .slide-media {
    min-height: 290px;
    padding: 16px 14px;
  }

  .slide-media--flush img {
    height: auto;
    max-height: 260px;
  }

  .slide-video {
    height: auto;
    max-height: 360px;
  }

  .slide-copy {
    padding: 18px 18px 20px;
  }

  .dot-label {
    display: none;
  }

  .tg-kb-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta-block__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .beta-block__actions .btn {
    width: 100%;
  }
}
