/* =========================================================
   tradable.io landing page
   ========================================================= */

:root{
  --black:            #151515;
  --bg-dark:           #1a1a1a;
  --bg-section:        #272727;
  --bg-darkest:        #101010;
  --teal:              #44b4a5;
  --teal-light:        #4fd8c4;
  --teal-dark:         #1f4e49;
  --red:               #e3295f;
  --text-white:        #ffffff;
  --text-gray:         #a0a0a0;
  --text-gray-dim:     #7d7d7d;
  --border-gray:       #3d3d3d;
  --container-w:       1200px;
  --font-main:         'Montserrat', Arial, Helvetica, sans-serif;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: var(--font-main);
  background: var(--black);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, p, h1, h2, h3, h4{
  margin: 0;
}

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

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section-title{
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 56px;
}

.section-title--left{
  text-align: left;
  margin-bottom: 20px;
  font-size: 24px;
}

/* =========================================================
   Buttons: store buttons
   ========================================================= */
.store-buttons{
  display: flex;
  gap: 16px;
}

.store-btn{
  display: inline-flex;
  align-items: center;
}

.store-btn img{
  height: 44px;
  width: auto;
}

/* =========================================================
   Header
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: 76px;
  display: flex;
  align-items: center;
}

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

.logo img{
  height: 42px;
  width: auto;
}

.nav{
  display: flex;
  gap: 40px;
}

.nav__link{
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  opacity: .9;
  transition: opacity .2s, color .2s;
}

.nav__link:hover{
  opacity: 1;
  color: var(--teal-light);
}

.burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.burger span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity: 0; }
.burger.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  background: var(--bg-section);
}

.hero__bg{
  position: relative;
  z-index: 0;
  line-height: 0;
}

.hero__bg img{
  width: 100%;
  height: auto;
  display: block;
}

.hero__inner{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 70px;
}

.hero__title{
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 560px;
  margin-bottom: 20px;
}

.hero__text{
  max-width: 460px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero .store-btn img{
  height: 40px;
}

/* =========================================================
   Why tradable.io
   ========================================================= */
.why{
  background: var(--bg-section);
  padding: 60px 0 70px;
}

.why__inner{
  display: flex;
  align-items: center;
  gap: 70px;
}

.why__icon{
  flex: 0 0 220px;
  max-width: 220px;
}

.why__content p{
  color: var(--text-gray);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 640px;
}

.why__content b{
  color: var(--text-white);
}

/* =========================================================
   Ticker
   ========================================================= */
.ticker{
  background: var(--bg-dark);
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.04);
}

