/* Forex Official University — landing page
   Palette taken from the app design + logo:
   forest green (primary), pine (dark band), chart-paper off-white, logotype ink. */

:root {
  --forest: #107031;
  --forest-2: #1b8a44;
  --pine: #0a3d1e;
  --pine-2: #0d4d26;
  --ink: #141812;
  --paper: #f4f7f0;
  --card: #ffffff;
  --line: #dbe4d5;
  --muted: #5a6b58;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
}

body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--forest-2), var(--forest) 60%, #0c5726);
  box-shadow: 0 6px 18px rgba(16, 112, 49, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(16, 112, 49, 0.45); }
.btn-ghost {
  color: var(--forest);
  border: 2px solid var(--forest);
  padding: calc(0.85em - 2px) 1.7em;
  background: transparent;
}
.btn-ghost:hover { background: rgba(16, 112, 49, 0.08); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(244, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img { width: 46px; height: auto; }
.nav-wordmark {
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.nav-wordmark b { color: var(--forest); font-weight: 700; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--forest); }
.nav-cta { font-size: 0.95rem; padding: 0.65em 1.4em; }
.nav-burger { display: none; }

@media (max-width: 840px) {
  .nav { gap: 1rem; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  /* faint chart-paper grid */
  background-image:
    linear-gradient(rgba(16, 112, 49, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 112, 49, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
.tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.8em;
}
.tagline .u {
  font-style: normal;
  padding-bottom: 0.32em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 14" preserveAspectRatio="none"><path d="M4 9 C 34 3, 68 11, 116 5" fill="none" stroke="%23107031" stroke-width="5" stroke-linecap="round"/></svg>') bottom / 100% 0.3em no-repeat;
}
.lede {
  margin-top: 1.4rem;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.fine { margin-top: 1.1rem; font-size: 0.85rem; color: var(--muted); }

.hero-phone {
  position: relative;
  justify-self: center;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(16, 112, 49, 0.16), transparent 70%);
  z-index: 0;
}
.hero-phone img {
  position: relative;
  z-index: 1;
  width: min(320px, 78vw);
  filter: drop-shadow(0 24px 48px rgba(10, 61, 30, 0.28));
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 1rem; }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--pine);
  color: #cfe6d4;
  border-block: 1px solid var(--pine-2);
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: ticker 44s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.ticker-track i { font-style: normal; margin-left: 0.4em; font-size: 0.82em; }
.ticker-track .up { color: #7fd89b; }
.ticker-track .dn { color: #e8a0a0; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections shared ---------- */

.about, .deal, .courses, .closing {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}
.section-lede {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.about-copy p { margin-top: 1.2rem; max-width: 58ch; }
.about-copy p:first-of-type { font-size: 1.12rem; }
.about-stats {
  align-self: center;
  border-left: 3px solid var(--forest);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 1.6rem;
}
.about-stats dt {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--forest);
}
.about-stats dd { margin-top: 0.3rem; color: var(--muted); max-width: 24em; }

@media (max-width: 840px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- What we deal in ---------- */

.deal-grid {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.deal-grid li {
  background: var(--card);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.deal-grid svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deal-grid h3 { margin-top: 0.9rem; font-size: 1.12rem; font-weight: 700; }
.deal-grid p { margin-top: 0.4rem; color: var(--muted); font-size: 0.98rem; }

@media (max-width: 940px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .deal-grid { grid-template-columns: 1fr; } }

/* ---------- Courses ---------- */

.course-row {
  list-style: none;
  counter-reset: none;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.course {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
}
.course-step {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--forest);
}
.course h3 { margin-top: 0.7rem; font-size: 1.35rem; font-weight: 700; }
.course > p { margin-top: 0.3rem; color: var(--muted); font-size: 0.98rem; }
.course ul {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.course ul li {
  padding-left: 1.6em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23107031" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') left 0.28em / 1em no-repeat;
  font-size: 0.98rem;
}
.course > a {
  margin-top: 1.6rem;
  align-self: flex-start;
  color: var(--forest);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.course-pro { background: var(--pine); border-color: var(--pine); color: #fff; }
.course-pro .course-step { color: #7fd89b; }
.course-pro > p { color: #b9d4c1; }
.course-pro ul li {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237fd89b" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>');
}
.course-pro > a { color: #7fd89b; }

@media (max-width: 840px) { .course-row { grid-template-columns: 1fr; } }

/* ---------- The app ---------- */

.app {
  background: linear-gradient(180deg, var(--pine) 0%, #072d15 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.app-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.app-points {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.app-points h3 { font-size: 1.1rem; font-weight: 700; color: #9fe0b4; }
.app-points p { margin-top: 0.4rem; color: #c4d9ca; font-size: 0.98rem; }

.app-screens {
  margin-top: 3rem;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.5rem clamp(1rem, 4vw, 3rem) 1.5rem;
  scrollbar-color: var(--forest-2) transparent;
}
.app-screens figure { scroll-snap-align: center; flex: 0 0 auto; }
.app-screens img {
  width: min(230px, 62vw);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}
.app-screens figcaption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9bb8a4;
}

@media (max-width: 840px) { .app-points { grid-template-columns: 1fr; } }

/* ---------- Closing ---------- */

.closing { text-align: center; }
.closing > img { width: 150px; margin: 0 auto 0.6rem; }
.closing h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.closing p { margin: 1.1rem auto 0; max-width: 36em; color: var(--muted); }
.closing .hero-actions { justify-content: center; }
.closing .fine { margin-top: 0.9rem; font-size: 0.85rem; }

.social-row {
  list-style: none;
  margin: 2.6rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 60em;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.social-link:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 14px rgba(16, 112, 49, 0.15);
}
.social-link svg { width: 22px; height: 22px; color: var(--forest); flex: none; }
.social-link span {
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  display: grid;
}
.social-link small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #b9c2b6;
  text-align: center;
  padding: 3rem clamp(1rem, 4vw, 3rem) 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #fff;
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.05rem;
}
.footer-brand b { color: #7fd89b; font-weight: 700; }
.footer-brand img { width: 48px; }
.footer-tag { margin-top: 0.8rem; font-weight: 600; color: #dfe7dc; }
.footer-legal { margin: 1.4rem auto 0; max-width: 52em; font-size: 0.85rem; }
.footer-copy { margin-top: 1.2rem; font-size: 0.85rem; }
