:root {
  --bg: #08111f;
  --bg-2: #101b2d;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #aab7ca;
  --line: rgba(255, 255, 255, 0.14);
  --green: #22c55e;
  --blue: #0ea5e9;
  --yellow: #f59e0b;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #132643, var(--bg) 42%), var(--bg);
  min-height: 100vh;
}

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

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.18;
  z-index: -1;
}
.bg-glow.one { background: var(--blue); top: 10%; left: -120px; }
.bg-glow.two { background: var(--green); bottom: 0; right: -140px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px min(6vw, 72px);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.28);
}
.brand strong { display: block; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.25);
}
.btn.secondary {
  background: rgba(255,255,255,.09);
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn.full { width: 100%; }

.section-pad { padding: 92px min(6vw, 72px); }
.narrow { max-width: 1180px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 80px);
}
.eyebrow {
  margin: 0 0 14px;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: .94;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
h3 { letter-spacing: -0.03em; }
.hero-text, .section-head p, .access-copy p, .disclaimer p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.hero-card, .feature-card, .price-card, .access-form, .disclaimer, .faq-list details {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 20px;
  overflow: hidden;
}
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.card-title { margin-left: auto; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}
.metric-grid small { color: var(--muted); display: block; margin-bottom: 6px; }
.metric-grid strong { font-size: 18px; }
.chart-box {
  background: rgba(3, 7, 18, .55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 14px;
}
.chart-box svg { width: 100%; display: block; }
.signal-row { display: flex; gap: 12px; margin-top: 16px; }
.signal { flex: 1; text-align: center; padding: 12px; border-radius: 16px; font-weight: 900; }
.signal.buy { background: rgba(34,197,94,.14); color: #86efac; }
.signal.sell { background: rgba(239,68,68,.14); color: #fca5a5; }

.section-head { max-width: 720px; margin-bottom: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 26px; }
.feature-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(14, 165, 233, .14);
  color: #7dd3fc;
  margin-bottom: 18px;
}
.feature-card p, .price-card li, .faq-list p, .step p { color: var(--muted); line-height: 1.65; }

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rule-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 165, 233, .12), rgba(255, 255, 255, .07));
  border: 1px solid var(--line);
}
.rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .15);
  color: #86efac;
  font-weight: 950;
  letter-spacing: .08em;
  font-size: 12px;
}
.rule-card p { color: var(--muted); line-height: 1.65; }
.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.55;
}
.check-row input { width: 18px; height: 18px; margin-top: 3px; }


.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 28px; }
.price-card.featured {
  border-color: rgba(34,197,94,.52);
  transform: translateY(-10px);
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.16);
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
}
.price { font-size: 42px; font-weight: 950; letter-spacing: -0.05em; margin-bottom: 18px; }
.price span { font-size: 15px; color: var(--muted); letter-spacing: normal; }
.price-card ul { padding-left: 20px; min-height: 128px; }
.price-card li { margin-bottom: 9px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
}
.step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
  margin-bottom: 14px;
}

.access-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.access-form { padding: 26px; }
.access-form label { display: block; margin-bottom: 16px; color: var(--text); font-weight: 800; }
.access-form input, .access-form select, .access-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(3,7,18,.42);
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  outline: none;
}
.access-form input:focus, .access-form select:focus, .access-form textarea:focus {
  border-color: rgba(14, 165, 233, .72);
}
.form-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.faq-list { display: grid; gap: 14px; }
.faq-list details { padding: 20px 24px; box-shadow: none; }
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { margin: 14px 0 0; }

.disclaimer { padding: 32px; }
.disclaimer h2 { font-size: 28px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px min(6vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }
.site-footer a { color: #7dd3fc; }
.not-found { max-width: 640px; margin: 14vh auto; padding: 40px; text-align: center; }

@media (max-width: 960px) {
  .hero, .access-wrap { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid, .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .header-cta { display: none; }
  .section-pad { padding: 62px 18px; }
  .feature-grid, .pricing-grid, .rule-grid, .steps { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .site-footer { flex-direction: column; padding: 24px 18px; }
}


/* Backtesting section */
.backtest-section {
  position: relative;
}

.backtest-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.055));
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.backtest-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.backtest-toolbar h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.mini-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.backtest-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 700;
}

.report-pill:hover,
.report-pill.active {
  border-color: rgba(14,165,233,0.75);
  background: rgba(14,165,233,0.18);
}

.backtest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 22px;
}

