/* Local fonts from Figma site */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-english.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-007F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-rest-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0080-00FF, U+0100-024F, U+0250-02AF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext-a.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-017F;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-rest.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

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

html {
  touch-action: manipulation;
}

input, textarea, select {
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  overflow-x: hidden;
  max-width: 406px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* =============================================
   HERO SECTION
   Figma: photo grid from y=-148 to ~400,
   title at y=431, subtitle y=553, btn y=664
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 8px;
}

/* Photo grid — single composed header image, overflows top */
.photo-grid {
  position: relative;
  width: 100%;
  margin-top: -88px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.header-image {
  width: 113%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translate(-2px, -4px);
}

/* Hero text content — Figma: title y=431, subtitle y=553, btn y=664 */
.hero-content {
  text-align: center;
  padding: 34px 16px 6px;
  position: relative;
  z-index: 2;
}

/* Figma: 51.213px Bebas Neue, leading 47px, w=373 */
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 51px;
  line-height: 47px;
  text-transform: uppercase;
  color: #b1b1b1;
  margin-bottom: 28px;
  max-width: 373px;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title span {
  color: #2c2c2c;
}

.hero-subtitle-wrap {
  position: relative;
  max-width: 381px;
  margin: 0 auto 44px;
  padding: 0 0 34px;
}

/* Figma: 22px Inter Bold, leading 23px, w=381 */
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 23px;
  color: #000;
  text-align: center;
  margin-bottom: 0;
  max-width: 381px;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-text-logo {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 112px;
  height: auto;
  pointer-events: none;
}

.hero .btn {
  width: 302px;
  height: 81px;
}

.hero .btn-text {
  font-size: 34px;
}

/* =============================================
   BUTTONS
   Figma: 302x81, rounded-[45px], border white
   ============================================= */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 302px;
  max-width: calc(100% - 32px);
  height: 81px;
  border-radius: 45px;
  border: 1px solid #fff;
  margin: 0 auto;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Figma: 34px Bebas Neue Bold, uppercase, white */
.btn-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 31px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  line-height: normal;
}

.btn-dark {
  background: #171717;
}

.btn-outline {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #fff;
}

.btn .btn-arrow {
  width: 73px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-30%);
}

/* =============================================
   SECTION: WHO WE LOOK FOR
   Figma: black bg, title 59.5px, text 16px
   ============================================= */
.section-who {
  position: relative;
  min-height: 540px;
  margin-top: 18px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.section-who-transition {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(402px, calc(100% + 8px));
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.section-who-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 342px;
  text-align: center;
}

.section-who .section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  line-height: 54px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.section-who .section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.24;
  color: #fff;
  text-align: center;
  max-width: 342px;
  margin: 0 auto;
}

/* =============================================
   SECTION: WE TEACH TRADING
   Figma: title 50px, text 21px, bullets 16px
   ============================================= */
.section-teach {
  padding: 50px 20px 0;
  background: #fff;
  position: relative;
  overflow: visible;
}

/* Figma: 50px, w=468 but constrained */
.section-teach .section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 50px;
  line-height: 51px;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  margin-bottom: 12px;
}

/* Figma: 21px Inter Bold, w=384 */
.section-teach .section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 23px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 24px;
  max-width: 100%;
  padding: 0 4px;
  margin-left: auto;
  margin-right: auto;
}

