/* ReTrade Pro marketing site — dark slate + gold, matching the product demo. */
:root {
  --bg: #070708;
  --bg-raise: #101012;
  --bg-card: #141416;
  --bg-card-hover: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(247, 219, 11, 0.22);
  --gold: #f7db0b;
  --gold-ink: #161400;
  --gold-soft: rgba(247, 219, 11, 0.12);
  --text: #f5f5f6;
  --muted: #a1a1aa;
  --muted-2: #7c7c86;
  --danger: #ff6b6b;
  --ok: #3ddc97;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header: 72px;
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe45a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.logo-word {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.logo-word span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 560; font-size: 0.95rem; }
.nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.2rem;
}
.mobile-nav[hidden] { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 0 0 rgba(247, 219, 11, 0.4);
}
.btn-primary:hover { color: var(--gold-ink); background: #ffe45a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--gold); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* Hero */
.hero {
  position: relative;
  padding: 3.6rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto 30%;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(247, 219, 11, 0.09), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.video-frame {
  margin: 0;
  position: relative;
  border-radius: 20px;
  padding: 0.55rem;
  background: linear-gradient(180deg, rgba(247, 219, 11, 0.18), rgba(255,255,255,0.05));
  box-shadow: var(--shadow), 0 0 80px rgba(247, 219, 11, 0.08);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
}
.video-frame figcaption {
  margin: 0.7rem 0.3rem 0.15rem;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.trust-row { padding: 1rem 0; }
.trust-row p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Features */
.features { padding: 4.5rem 0 3.5rem; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head h2, .pricing-copy h2, .custom-banner h2, .demo-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.section-head p:last-child, .pricing-copy > p, .custom-banner p:last-of-type {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 0.95rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.suite {
  margin-top: 2rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247, 219, 11, 0.05), transparent 40%), var(--bg-card);
}
.suite h3 { margin: 0 0 0.35rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.suite > p { margin: 0 0 1rem; color: var(--muted); }
.suite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.suite-list li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

/* Customisable banner */
.custom { padding: 0.5rem 0 4.2rem; }
.custom-banner {
  border-radius: 24px;
  padding: 2.4rem 2rem;
  background:
    radial-gradient(ellipse at right top, rgba(247, 219, 11, 0.16), transparent 55%),
    linear-gradient(180deg, #16150a, #101012);
  border: 1px solid rgba(247, 219, 11, 0.28);
  box-shadow: 0 0 0 1px rgba(247, 219, 11, 0.05) inset;
}
.custom-banner h2 { color: var(--text); }
.custom-banner p:last-of-type { max-width: 48rem; font-size: 1.05rem; }

/* Pricing + form */
.pricing {
  padding: 0 0 5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: start;
}
.pricing-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.pricing-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--muted);
  font-weight: 550;
}
.pricing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}
.demo-card > p { color: var(--muted); margin: 0 0 1.2rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.optional { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0c0e;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #5c5c66; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 219, 11, 0.15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger);
}
.field-error { margin: 0.3rem 0 0; color: var(--danger); font-size: 0.8rem; font-weight: 600; }
.form-note { margin: 0.85rem 0 0; color: var(--muted-2); font-size: 0.8rem; }
.form-status {
  margin: 0.9rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.ok { background: rgba(61, 220, 151, 0.1); color: var(--ok); }
.form-status.err { background: rgba(255, 107, 107, 0.1); color: var(--danger); }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer + legal */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
  background: #050506;
}
.footer-inner { display: grid; gap: 0.85rem; }
.site-footer p { margin: 0; color: var(--muted); max-width: 36rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold); }
.copyright { color: var(--muted-2) !important; font-size: 0.82rem; }

.legal { padding: 3.2rem 0 5rem; }
.legal h1 { margin: 0 0 0.6rem; letter-spacing: -0.04em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.legal .meta { color: var(--muted-2); margin: 0 0 1.8rem; }
.legal h2 { margin: 1.8rem 0 0.6rem; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.prose { max-width: 44rem; }

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 { margin: 0 0 0.6rem; letter-spacing: -0.04em; }

@media (max-width: 900px) {
  .hero-grid, .pricing-grid, .feature-grid, .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.85rem; }
  .custom-banner, .demo-card { padding: 1.4rem 1.1rem; }
  .features { padding-top: 3.2rem; }
}