.ticker__inner{
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ticker__item{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ticker__pair{
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 4px;
}

.pct{ font-size: 13px; font-weight: 600; margin-left: 4px; }
.pct--up{ color: var(--teal); }
.pct--down{ color: var(--red); }

.ticker__price{
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker__price small{
  font-size: 12px;
  font-weight: 500;
  color: var(--text-gray);
  margin-left: 3px;
}

.ticker__volume{
  font-size: 11.5px;
  color: var(--text-gray-dim);
  white-space: nowrap;
}
.ticker__volume span{
  color: var(--text-gray);
}

.ticker__chart{
  width: 60px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

/* =========================================================
   Key Features
   ========================================================= */
.features{
  position: relative;
  background: var(--bg-darkest);
  padding: 70px 0 40px;
  overflow: hidden;
}

.features__viewport{
  position: relative;
  overflow: hidden;
}

.features__track{
  display: flex;
  transition: transform .5s ease;
}

.feature{
  flex: 0 0 100%;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.feature__inner{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.feature__text{
  max-width: 440px;
}

.feature__text h3{
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.feature__text p{
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-gray);
}

.feature__text b{
  color: var(--text-white);
}

.feature__phone{
  flex: 0 0 auto;
  width: 230px;
}

.wave--features{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 210px;
  z-index: 0;
  pointer-events: none;
}
.wave--features path{
  fill: rgba(255,255,255,.035);
}

/* dots */
.dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #6b6b6b;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.dot.is-active{
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.15);
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials{
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  background: #1b1b1b;
}

.testimonials__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials__scrim{
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.72);
}

.testimonials__content{
  position: relative;
  z-index: 1;
}

.testimonials__viewport{
  overflow: hidden;
}

.testimonials__track{
  display: flex;
  transition: transform .5s ease;
}

.testimonial-group{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card{
  background: rgba(31,31,31,.85);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 26px 24px;
}

.review-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__head img{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__head h4{
  font-size: 15px;
  font-weight: 600;
}

.review-card__stars{
  color: #f5b942;
  letter-spacing: 3px;
  font-size: 15px;
  margin-bottom: 14px;
}
.review-card__stars .star-empty{
  color: #55534a;
}

.review-card p{
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* =========================================================
   Stats
   ========================================================= */
.stats{
  background: var(--bg-section);
  padding: 60px 0;
}

.stats__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.stats__numbers{
  display: flex;
  gap: 90px;
}

.stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat__num{
  font-size: 40px;
  font-weight: 800;
  color: var(--teal);
}

.stat__label{
  font-size: 14px;
  color: var(--text-gray);
}

.stats .store-btn{
}

/* =========================================================
   Contact
   ========================================================= */
.contact{
  position: relative;
  padding: 70px 0 50px;
  overflow: hidden;
  background: #101010;
}

.contact__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}

.contact__content{
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.contact-form__row{
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label{
  font-size: 12px;
  color: var(--text-gray);
}

.field:first-child label{
  visibility: hidden;
}

.field input,
.field textarea{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.field input::placeholder,
.field textarea::placeholder{
  color: #8c8c8c;
}

.field input:focus,
.field textarea:focus{
  border-color: var(--teal);
}

.field--full{
  margin-bottom: 30px;
}

.field textarea{
  resize: vertical;
  min-height: 130px;
  background: rgba(255,255,255,.1);
}

.btn-send{
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 15px 60px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-send:hover{
  background: var(--teal-light);
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  background: var(--bg-dark);
  padding: 50px 0 24px;
  text-align: center;
}

.footer__nav{
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer__nav a{
  font-size: 14px;
  color: var(--text-gray);
  transition: color .2s;
}
.footer__nav a:hover{
  color: var(--text-white);
}

.footer__divider{
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--container-w);
  margin: 0 auto 36px;
}

.footer__bottom{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer__bottom .logo img{
  height: 40px;
}

.footer__copy{
  font-size: 12px;
  color: var(--text-gray-dim);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px){
  .container{ padding: 0 24px; }

  .why__inner{ gap: 40px; }
  .why__icon{ flex-basis: 160px; max-width: 160px; }

  .ticker__inner{ flex-wrap: wrap; row-gap: 24px; }
  .ticker__item{ flex: 0 0 calc(50% - 10px); }

  .feature{ flex-direction: column-reverse; text-align: center; min-height: auto; padding-top: 20px; padding-bottom: 40px; }
  .feature__text{ max-width: 100%; }
  .feature__phone{ width: 190px; }

  .testimonial-group{ grid-template-columns: 1fr; gap: 20px; }
}

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

  /* header */
  .header{ height: 64px; }
  .burger{ display: flex; }
  .header .logo{ position: absolute; left: 50%; transform: translateX(-50%); }
  .header .logo img{ height: 30px; }

  .nav{
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav.is-open{ max-height: 260px; }
  .nav__link{
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  /* hero */
  .hero__inner{
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 0;
  }
  .hero__title{ font-size: 26px; max-width: 345px; margin-bottom: 16px; }
  .hero__text{ font-size: 14.5px; max-width: 320px; margin-bottom: 22px; }
  .hero .store-btn img{ height: 42px; }
  .store-buttons{ gap: 10px; }

  /* why */
  .why{ padding: 44px 0 50px; }
  .why__inner{ flex-direction: column; text-align: center; }
  .why__icon{ max-width: 150px; margin-bottom: 10px; }
  .section-title--left{ text-align: center; }

  /* ticker */
  .ticker__inner{ flex-direction: column; row-gap: 22px; }
  .ticker__item{ flex: 1 1 auto; width: 100%; justify-content: space-between; }

  /* features */
  .features{ padding: 46px 0 30px; }
  .feature__phone{ width: 160px; }
  .feature__text h3{ font-size: 20px; margin-bottom: 12px; }
  .section-title{ font-size: 22px; margin-bottom: 36px; }

  /* stats */
  .stats__numbers{ gap: 50px; }
  .stat__num{ font-size: 30px; }

  /* contact */
  .contact-form__row{ flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .field:first-child label{ visibility: visible; }

  /* footer */
  .footer__nav{ gap: 20px 28px; margin-bottom: 30px; }
  .footer__bottom{ flex-direction: column; gap: 20px; margin-bottom: 26px; }
}