.section-teach .section-text .highlight {
  background: linear-gradient(to bottom, #ff6334, #9a0000 68%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Figma: bullets at 16px Inter Medium, w=342, rgba(0,0,0,0.72) */
.teach-list {
  margin-bottom: 40px;
  max-width: 342px;
  margin-left: auto;
  margin-right: auto;
}

.teach-list p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: rgba(0, 0, 0, 0.72);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.teach-list p:last-child {
  border-bottom: none;
}

/* Dark gradient overlay — Figma: gradient from transparent to #151515 */
.teach-overlay {
  position: relative;
  padding: 64px 25px 128px;
  margin: 0 -20px -74px;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.64) 30%, #151515 50%);
  border-radius: 0 0 30px 30px;
  z-index: 1;
}

/* =============================================
   SECTION: HOW IT WORKS — image carousel
   ============================================= */
.section-how {
  --step-slide-width: min(349px, calc(100vw - 40px));
  position: relative;
  margin-top: -24px;
  padding: 0 0 30px;
}

.section-how::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, #151515 0%, rgba(21, 21, 21, 0.88) 38%, rgba(21, 21, 21, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Carousel track */
.steps-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: calc((100vw - var(--step-slide-width)) / 2);
  -webkit-overflow-scrolling: touch;
  padding: 0 0 20px;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  position: relative;
  z-index: 1;
}

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

/* Side padding so first/last slide is centered */
.steps-track::before,
.steps-track::after {
  content: '';
  flex: 0 0 calc((100vw - var(--step-slide-width)) / 2);
}

/* Each slide / card */
.step-slide {
  flex: 0 0 var(--step-slide-width);
  width: var(--step-slide-width);
  scroll-snap-align: center;
}

.step-card {
  height: 431px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 29.5px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  padding: 31px 24px;
}

/* Card 6: Получение прибыли */
.step-card--profit {
  background: #fff;
}

.step-card--profit .step-card-text {
  max-width: 317px;
}

.step-card-label {
  position: absolute;
  top: 7px;
  right: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.15);
}

.text-green {
  font-weight: 800;
  color: #089426;
}

.text-dim {
  color: rgba(0, 0, 0, 0.42);
}

.step-card-img--profit {
  width: 227px;
  height: 115px;
  bottom: -60px;
  left: 63px;
  top: auto;
  border-radius: 19px;
}

/* Background texture for intro card */
.step-bg {
  position: absolute;
  top: -235px;
  left: -205px;
  width: 735px;
  height: 840px;
  opacity: 0.5;
  pointer-events: none;
}

/* Card title */
.step-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 35px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  position: relative;
  z-index: 1;
}

/* First card (intro) — centered large title */
.step-card:first-child .step-card-title {
  font-size: 60px;
  line-height: 49px;
  text-align: center;
  max-width: 290px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Card body text */
.step-card-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: #000;
  margin-top: 8px;
  max-width: 240px;
  position: relative;
  z-index: 1;
}

/* Card images */
.step-card-img {
  position: absolute;
  object-fit: cover;
  z-index: 0;
}

.step-card-img--form {
  width: 151px;
  height: auto;
  top: 30px;
  right: -100px;
  border-radius: 22px;
}

.step-card-img--ai {
  width: 170px;
  height: auto;
  top: 55px;
  right: -10px;
}

.step-card-img--edu {
  width: 100px;
  height: auto;
  top: 5px;
  right: 80px;
}

.step-card--demo .step-card-text {
  max-width: 300px;
}

.step-card--demo .step-card-next {
  bottom: auto;
  top: 260px;
  z-index: 2;
}

.step-card-img--demo {
  width: 409px;
  height: 230px;
  bottom: -118px;
  left: -140px;
  top: auto;
  border-radius: 25px;
  object-fit: cover;
  object-position: top;
}

/* "Next step" link */
.step-card-next {
  position: absolute;
  bottom: 30px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.52);
}

.step-card-next img {
  width: 150px;
  height: auto;
}

/* Dots indicator */
.steps-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d9d9;
  border: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #000;
}

/* Timeline + scroll badge below carousel */
.how-timeline {
  padding: 30px 25px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: 47px;
  text-transform: uppercase;
  color: #a7a7a7;
  margin-bottom: 20px;
}

.scroll-badge {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #fd490e;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  gap: 8px;
  padding-top: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scroll-badge .scroll-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}

.scroll-badge .scroll-arrow {
  font-size: 24px;
  color: #fff;
  line-height: 1;
  display: block;
}

