:root {
  --ink: #101828;
  --muted: #667085;
  --line: #dbe3ef;
  --soft: #f4f7fb;
  --blue: #1f5eff;
  --blue-dark: #1746c7;
  --green: #17a56b;
  --orange: #f59f0b;
  --red: #e5484d;
  --panel: #fff;
  --dark: #0f172a;
  --blue-soft: #edf4ff;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, .06);
  --shadow-md: 0 22px 54px rgba(15, 23, 42, .10);
  --site-shell: 1520px;
  --site-pad: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: #cfe0ff;
  color: var(--ink);
}

.notice {
  background: linear-gradient(90deg, #0b1220 0%, #142241 100%);
  color: #dbe7f4;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 10px 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px max(var(--site-pad), calc((100vw - var(--site-shell)) / 2));
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid rgba(219, 227, 239, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: url("images/fxtool-logo-mark.svg") center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(31, 94, 255, .22);
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: #fff;
  display: none;
}

.mark::before {
  left: 8px;
  right: 8px;
  top: 17px;
  height: 2px;
  transform: rotate(-24deg);
}

.mark::after {
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
}

.links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #475467;
  font-size: 14px;
}

.links a:not(.nav-button) {
  white-space: nowrap;
}

.links a:not(.nav-button):hover,
.footer-links a:hover {
  color: var(--blue);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  border: 0;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(31, 94, 255, .2);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.button:hover {
  box-shadow: 0 18px 34px rgba(31, 94, 255, .26);
}

.nav-button {
  min-height: 40px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: none;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: #b9cdfd;
  background: #f8fbff;
  box-shadow: 0 12px 26px rgba(31, 94, 255, .08);
}

.button.dark {
  background: var(--ink);
}

.button.dark:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, .24);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(520px, 900px);
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 680px;
  padding: 58px max(var(--site-pad), calc((100vw - var(--site-shell)) / 2)) 70px;
  background:
    linear-gradient(90deg, rgba(31, 94, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 94, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 76% 20%, rgba(31, 94, 255, .13), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 94, 255, .18), transparent);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: 70px max(var(--site-pad), calc((100vw - var(--site-shell)) / 2)) 56px;
  background:
    radial-gradient(circle at 84% 18%, rgba(31, 94, 255, .12), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eff5ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.5vw, 66px);
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

.actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 38px;
  padding-top: 0;
  border-top: 0;
}

.metric {
  border: 1px solid rgba(207, 224, 255, .9);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  font-size: 30px;
  letter-spacing: 0;
}

.hero-proof {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 920px;
  justify-self: end;
}

.proof-window {
  overflow: hidden;
  border: 1px solid #172033;
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 30px 72px rgba(15, 23, 42, .24);
}

.proof-window img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.proof-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #dbe7f4;
  font-size: 13px;
}

.proof-caption b {
  color: #fff;
}

.proof-caption span {
  color: #98a7b9;
}

.shot-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shot-card:hover {
  transform: translateY(-2px);
  border-color: #b9cdfd;
  box-shadow: var(--shadow-md);
}

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.shot-card span {
  display: block;
  padding: 10px 12px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.metric span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.terminal {
  overflow: hidden;
  border: 1px solid #172033;
  border-radius: 8px;
  background: #0b1220;
  color: #dbe7f4;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .23);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #98a7b9;
  font-size: 12px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #4d5b70;
}

.terminal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 430px;
}

