/* ══════════════════════════════════════════════════════
   THEO TRADE — style.css
   Palette:
   --ink       #0A0A0F
   --ink-2     #111118
   --ink-3     #171722
   --border    #1E1E2E
   --blue      #1A56FF
   --blue-glow rgba(26,86,255,0.15)
   --text      #FFFFFF
   --text-2    #9AAABF
   --text-3    #4E5A70
   --up        #22C55E
   --down      #EF4444
   ══════════════════════════════════════════════════════ */

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

:root {
  --ink:       #0A0A0F;
  --ink-2:     #111118;
  --ink-3:     #171722;
  --border:    #1E1E2E;
  --blue:      #1A56FF;
  --blue-dim:  #0B1640;
  --blue-glow: rgba(26,86,255,0.15);
  --text:      #FFFFFF;
  --text-2:    #9AAABF;
  --text-3:    #4E5A70;
  --up:        #22C55E;
  --down:      #EF4444;
  --r:         12px;
  --r-lg:      20px;
  --ease:      cubic-bezier(0.4,0,0.2,1);
  --tick-h:    30px;
  --sp:        88px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }

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

/* ── TICKER ── */
.ticker {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 101;
  height: var(--tick-h);
  background: var(--blue-dim);
  border-bottom: 1px solid rgba(26,86,255,0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
  padding-left: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.tick { display: flex; align-items: center; gap: 8px; }
.tick em { font-style: normal; font-weight: 600; }
.tick.up em  { color: var(--up); }
.tick.down em { color: var(--down); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(26,86,255,0.45); }

.btn--tg {
  background: rgba(26,86,255,0.1);
  color: #7BA4FF;
  border: 1px solid rgba(26,86,255,0.28);
}
.btn--tg:hover {
  background: rgba(26,86,255,0.2);
  border-color: rgba(26,86,255,0.5);
}

.btn--sm  { padding: 9px 18px;  font-size: 13px; }
.btn--lg  { padding: 15px 30px; font-size: 15px; }
.btn--xl  { padding: 18px 42px; font-size: 17px; }
.btn--full { width: 100%; justify-content: center; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.eyebrow--blue  { color: #7BA4FF; }

/* ── LIVE DOT ── */
.dot--live {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--up);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(130deg, #7BA4FF 0%, #1A56FF 55%, #5B8FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══ HERO AVATAR ══ */
.hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  align-self: center;
  border: 2px solid rgba(123,164,255,0.5);
  box-shadow: 0 0 0 6px rgba(26,86,255,0.12), 0 8px 24px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ══ HERO ══ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--tick-h) + 32px);
  padding-bottom: 44px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,15,0.25) 0%,
    rgba(10,10,15,0.65) 55%,
    var(--ink) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: 48px;
  width: 100%;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
}

/* ── HERO MEDIA (seminar photo) ── */
.hero__media {
  position: relative;
  width: 100%;
  display: flex;
}
.hero__media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(123,164,255,0.25);
  box-shadow: 0 0 0 6px rgba(26,86,255,0.10), 0 28px 72px rgba(0,0,0,0.55);
}
.hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0) 55%, rgba(10,10,15,0.75) 100%);
  pointer-events: none;
}
.hero__media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero__headline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 10px 0 22px;
}
.hero__sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 540px;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.22), transparent);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0%,100% { opacity:0; transform:scaleY(0.5); }
  50%      { opacity:1; transform:scaleY(1); }
}

