:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #22222a;
  background: #fff;
  --ink: #22222a;
  --muted: #555561;
  --blue: #3d4bc9;
  --sky: #70c5ea;
  --pink: #e5a0e3;
  --navy: #1a2c54;
  --rule: #e4e4eb;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --headline: clamp(3.25rem, 7vw, 6.6rem);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; line-height: 1.58; }
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #0a66a0; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 760; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.04; letter-spacing: -.048em; }
p { text-wrap: pretty; }

.shell { width: min(100% - var(--gutter) * 2, 77rem); margin-inline: auto; }
.shell.narrow { width: min(100% - var(--gutter) * 2, 49rem); }
.narrow { max-width: 49rem; }
.skip-link { position: absolute; top: .75rem; left: var(--gutter); z-index: 3; padding: .7rem 1rem; transform: translateY(-180%); background: white; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 5.25rem; }
.brand { display: inline-flex; flex: 0 1 15.25rem; align-items: center; min-width: 0; min-height: 44px; }
.brand img { width: 100%; }
.main-nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.35rem); }
.main-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 650; text-decoration: none; }
.main-nav a { position: relative; white-space: nowrap; }
.main-nav a::after { position: absolute; inset: auto 0 3px; height: 2px; background: var(--blue); content: ''; opacity: 0; transition: opacity 160ms ease; }
.main-nav a:is(:hover, [aria-current])::after { opacity: 1; }