.chart {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background-image:
    linear-gradient(to right, rgba(152, 167, 185, .11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(152, 167, 185, .11) 1px, transparent 1px);
  background-size: 62px 48px;
}

.trend-line,
.fib-line {
  position: absolute;
  left: 48px;
  right: 38px;
  height: 3px;
  border-radius: 99px;
  transform-origin: left center;
}

.trend-line {
  top: 150px;
  background: #6ea8ff;
  transform: rotate(-8deg);
  box-shadow: 0 0 20px rgba(110, 168, 255, .24);
}

.fib-line.one {
  top: 214px;
  background: var(--orange);
  transform: rotate(5deg);
}

.fib-line.two {
  top: 256px;
  background: var(--orange);
  transform: rotate(5deg);
  opacity: .62;
}

.pocket {
  position: absolute;
  left: 76px;
  right: 74px;
  top: 220px;
  height: 52px;
  border-radius: 8px;
  background: rgba(245, 159, 11, .12);
  border: 1px solid rgba(245, 159, 11, .28);
}

.candles {
  position: absolute;
  left: 50px;
  right: 40px;
  bottom: 68px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 12px;
  align-items: end;
}

.candle {
  position: relative;
  width: 10px;
  min-height: 32px;
  justify-self: center;
  border-radius: 2px;
  background: #1e3a8a;
  color: #6ea8ff;
}

.candle:nth-child(2n) {
  background: #14532d;
  color: #2bd47d;
}

.candle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -13px;
  width: 2px;
  height: calc(100% + 26px);
  background: currentColor;
  opacity: .52;
}

.dashboard {
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}

.dashboard h3 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: .02em;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}

.dash-row b {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(31, 94, 255, .16);
  color: #9fc0ff;
  font-size: 11px;
}

section.content {
  padding: 74px max(var(--site-pad), calc((100vw - var(--site-shell)) / 2));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-head h2,
.content h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.soft { background: linear-gradient(180deg, var(--soft) 0%, #f8fbff 100%); }

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c6d7f5;
  box-shadow: var(--shadow-md);
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(31, 94, 255, .05);
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f2f5fa;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.card.featured {
  border-color: #b9cdfd;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 18px 48px rgba(31, 94, 255, .10);
}

.path-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.path-card .actions {
  margin-top: auto;
  padding-top: 20px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f2f5fa;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.card p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.75;
}

.product-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.contact-pill:hover {
  transform: translateY(-1px);
  border-color: #c6d7f5;
  box-shadow: var(--shadow-sm);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.contact-icon.wechat { background: #18b84f; }
.contact-icon.telegram { background: #229ed9; }
.contact-icon.qq { background: #111827; }
.contact-icon.link { background: var(--blue); }

.contact-pill strong {
  color: var(--ink);
}

.platform-card {
  border-color: #cfe0ff;
  background: #f8fbff;
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.download-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.download-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.download-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-meta span {
  color: #475467;
  font-size: 12px;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.tool-card .feature-list { margin-top: auto; padding-top: 22px; }

.feature-list span {
  display: flex;
  gap: 9px;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.feature-list span::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--green);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.step {
  min-height: 168px;
  padding: 18px 16px;
  background: #fff;
}

.step b {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
}

.step strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.step span {
  display: block;
  margin-top: 9px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.callout {
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 20px;
  background: #eff5ff;
  color: #1746c7;
  line-height: 1.7;
}

.callout.warning {
  border-color: #ffe0a3;
  background: #fff8e8;
  color: #8a5a00;
}

.help-block {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.help-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.help-block h2 {
  margin-bottom: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.side-panel {
  position: sticky;
  top: 92px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8fb2ff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .10);
}

textarea { min-height: 116px; resize: vertical; }

.generated-message {
  display: none;
  white-space: pre-wrap;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:first-child { border-top: 0; }

.faq-item h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.faq-item p {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.75;
}

.footer {
  padding: 30px max(var(--site-pad), calc((100vw - var(--site-shell)) / 2));
  background:
    linear-gradient(90deg, rgba(31, 94, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, #0b1220 0%, #090f1d 100%);
  background-size: 76px 76px, auto;
  color: #98a7b9;
  font-size: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: #dbe7f4;
}

@media (max-width: 1020px) {
  .nav {
    display: block;
    padding: 14px 18px;
  }

  .links {
    margin-top: 14px;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .links a:not(.nav-button),
  .nav-button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    background: #fff;
    color: #344054;
    box-shadow: none;
  }

  .links .nav-button {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }

  .hero,
  .detail-layout {
    display: block;
  }

  .hero-proof,
  .terminal,
  .side-panel {
    margin-top: 34px;
    position: static;
  }

  .grid-3,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .shot-stack,
  .download-row {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .dashboard {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .notice {
    text-align: left;
  }

  .hero,
  .page-hero,
  section.content {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .actions .button,
  .actions .nav-button {
    width: 100%;
  }
}
