/* =========================================================
   PiptraderAI — Landing Page Styles
   Dark fintech theme • Responsive • Accessible
   ========================================================= */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg:            #070b12;
  --bg-alt:        #0b111c;
  --surface:       #0f1724;
  --surface-2:     #131c2c;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);

  --text:          #e8edf5;
  --muted:         #8b97ac;
  --muted-2:       #6b7688;

  --primary:       #22c55e;
  --primary-dark:  #16a34a;
  --primary-glow:  rgba(34,197,94,.25);

  --blue:          #3b82f6;
  --purple:        #a855f7;
  --amber:         #f59e0b;

  --grad:          linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);

  /* Typography */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --radius:    16px;
  --radius-lg: 22px;
  --maxw:      1180px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--primary); color: #04120a; }

/* ---------- 2. CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: 780px; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }

h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }

p { color: var(--muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #04120a;
  box-shadow: 0 8px 24px -8px var(--primary-glow);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px var(--primary-glow);
}

.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; margin-top: auto; }

/* ---------- 5. NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,11,18,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7,11,18,.9);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #04120a;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand .accent { color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a:not(.btn) {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 9vw, 110px);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
  50%     { box-shadow: 0 0 0 9px rgba(34,197,94,.03); }
}

.hero h1 { margin-bottom: 20px; }

.hero__sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
}

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

.hero__ticks {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--muted-2);
}
.hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 7. STATS STRIP ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 22px;
  text-align: center;
}
.strip__item strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.strip__item span {
  font-size: .82rem;
  color: var(--muted-2);
  letter-spacing: .02em;
}

/* ---------- 8. SECTIONS ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(44px, 6vw, 66px);
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__head h2 { margin-bottom: 14px; }
.section__head p { font-size: 1rem; }

/* ---------- 9. ACCESS CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.75);
}

.card--featured {
  border-color: rgba(34,197,94,.4);
  background: linear-gradient(180deg, rgba(34,197,94,.06), var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(34,197,94,.14), 0 24px 60px -30px var(--primary-glow);
}
.card--featured:hover { border-color: rgba(34,197,94,.7); }

.card__badge {
  position: absolute;
  top: -12px; right: 22px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #04120a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.card__icon svg { width: 24px; height: 24px; }

.card__icon--green  { background: rgba(34,197,94,.1);  color: var(--primary); border-color: rgba(34,197,94,.25); }
.card__icon--blue   { background: rgba(59,130,246,.1); color: var(--blue);    border-color: rgba(59,130,246,.25); }
.card__icon--purple { background: rgba(168,85,247,.1); color: var(--purple);  border-color: rgba(168,85,247,.25); }
.card__icon--amber  { background: rgba(245,158,11,.1); color: var(--amber);   border-color: rgba(245,158,11,.25); }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.card > p { font-size: .92rem; margin-bottom: 18px; }

.card__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  color: var(--muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.5);
}
.card__list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.card__note {
  margin-top: 12px;
  font-size: .72rem;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- 10. STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.step__num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .92rem; }

/* ---------- 11. FEATURES ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feature__icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .88rem; }

/* ---------- 12. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq__item[open] { border-color: rgba(34,197,94,.4); }

.faq__item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--primary); }

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 24px 22px;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- 13. FINAL CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(48px, 7vw, 76px) 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 520px; margin: 0 auto 32px; font-size: 1rem; }

.cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 14. FOOTER ---------- */
.footer {
  margin-top: 40px;
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: .9rem;
  max-width: 320px;
}

.footer__col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--primary); }

/* Risk disclaimer */
.risk {
  padding: 26px 28px;
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.risk h5 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.risk p {
  font-size: .82rem;
  color: var(--muted-2);
  line-height: 1.7;
}
.risk p + p { margin-top: 10px; }
.risk strong { color: var(--muted); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 22px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted-2);
}
.footer__links { display: flex; align-items: center; gap: 10px; }
.footer__links a { transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--primary); }
.footer__links span { color: var(--border-strong); }

/* ---------- 15. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger cards slightly */
.cards .reveal:nth-child(1) { transition-delay: .05s; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .19s; }
.cards .reveal:nth-child(4) { transition-delay: .26s; }

.steps .reveal:nth-child(1) { transition-delay: .05s; }
.steps .reveal:nth-child(2) { transition-delay: .14s; }
.steps .reveal:nth-child(3) { transition-delay: .23s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 26px;
    background: rgba(7,11,18,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__links a:not(.btn) {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links .btn {
    margin-top: 16px;
    width: 100%;
  }

  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }

  .hero__ticks { gap: 14px; flex-direction: column; align-items: center; }

  .cta__btns .btn { width: 100%; }

  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__cta .btn { width: 100%; }
  .card { padding: 26px 22px; }
  .card__badge { right: 16px; }
  .risk { padding: 22px 20px; }
  .footer__inner { grid-template-columns: 1fr; }
}
