/* ===================================================================
   Trade Time — Getting Started
   Brand blue: #324dd4
   =================================================================== */

:root {
  --blue: #324dd4;
  --blue-dark: #2840b8;
  --navy: #0d1b3e;
  --ink: #1f2937;
  --body: #475569;
  --muted: #64748b;
  --line: #e6e8ef;
  --soft: #eef1fc;        /* icon / banner background */
  --green: #16a34a;
  --white: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f1f3f8;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1040px;
  margin: 28px auto;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 27, 62, 0.08);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 40px 48px 30px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0;
}
.blue-img {
    height:80px;
    width:80px;
}
a {
    text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.logo-mark { display: inline-flex; }
.logo-word {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
}
.logo-trade { color: var(--blue); }
.logo-time { color: var(--navy); }

.hero-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 8.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -1px;
  color: var(--navy);
  margin: 6px 0 18px;
  white-space: nowrap;
}

.hero-sub {
  font-size: 19px;
  color: var(--body);
  margin: 0;
  max-width: 460px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* fade into the white page on the left + bottom edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%),
                      linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 22%),
                      linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-composite: intersect;
}

/* ===================== STEPS ===================== */
.steps { padding: 0 48px; }

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
}
.steps .step:last-child { border-bottom: none; }

/* ---- left copy column ---- */
.step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.step-num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 21px;
  display: grid;
  place-items: center;
}
.step-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 27px;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.2px;
}

.step-desc {
  font-size: 17.5px;
  color: var(--body);
  margin: 0 0 22px;
  padding-left: 58px;
  max-width: 420px;
}

.step-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-left: 58px;
}
.note-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.step-note p {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
  max-width: 250px;
  align-self: center;
}

.inline-gear {
  display: inline-block;
  transform: translateY(1px);
  font-size: 15px;
}

/* ---- right phone column ---- */
.step-phone {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 320 / 670;
  background: #0b0d12;
  border-radius: 40px;
  padding: 11px;
  box-shadow: 0 18px 42px rgba(13, 27, 62, 0.22);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 7px;
  background: #2a2d35;
  border-radius: 4px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;   
  object-position: top center;
  border-radius: 30px;
  display: block;
  background: #f4f6fb;
}

/* ===================== HELP BANNER ===================== */
.help {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 32px 30px;
  padding: 20px 26px;
  background: var(--soft);
  border-radius: var(--radius);
}
.help-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e1e6fb;
  display: grid;
  place-items: center;
}
.help-text { flex: 1 1 auto; }
.help-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 2px;
}
.help-sub {
  margin: 0;
  font-size: 15.5px;
  color: var(--body);
}
.help-btn {
  flex: none;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 11px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.help-btn:hover { background: var(--blue-dark); }
.help-btn:active { transform: translateY(1px); }
.help-btn:focus-visible {
  outline: 3px solid rgba(50, 77, 212, 0.4);
  outline-offset: 2px;
}

/* ---- app store badges (step 1) ---- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-left: 58px;   /* aligns under the title, same as .step-note */
}
.store-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;          /* keeps focus ring tidy */
}
.store-btn img {
  height: 48px;                 /* both badges match this height */
  width: auto;
  display: block;
}
.store-btn:focus-visible {
  outline: 3px solid rgba(50,77,212,.45);
  outline-offset: 3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .page { margin: 12px; border-radius: 14px; }

  .hero {
    padding: 30px 26px 22px;
  }
  .hero-image {
    position: relative;
    width: calc(100% + 52px);
    height: 200px;
    margin: 22px -26px -22px;
  }
  .hero-image img {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .hero-title { white-space: normal; font-size: 50px; }
  .hero-sub br { display: none; }

  .steps { padding: 0 26px; }

  .step {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }
  .step-phone { order: 2; }

  .step-head { justify-content: center; }
  .step-desc {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .step-note {
    padding-left: 0;
    justify-content: center;
  }
  .step-note p { text-align: left; }
  .store-buttons { padding-left: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 46px; }
  .step-desc, .step-note { padding-left: 0; }

  .help {
    flex-wrap: wrap;
    margin: 18px 16px 22px;
  }
  .help-btn { width: 100%; text-align: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}