.home-hero { position: relative; isolation: isolate; overflow: hidden; background: #151c49; color: white; }
.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, #151c49 0%, #151c49eb 23%, #151c4961 51%, #151c4900 72%), url('/assets/trading-background.webp');
  background-position: center, right 12%;
  background-size: cover;
  content: '';
}
.home-hero-inner { display: flex; min-height: clamp(32rem, 48vw, 42rem); flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(4rem, 9vw, 7rem); }
.hero-title, .display-title { font-size: var(--headline); line-height: .96; letter-spacing: -.067em; }
.hero-title { max-width: 8.8em; }
.lede { max-width: 39rem; margin-top: 1.5rem; font-size: clamp(1.07rem, 1.55vw, 1.28rem); line-height: 1.58; }
.home-hero .lede { max-width: 30rem; }
.eyebrow { margin-bottom: .95rem; color: #5c3a75; font-size: .89rem; font-weight: 720; }
.home-hero .lede, .page-hero--webinar .lede, .subscription .lede { color: #f1eef8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 52px; justify-content: center; align-items: center; gap: .75rem; padding: .8rem 1.28rem; border: 1px solid transparent; border-radius: .45rem; font-size: .95rem; font-weight: 760; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.button--primary { background: var(--pink); color: #241b32; }
.button--primary:hover { background: #f3bcf2; }
.button--secondary { border-color: #ffffffa8; color: #fff; }
.button--secondary:hover { background: #ffffff22; border-color: #fff; }
.text-link { color: #3846ad; font-weight: 720; overflow-wrap: anywhere; }
.text-link:hover { text-decoration-thickness: 2px; }

.section { padding-block: clamp(3.2rem, 7.25vw, 6.3rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.split h2 + p, .split p + .text-link { margin-top: 1.15rem; }
.split p:not(.eyebrow) { max-width: 35rem; color: var(--muted); }
.split .text-link { display: inline-block; }

.home-webinar { padding-bottom: 0; }
.webinar-band { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 1fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 5rem); padding: clamp(1.7rem, 4.4vw, 4rem); border-radius: .55rem; background: #222847; color: #fff; }
.webinar-band .eyebrow, .page-hero--webinar .eyebrow, .subscription .eyebrow { color: var(--pink); }
.webinar-band h2 + p { max-width: 42rem; margin-top: 1rem; color: #e7e5f2; }
.webinar-band > :last-child { padding-left: 1.7rem; border-left: 1px solid #ffffff4d; }
.webinar-band time { font-weight: 700; }
.webinar-band .text-link { display: inline-block; margin-top: .55rem; color: var(--pink); }
.home-about .split, .home-book .split { align-items: center; }
.home-about + .home-book { background: #f5f6fb; }
.presentation-cover { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: .55rem; background: var(--navy); color: white; }
.presentation-cover img { width: 100%; }
.presentation-play { position: absolute; inset: 50% auto auto 50%; display: grid; width: clamp(3.4rem, 6vw, 4.6rem); aspect-ratio: 1; place-items: center; transform: translate(-50%, -50%); border: 1px solid #fff8; border-radius: 50%; background: #151c49e8; transition: background-color 160ms ease; }
.presentation-play::after { width: 0; height: 0; margin-left: .2rem; border-block: .5rem solid transparent; border-left: .78rem solid white; content: ''; }
.presentation-cover:hover .presentation-play { background: #11162f; }
.presentation-label { position: absolute; right: .85rem; bottom: .85rem; padding: .4rem .7rem; border-radius: .25rem; background: #151c49eb; font-size: .82rem; font-weight: 690; }
.book-art { display: grid; min-height: clamp(19rem, 31vw, 29rem); place-items: center; padding: 1.75rem; border-radius: .55rem; background: #f0f1f9; }
.book-art img { width: clamp(10.25rem, 19vw, 16.5rem); }

.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: #f1f2fa; }
.page-hero .display-title { font-size: clamp(2.9rem, 7vw, 5.85rem); }
.page-hero--webinar { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero--webinar::before, .page-hero--webinar::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #181f45 5%, #181f45ee 32%, #181f4566 63%, #181f4518), url('/assets/trading-background.webp') right 12% / cover; content: ''; }
.page-hero--webinar::before { inset: -.9rem; filter: blur(.85rem); }
.page-hero--webinar::after { mask-image: linear-gradient(90deg, transparent 43%, #000 75%); }
.event-date { margin-top: 1.6rem; font-weight: 700; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; max-width: 25rem; margin-top: 1.45rem; }
.countdown > div { display: grid; min-height: 4.5rem; place-content: center; padding: .5rem .25rem; border: 1px solid #ffffff51; border-radius: .35rem; font-size: .8rem; text-align: center; }
.countdown > div span:first-child { color: var(--pink); font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1.1; }
[data-event-status] { max-width: 36rem; margin-top: 1.4rem; color: #e7e5f2; }
.ruled-list { margin: 0; padding: 0; list-style: none; }
.ruled-list li { padding: .95rem 0; border-top: 1px solid var(--rule); }
.ruled-list li:last-child { border-bottom: 1px solid var(--rule); }
.webinar-agenda li { padding-block: 1.25rem; }
.webinar-agenda h3 { font-size: 1.13rem; line-height: 1.3; }
.webinar-agenda p { margin-top: .35rem; }
.webinar-speaker { background: #f5f6fb; }
.webinar-speaker .split { align-items: center; }
.webinar-follow-up { background: #f5f6fb; }
.webinar-questions details { padding-block: .95rem; border-top: 1px solid #d8daea; }
.webinar-questions details:last-child { border-bottom: 1px solid #d8daea; }
.webinar-questions summary { padding-block: .32rem; cursor: pointer; font-weight: 720; }
.webinar-questions details p { margin-top: .65rem; }

.home-contact .lede { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 4vw, 4rem); margin-top: 2.5rem; }
.contact-item { padding-top: 1.45rem; border-top: 1px solid var(--rule); }
.contact-item h3 { font-size: clamp(1.24rem, 2.25vw, 1.6rem); line-height: 1.18; letter-spacing: -.035em; }
.contact-item p { max-width: 31rem; margin-block: .85rem 1rem; color: var(--muted); }
.prose h2 { margin-block: 2.15rem .65rem; font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: .8rem; }
.prose a { overflow-wrap: anywhere; color: #3846ad; }

.subscription { padding-block: clamp(3.2rem, 8.1vw, 7rem); background: #222847; color: #fff; }
.subscription-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .8fr); align-items: center; gap: clamp(2.35rem, 7vw, 7rem); }
.subscription .display-title { font-size: clamp(3.2rem, 7vw, 6.45rem); }
.subscription .lede { max-width: 33rem; }
.subscription-date { max-width: 29rem; margin-top: 1.65rem; color: #e6e4ef; }
.subscription-date time { color: #fff; font-weight: 720; }
.offer { padding: clamp(1.5rem, 3.3vw, 2.8rem); border-radius: .55rem; background: #fff; color: var(--ink); }
.offer h2 { font-size: 1.22rem; letter-spacing: -.02em; }
.price { margin-top: .6rem; font-size: clamp(2.85rem, 5vw, 4.35rem); font-weight: 790; font-variant-numeric: lining-nums; line-height: 1; letter-spacing: -.064em; }
.price span { font-size: .99rem; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.offer-terms { margin: .75rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.offer .button { width: 100%; }
.offer-note, .offer-help { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.offer-help { padding-top: 1rem; border-top: 1px solid var(--rule); }
.offer-help a { color: #3846ad; font-weight: 680; }

.site-footer { background: #24242c; color: #fff; }
.footer-inner { display: flex; min-height: 8.75rem; gap: 1.25rem 3rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; }
.footer-links { gap: .5rem 1.55rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-telegram { gap: .5rem; }
.footer-telegram svg { flex: none; color: var(--sky); }
:is(.site-footer, .home-hero, .webinar-band, .page-hero--webinar, .subscription) :focus-visible { outline-color: #91d4f4; }
.offer :focus-visible { outline-color: #0a66a0; }

@media (max-width: 50rem) {
  .home-hero::before {
    inset: auto 0 0;
    height: min(27rem, 68%);
    background-image: linear-gradient(180deg, #151c49, #151c49ad 25%, #151c4900 70%), url('/assets/trading-background.webp');
    background-position: center, right 13%;
  }
  .home-hero-inner { min-height: 0; padding-block: 3.4rem clamp(11rem, 44vw, 17rem); }
  .hero-title { font-size: clamp(3.05rem, 8.75vw, 5.4rem); }
  .home-hero .lede { max-width: 30rem; }
  .page-hero--webinar::before, .page-hero--webinar::after { background-image: linear-gradient(90deg, #181f45f5, #181f45c2 66%, #181f4570), url('/assets/trading-background.webp'); }
  .webinar-band { grid-template-columns: 1fr; gap: 1.55rem; }
  .webinar-band > :last-child { padding: 1rem 0 0; border: 0; border-top: 1px solid #ffffff4d; }
  .subscription-layout { grid-template-columns: 1fr; }
  .offer { max-width: 34rem; }
}

@media (max-width: 39rem) {
  .header-inner { gap: .15rem; flex-direction: column; align-items: flex-start; padding-top: .55rem; }
  .brand { flex: initial; width: min(13rem, 100%); }
  .main-nav { gap: 1.6rem; }
  .main-nav a::after { bottom: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .35rem; }
}

@media (max-width: 23rem) {
  .hero-title { font-size: clamp(2.55rem, 13vw, 3.05rem); }
  .actions { gap: .65rem; }
  .button { padding-inline: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