/* ══ SECTIONS ══ */
.section { padding: var(--sp) 0; }
.section--alt { background: var(--ink-3); }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 18px auto 0;
  line-height: 1.72;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ══ WHY CARDS ══ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why-card:hover {
  border-color: rgba(26,86,255,0.38);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.why-card__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--blue-glow);
  border: 1px solid rgba(26,86,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7BA4FF;
  flex-shrink: 0;
}
.why-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* ══ HOW IT WORKS ══ */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.step {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  flex: 1 1 0;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.step__num {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.step__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--blue-glow);
  border: 1px solid rgba(26,86,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7BA4FF;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
}
.step p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.step__connector {
  color: var(--border);
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ══ YOUTUBE ══ */
.yt-embed { max-width: 780px; margin: 0 auto; }
.yt-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.yt-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.yt-embed__note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 14px;
}
.yt-embed__note a { color: #7BA4FF; }

/* ══ RECEIVE ══ */
.receive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.receive-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color 0.25s var(--ease);
}
.receive-item:hover { border-color: rgba(26,86,255,0.3); }
.receive-item__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.28);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--up);
  overflow: hidden;
}
.receive-item__icon--brand {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
.receive-item__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.receive-item strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ══ MYFXBOOK ══ */
.myfxbook__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.myfxbook__text .section-title { text-align: left; }
.myfxbook__body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 20px 0 36px;
}
.screenshot-frame {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.55);
}
.screenshot-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--border);
}
.screenshot-frame__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.screenshot-frame__bar span:nth-child(1) { background: #EF4444; opacity:.7; }
.screenshot-frame__bar span:nth-child(2) { background: #F59E0B; opacity:.7; }
.screenshot-frame__bar span:nth-child(3) { background: #22C55E; opacity:.7; }
.screenshot-img { width: 100%; display: block; }

/* ══ FAQ ══ */
.faq__list {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item.open { border-color: rgba(26,86,255,0.38); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item__q:hover { color: #7BA4FF; }
.faq-item__chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease), color 0.2s;
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); color: var(--blue); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item__a p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ══ FINAL CTA ══ */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(26,86,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.final-cta__sub {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 44px;
}

/* ══ FOOTER ══ */
.footer {
  background: var(--ink-3);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__disc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 520px;
}
.footer__copy { font-size: 11px; color: var(--text-3); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch__current,
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch__current {
  background: var(--up);
  color: #06210F;
}
.lang-switch__link {
  color: var(--text-2);
}
.lang-switch__link:hover {
  background: var(--ink-3);
  color: var(--text);
}
.lang-switch__flag { font-size: 15px; line-height: 1; }

/* ══ STICKY MOBILE CTA ══ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 200;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);

  transform: translateY(100%);
  transition: transform 0.38s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }

/* ══ REVEAL ══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .myfxbook__inner { grid-template-columns: 1fr; gap: 36px; }
  .myfxbook__text .section-title { text-align: center; }
  .myfxbook__text { text-align: center; }
  .myfxbook__text .btn { margin: 0 auto; }

  /* hero: stack media under text */
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 640px) {
  :root { --sp: 56px; }

  /* hero centered on mobile */
  .hero__text { align-items: center; text-align: center; }
  .hero__sub { text-align: center; }
  .hero .btn--lg { width: 100%; justify-content: center; }
  .hero__media { max-width: 100%; }

  /* why: single column */
  .why__grid { grid-template-columns: 1fr; }

  /* steps: vertical */
  .steps { flex-direction: column; align-items: center; gap: 0; }
  .step { max-width: 100%; width: 100%; }
  .step__connector { transform: rotate(90deg); padding: 4px 0; }

  /* receive: single column */
  .receive__grid { grid-template-columns: 1fr; }

  /* section CTAs full width */
  .section-cta .btn { width: 100%; justify-content: center; }
  .final-cta .btn--xl { width: 100%; justify-content: center; }

  /* show sticky CTA */
  .sticky-cta { display: flex; }
  .sticky-cta .btn { width: 100%; max-width: 360px; justify-content: center; padding: 16px 24px; font-size: 17px; }
  body { padding-bottom: 76px; }

  /* myfxbook button full width on mobile */
  .myfxbook__text .btn { width: 100%; justify-content: center; }
}

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .dot--live { animation: none; }
  .hero__scroll-hint span { animation: none; }
  .reveal { opacity:1; transform:none; transition:none; }
}

/* ══ SMALL PHONES ══ */
@media (max-width: 380px) {
  .hero__avatar { width: 72px; height: 72px; }
  .receive-item { padding: 14px 16px; gap: 12px; }
  .receive-item__icon { width: 28px; height: 28px; }
  .receive-item__icon img { width: 18px; height: 18px; }
  .receive-item strong { font-size: 0.85rem; }
}