.backtest-meta span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .9rem;
}

.backtest-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.backtest-stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.55);
  padding: 16px;
}

.backtest-stat small {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.backtest-stat strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.equity-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 17, 31, 0.45);
  padding: 16px;
  margin: 18px 0;
}

.equity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.equity-head h4 {
  margin: 0;
}

.equity-head span {
  color: var(--muted);
  font-size: .9rem;
}

.equity-svg {
  width: 100%;
  min-height: 230px;
  display: block;
}

.equity-gridline {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.equity-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equity-area {
  fill: rgba(34,197,94,.13);
}

.trade-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.trade-table th,
.trade-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.trade-table th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,0.04);
}

.trade-table tr:last-child td {
  border-bottom: none;
}

.trade-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 10px;
}

.trade-list-head h4 {
  margin: 0 0 4px;
}

.trade-list-head span {
  color: var(--muted);
  font-size: .9rem;
}

.btn.small {
  padding: 10px 14px;
  font-size: .9rem;
  white-space: nowrap;
}

.all-trades-scroll {
  max-height: 540px;
  overflow: auto;
}

.all-trades-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 640px) {
  .trade-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn.small {
    width: 100%;
    text-align: center;
  }
}

.backtest-empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.backtest-empty strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.backtest-note {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: 18px 0 0;
}

@media (max-width: 900px) {
  .backtest-toolbar {
    flex-direction: column;
  }

  .backtest-actions {
    justify-content: flex-start;
  }

  .backtest-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .backtest-stat-grid {
    grid-template-columns: 1fr;
  }
}


/* TradingView links section */
.script-links-section {
  position: relative;
}

.script-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.script-link-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.script-link-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .18);
  filter: blur(24px);
  pointer-events: none;
}

.script-link-card.short-card::before {
  background: rgba(239, 68, 68, .18);
}

.script-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.script-badge,
.script-platform {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.script-badge.long {
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .28);
}

.script-badge.short {
  color: #fca5a5;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .28);
}

.script-platform {
  color: #bfdbfe;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .24);
}

.script-link-card h3,
.script-link-card p,
.script-link-card ul,
.script-link-card a {
  position: relative;
  z-index: 1;
}

.script-link-card p {
  color: var(--muted);
  line-height: 1.7;
}

.script-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 10px;
}

.script-points li {
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.script-points li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .13);
  font-size: .78rem;
  font-weight: 900;
}

.external-link span {
  margin-left: 8px;
}

.script-help-box {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 165, 233, .08);
}

.script-help-box strong {
  display: block;
  margin-bottom: 8px;
}

.script-help-box p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 820px) {
  .script-link-grid {
    grid-template-columns: 1fr;
  }
}


/* Refund policy section */
.refund-section { position: relative; }
.refund-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(34, 197, 94, .11), rgba(255, 255, 255, .06));
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}
.refund-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.refund-badge {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-weight: 950;
  font-size: 1.15rem;
  text-align: center;
  box-shadow: 0 18px 46px rgba(34, 197, 94, .23);
}
.refund-highlight h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.refund-highlight p, .refund-card p, .refund-terms li { color: var(--muted); line-height: 1.7; }
.refund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.refund-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 17, 31, .42);
}
.refund-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.refund-terms {
  border: 1px dashed rgba(255,255,255,.20);
  border-radius: 20px;
  background: rgba(3, 7, 18, .32);
  padding: 22px 24px;
}
.refund-terms h3 { margin-bottom: 12px; }
.refund-terms ul { margin: 0; padding-left: 20px; }
.refund-terms li { margin-bottom: 9px; }
.refund-terms li:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .refund-grid { grid-template-columns: 1fr; }
  .refund-highlight { grid-template-columns: 1fr; }
  .refund-badge { width: 96px; height: 96px; }
}