/* =============================================
   RISK TEXT
   Figma: 20.8px Inter Medium, w=317
   ============================================= */
.section-risk {
  padding: 10px 45px 30px;
}

.section-risk p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: normal;
  color: #000;
  max-width: 100%;
}

/* =============================================
   START BUTTON
   Figma: btn at y=3133, line at y=3622
   ============================================= */
.section-start {
  padding: 20px 25px 10px;
  text-align: center;
}

.line-divider {
  margin-top: 25px;
  padding: 0 20px;
}

.line-divider img {
  width: 100%;
  display: block;
}

/* =============================================
   FREE TOOLS
   Figma: title 43px, text 21px Inter Bold
   ============================================= */
.section-tools {
  padding: 30px 11px 40px;
}

/* Figma: 43px, leading 51px, w=389 */
.section-tools .section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 43px;
  line-height: 51px;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  margin-bottom: 14px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Figma: 21px Inter Bold, w=384 */
.section-tools .section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 23px;
  color: rgba(0, 0, 0, 0.65);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   JOIN TEAM (dark card)
   Figma: card 349x475, #171616, rounded-[30px]
   ============================================= */
.section-join {
  padding: 30px 25px;
  text-align: center;
}

.card-join {
  width: 349px;
  max-width: 100%;
  min-height: 475px;
  background: #171616;
  border-radius: 30px;
  box-shadow: 0 6px 29.5px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 24px;
}

.card-join .bg-texture {
  position: absolute;
  top: -235px;
  left: -205px;
  width: 735px;
  height: 840px;
  opacity: 0.5;
  pointer-events: none;
}

/* Figma: 60px Bebas, leading 49px, w=380 — but card is 349 so it wraps */
.card-join .card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  line-height: 49px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

/* Figma: 21px Inter Bold, w=338, rgba(255,255,255,0.65) */
.card-join .card-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  position: relative;
  z-index: 1;
  max-width: 338px;
  margin-bottom: 24px;
}

/* Figma: btn inside card at bottom, 34px text */
.card-join .btn {
  margin-top: auto;
  z-index: 1;
}

.card-join .btn .btn-text {
  font-size: 25px;
}

/* =============================================
   WHO ARE WE
   Figma: 129px title #ff3c00, text 21px, btn 23px
   ============================================= */
.section-whoarewe {
  padding: 30px 8px 40px;
  text-align: center;
}

/* Figma: 129px Bebas, leading 110.6px, #ff3c00 */
.section-whoarewe .big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 129px;
  line-height: 111px;
  text-transform: uppercase;
  color: #ff3c00;
  margin-bottom: 16px;
}

/* Figma: 21px Inter Bold, w=374, rgba(0,0,0,0.65) */
.section-whoarewe .section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 23px;
  color: rgba(0, 0, 0, 0.65);
  text-align: left;
  margin-bottom: 28px;
  max-width: 100%;
  padding: 0 8px;
  margin-left: auto;
  margin-right: auto;
}

.section-whoarewe .section-text .link-blue {
  color: #3676ff;
  text-decoration: none;
}

.section-whoarewe .btn {
  margin-bottom: 35px;
}

.btn-telegram {
  width: 302px;
  max-width: calc(100% - 32px);
  min-height: 84px;
  padding: 14px 20px;
}

.btn-telegram .btn-text {
  font-size: 23px;
  line-height: 24px;
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: none;
}

/* Figma: 396x249, rounded-[19px] */
.section-whoarewe .preview-image {
  width: 100%;
  max-width: 396px;
  border-radius: 19px;
  display: block;
  margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #fff;
  padding: 30px 20px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  padding: 10px 28px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  width: 240px;
  transition: border-color 0.3s, background 0.3s;
}

.footer-links a:hover {
  border-color: #ff3c00;
  background: rgba(255, 60, 0, 0.04);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.25);
}
