/* ==========================================================
   Quantum Trading — Landing Page Styles
   Tokens
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #EFF5FB;
  --bg-soft-2: #E4EEF8;
  --navy: #0B3D63;
  --navy-dark: #082846;
  --sky: #1E9BE0;
  --sky-light: #8FDBFF;
  --text: #1B2430;
  --text-muted: #5C6B7C;
  --border: #DFE7EF;
  --white: #ffffff;

  --font-head: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --container: 1160px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Hero image must keep floating even with "reduce motion" on */
  .hero-img {
    animation-duration: 5s !important;
    animation-iteration-count: infinite !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

[data-feather] {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); margin: 0 0 14px; max-width: 62ch; }

.section-title {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-s);
  padding: 13px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 0 rgba(8, 40, 70, 0.25);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 61, 99, 0.28);
}

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.link-arrow {
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--sky-light);
  transition: border-color 0.18s ease;
}
.link-arrow:hover { border-color: var(--sky); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--sky); }

.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.main-nav a:hover {
  color: var(--navy);
  border-color: var(--sky-light);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 78%);
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 50ch;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
}
.hero-stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.stars { color: #F5A623; letter-spacing: 2px; }

.sample-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

.sample-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.sample-note-top { margin: -10px 0 34px; }

.hero-visual {
  position: relative;
  height: 420px;
  border-radius: 0;
  overflow: hidden;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  will-change: transform;
  transform-origin: 50% 50%;
  animation: hero-float 5s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(-10px) rotate(-1.2deg); }
  50% { transform: translateY(10px) rotate(1.2deg); }
}

/* ==========================================================
   Generic section rhythm
   ========================================================== */
.section {
  padding: 84px 0;
}
.section:nth-of-type(even) {
  background: var(--bg-soft);
}

/* ==========================================================
   About
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.highlight-item i {
  flex-shrink: 0;
  color: var(--sky);
  margin-top: 3px;
}
.highlight-item p { margin: 0; font-size: 0.94rem; }

/* ==========================================================
   CTA bands (separators)
   ========================================================== */
.cta-band {
  background: linear-gradient(100deg, var(--navy-dark), var(--navy) 60%, var(--sky) 150%);
  padding: 38px 0;
}
.cta-band-alt {
  background: linear-gradient(100deg, var(--sky) -30%, var(--navy) 55%, var(--navy-dark));
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-quote {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  font-style: italic;
}

/* ==========================================================
   Advantages
   ========================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.advantage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 24px;
}
.advantage-card i { color: var(--sky); margin-bottom: 14px; }
.advantage-card p { margin: 0; font-size: 0.92rem; }

/* ==========================================================
   Trust / counters
   ========================================================== */
.trust-section { background: var(--white); }
.trust-title { max-width: 40ch; }

.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 44px;
  text-align: center;
}
.counter-item {
  padding: 22px 12px;
  border-left: 1px solid var(--border);
}
.counter-item:first-child { border-left: none; }
.counter-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================
   Timeline
   ========================================================== */
.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-top: 46px;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 30px;
  right: -20px;
  height: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  position: absolute;
  top: 0;
  left: 0;
}
.timeline-step h3 { margin-bottom: 6px; }
.timeline-step p { font-size: 0.9rem; margin: 0; }

/* ==========================================================
   Testimonials
   ========================================================== */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--bg-soft);
}
.testimonial-card p {
  color: var(--text);
  font-size: 0.96rem;
  margin: 12px 0 20px;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 600; color: var(--navy-dark); }
.testimonial-meta { color: var(--text-muted); }

/* ==========================================================
   FAQ accordion
   ========================================================== */
.accordion {
  max-width: 760px;
  margin: 44px auto 0;
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: left;
}
.accordion-trigger i {
  flex-shrink: 0;
  color: var(--sky);
  transition: transform 0.25s ease;
}
.accordion-trigger[aria-expanded="true"] i { transform: rotate(180deg); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.accordion-panel > p {
  overflow: hidden;
  margin: 0 4px 0;
  font-size: 0.94rem;
}
.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-item.open .accordion-panel > p {
  padding-bottom: 20px;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #C7D6E6;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-logo { color: var(--white); }
.footer-brand p { color: #9FB4C9; font-size: 0.9rem; margin-top: 14px; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-contact p {
  color: #9FB4C9;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.footer-subscribe p { color: #9FB4C9; font-size: 0.9rem; }
.subscribe-row {
  display: flex;
  gap: 10px;
  margin: 14px 0 26px;
}
.subscribe-row input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.subscribe-row input::placeholder { color: #7C93AA; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: #B7C8DA;
}
.footer-nav a:hover { color: var(--white); }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0 30px;
}
.disclaimer p {
  color: #7C93AA;
  font-size: 0.76rem;
  line-height: 1.7;
  max-width: none;
}
.copyright {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: #62778C;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter-item:nth-child(4) { border-left: 1px solid var(--border); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-step::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .advantages-grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(3) { border-left: none; }
  .timeline { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
