/* ============================================
   TradeInsider — Landing Page Styles
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color palette */
  --bg-0:        #0a0f14;
  --bg-1:        #0f1620;
  --bg-2:        #131c28;
  --surface:     #182231;
  --surface-2:   #1f2b3d;
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.12);

  --text-1:      #ffffff;
  --text-2:      #c7d2e0;
  --text-3:      #8a97aa;
  --text-4:      #5e6b7e;

  /* Brand */
  --brand:       #2dd4bf;          /* teal */
  --brand-2:     #14b8a6;
  --brand-soft:  rgba(45, 212, 191, 0.12);

  /* Telegram */
  --telegram:    #229ED9;
  --telegram-2:  #2AABEE;
  --telegram-3:  #1a8bbf;

  --accent-blue: #3b82f6;

  /* Effects */
  --glow:        0 0 60px rgba(34, 158, 217, 0.35);
  --shadow-lg:   0 20px 50px -15px rgba(0, 0, 0, 0.6);
  --shadow-btn:  0 10px 30px -8px rgba(34, 158, 217, 0.55);

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --container:   1140px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-1);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0; }

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

.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 15, 20, 0.7);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-1);
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #062421;
}

.logo__mark svg { width: 20px; height: 20px; }

.logo__accent { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34, 158, 217, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 30%, rgba(45, 212, 191, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 28px;
  text-align: center;
}

.badge strong {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.badge__icon { width: 14px; height: 14px; }

.hero__title {
  font-size: clamp(36px, 6.5vw, 64px);
  max-width: 880px;
  margin-bottom: 20px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--telegram-2) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.hero__sub strong {
  color: var(--text-1);
  font-weight: 700;
}

/* ---------- Hero Benefit Bullets ---------- */
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  max-width: 360px;
  text-align: left;
}

.hero__bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.4;
}

.hero__bullet > span {
  flex: 1;
}

.hero__bullet strong {
  color: var(--text-1);
  font-weight: 600;
}

.hero__bullet svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 1px;
}

/* ---------- Social Proof Line ---------- */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
}

.social-proof svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.social-proof strong {
  color: var(--text-1);
  font-weight: 700;
}

.social-proof__detail {
  color: var(--text-3);
}

.trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.trust-row__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row__item svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.trust-row__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-4);
}

/* ---------- CTA Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta--primary {
  background: linear-gradient(180deg, var(--telegram-2) 0%, var(--telegram) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255,255,255,0.25);
}

.cta--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}

.cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(34, 158, 217, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(180deg, #36b9f0 0%, var(--telegram) 100%);
}

.cta--primary:active { transform: translateY(0); }

.cta__icon { width: 22px; height: 22px; flex-shrink: 0; }

.cta--hero { min-width: 280px; }
.cta--final { min-width: 320px; padding: 22px 40px; font-size: 17px; }

/* ---------- Sections (Generic) ---------- */
.section {
  padding: 90px 0;
  position: relative;
}

.section--what    { background: var(--bg-1); border-top: 1px solid var(--border); }
.section--why     { background: var(--bg-0); }
.section--compare { background: var(--bg-1); border-top: 1px solid var(--border); }
.section--how     { background: var(--bg-0); }
.section--faq     { background: var(--bg-1); border-top: 1px solid var(--border); }
.section--cta     { background: var(--bg-0); padding: 100px 0; }

.section__heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
}

.accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--telegram-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__title {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ---------- Why Is It Free ---------- */
.section__title--left {
  text-align: left;
}

.why {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.why__content .eyebrow {
  text-align: left;
}

.why__lead {
  font-size: 18px;
  color: var(--text-2);
  margin: 18px 0 24px;
  font-weight: 500;
}

.why__body p {
  color: var(--text-3);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.why__body p:last-child {
  margin-bottom: 0;
}

.why__body strong {
  color: var(--text-1);
  font-weight: 600;
}

.why__card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: sticky;
  top: 88px;
}

.why__card-title {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-1);
}

.why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

.why__list-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 3px;
}

/* ---------- Comparison Table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.compare__col {
  position: relative;
  padding: 36px 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare__col--best {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.10) 0%, var(--surface) 100%);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 12px 40px -16px rgba(45, 212, 191, 0.25);
}

.compare__col--alt {
  background: linear-gradient(180deg, rgba(255, 100, 100, 0.05) 0%, var(--surface) 100%);
  border-color: rgba(255, 100, 100, 0.18);
}

.compare__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #062421;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
}

.compare__badge--alt {
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border-2);
}

.compare__title {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text-1);
}

.compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.compare__item--yes { color: var(--text-2); }
.compare__item--no  { color: var(--text-4); }

.compare__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.compare__item--yes .compare__icon {
  background: rgba(45, 212, 191, 0.15);
  color: var(--brand);
}

.compare__item--no .compare__icon {
  background: rgba(255, 100, 100, 0.10);
  color: rgba(255, 130, 130, 0.7);
}

.compare__icon svg {
  width: 12px;
  height: 12px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step:hover {
  border-color: var(--border-2);
  transform: translateX(4px);
}

.step__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  min-width: 44px;
}

.step__title {
  font-size: 19px;
  margin-bottom: 6px;
}

.step__text {
  color: var(--text-3);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq__item[open] { border-color: rgba(45, 212, 191, 0.3); }

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-1);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform 0.3s ease, background 0.25s ease;
}

.faq__chev::before,
.faq__chev::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  top: 50%; left: 50%;
  transition: opacity 0.25s ease;
}

.faq__chev::before {
  width: 10px; height: 2px;
  transform: translate(-50%, -50%);
}

.faq__chev::after {
  width: 2px; height: 10px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__chev::after { opacity: 0; }

.faq__a {
  padding: 0 24px 22px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(34, 158, 217, 0.18), transparent 70%), var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--telegram-2), transparent);
}

.final-cta__title {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
}

.final-cta__sub {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 32px;
}

.final-cta__note {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.6;
  max-width: 920px;
  margin: 0 auto 28px;
}

.footer__disclaimer p + p { margin-top: 10px; }

.footer__disclaimer strong { color: var(--text-3); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-4);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .badge         { animation: fadeUp 0.7s ease-out 0.05s backwards; }
.hero__title         { animation: fadeUp 0.7s ease-out 0.18s backwards; }
.hero__sub           { animation: fadeUp 0.7s ease-out 0.30s backwards; }
.hero__bullets       { animation: fadeUp 0.7s ease-out 0.42s backwards; }
.hero .cta--hero     { animation: fadeUp 0.7s ease-out 0.54s backwards; }
.hero .social-proof  { animation: fadeUp 0.7s ease-out 0.62s backwards; }
.hero .trust-row     { animation: fadeUp 0.7s ease-out 0.70s backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
  }
  .why__card {
    position: static;
  }
  .compare {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero            { padding: 40px 0 56px; }
  .section         { padding: 64px 0; }
  .section--cta    { padding: 72px 0; }
  .feature-card    { padding: 28px 24px; }
  .step            { padding: 22px 20px; gap: 18px; }
  .step__num       { font-size: 24px; min-width: 36px; }
  .final-cta       { padding: 48px 24px; }
  .why__card       { padding: 28px 24px; }
  .compare__col    { padding: 32px 24px 24px; }
  .section__title--left { text-align: center; }
  .why__content .eyebrow { text-align: center; }
  .cta--hero, .cta--final {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    font-size: 15px;
  }
  .cta--final      { padding: 20px 24px; font-size: 16px; }
  .footer__bottom  { flex-direction: column; text-align: center; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.cta:focus-visible,
.faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
