:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #0d1b35;
  --muted: #64748b;
  --line: #dce5f0;
  --line-strong: #cdd9e8;
  --blue: #1677ff;
  --blue-soft: #eaf3ff;
  --shadow: 0 10px 32px rgba(25, 56, 95, 0.08);
  --radius: 18px;
  --shell: 1500px;
}

* { 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: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(205,217,232,.85);
}
.topbar__inner { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { text-decoration: none; font-size: 24px; letter-spacing: -0.04em; }
.brand strong { font-weight: 800; }
.brand span { font-weight: 400; color: #42526b; margin-left: 7px; }
.nav { display: flex; gap: 36px; font-size: 14px; font-weight: 600; color: #2d405f; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--blue); }
.env-pill { justify-self: end; border: 1px solid var(--line); background: #f8fbff; border-radius: 999px; padding: 8px 13px; font-size: 13px; color: #324966; display: flex; align-items: center; gap: 8px; }
.env-pill span { width: 9px; height: 9px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 4px rgba(16,185,129,.09); }

.hero {
  background:
    radial-gradient(circle at 72% 15%, rgba(22,119,255,.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid { min-height: 230px; display: grid; grid-template-columns: 1.06fr 1fr; gap: 68px; align-items: center; padding-block: 30px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #6f85a2; margin-bottom: 7px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: .98; letter-spacing: -0.045em; }
.hero__copy p { max-width: 720px; margin: 14px 0 0; color: #58708e; font-size: 16px; line-height: 1.55; }
.hero__facts { background: rgba(255,255,255,.76); border: 1px solid #e3eaf3; box-shadow: var(--shadow); border-radius: var(--radius); display: grid; grid-template-columns: repeat(3,1fr); padding: 22px 12px; }
.fact { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 6px 20px; align-items: start; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.fact strong { display: block; margin-bottom: 6px; font-size: 14px; }
.fact span { display: block; color: #6b7f99; line-height: 1.35; font-size: 13px; }

.tools-section { padding-block: 24px 18px; }
.category { margin-bottom: 24px; }
.category__header { display: flex; align-items: flex-end; gap: 12px; margin: 0 10px 10px; }
.category__num { color: var(--blue); font-weight: 800; font-size: 19px; line-height: 1; }
.category__title { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.category__description { margin: 3px 0 0; color: #73869d; font-size: 13px; }

.cards { display: grid; gap: 14px; }
.cards--platform { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards--process { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards--tool { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 18px rgba(25, 56, 95, .045); overflow: hidden; min-width: 0; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(25,56,95,.09); border-color: #c8d7e8; }
.card--platform { min-height: 220px; display: grid; grid-template-columns: 55% 45%; }
.card--process { min-height: 258px; display: flex; flex-direction: column; }
.card--tool { min-height: 146px; display: grid; grid-template-columns: 1fr 118px; }
.card__preview { min-width: 0; background: linear-gradient(145deg, #edf3f9, #f9fbfd); position: relative; overflow: hidden; }
.card--platform .card__preview { border-right: 1px solid var(--line); }
.card--process .card__preview { height: 118px; border-bottom: 1px solid var(--line); order: 2; margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 10px; }
.card--tool .card__preview { border-left: 1px solid var(--line); }
.card__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.card--process .card__body { padding: 16px 16px 10px; }
.card--tool .card__body { padding: 16px 18px; }
.card__head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.card__head h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.card--process .card__head h3 { font-size: 18px; }
.card--tool .card__head h3 { font-size: 17px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: #edf3f8; color: #637992; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.badge--primary { background: #e6f1ff; color: #1474ef; }
.badge--lock { background: #fff0f1; color: #c73745; }
.card__desc { color: #60748f; line-height: 1.45; font-size: 14px; margin: 12px 0 13px; }
.card--process .card__desc { font-size: 13px; margin-block: 8px 10px; }
.card--tool .card__desc { font-size: 12.5px; margin-block: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { background: #f2f6fa; border: 1px solid #e7edf4; border-radius: 999px; padding: 4px 8px; font-size: 10px; color: #5e7390; }
.card__actions { display: flex; align-items: center; gap: 9px; margin-top: auto; }
.btn { text-decoration: none; border: 1px solid #ccd8e7; border-radius: 9px; min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 750; font-size: 12px; background: #fff; color: #27415f; }
.btn:hover { border-color: #aebfd3; background: #f9fbfd; }
.btn--primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn--primary:hover { background: #086de9; border-color: #086de9; }
.btn--disabled { opacity: .55; pointer-events: none; cursor: default; }
.link { color: var(--blue); text-decoration: none; font-weight: 800; font-size: 12px; }

/* Preview illustrations: deliberately generic until a real screenshot is supplied */
.preview-ui { position: absolute; inset: 12px; border-radius: 10px; background: #fff; border: 1px solid #d9e3ee; box-shadow: 0 8px 24px rgba(38,64,100,.12); overflow: hidden; }
.preview-ui__bar { height: 19px; background: #f3f6fa; border-bottom: 1px solid #e2e8f0; display: flex; gap: 4px; align-items: center; padding-left: 8px; }
.preview-ui__bar i { width: 5px; height: 5px; border-radius: 50%; background: #bdc9d8; }
.preview-ui__inner { height: calc(100% - 19px); display: grid; grid-template-columns: 25% 1fr; }
.preview-ui__side { background: #132236; }
.preview-ui__content { padding: 9px; position: relative; }
.preview-lines { display: grid; gap: 6px; }
.preview-lines span { display: block; height: 5px; border-radius: 999px; background: #dce5ef; }
.preview-lines span:nth-child(2) { width: 72%; }
.preview-lines span:nth-child(3) { width: 52%; }
.preview-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.preview-blocks i { height: 22px; border-radius: 5px; background: #eaf2fb; border: 1px solid #dfe8f3; }
.preview-chart { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 40%; display: flex; gap: 4px; align-items: flex-end; }
.preview-chart i { width: 100%; border-radius: 2px 2px 0 0; background: #6aa9ff; }
.preview-chart i:nth-child(2n) { background: #b5d4ff; }
.preview-chart i:nth-child(1) { height: 35%; } .preview-chart i:nth-child(2) { height: 58%; } .preview-chart i:nth-child(3) { height: 44%; } .preview-chart i:nth-child(4) { height: 75%; } .preview-chart i:nth-child(5) { height: 62%; } .preview-chart i:nth-child(6) { height: 88%; } .preview-chart i:nth-child(7) { height: 53%; }
.preview-map { position: absolute; inset: 20px 8px 8px 27%; background: linear-gradient(35deg,#edf7ef,#f8fbff 55%,#e7f0fa); }
.preview-map::before, .preview-map::after { content: ""; position: absolute; background: #c8dcf2; transform: rotate(-16deg); }
.preview-map::before { width: 120%; height: 3px; left: -10%; top: 45%; }
.preview-map::after { width: 3px; height: 130%; top: -15%; left: 55%; }
.preview-pin { position: absolute; left: 62%; top: 38%; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: #1b83ff; transform: rotate(-45deg); box-shadow: 0 0 0 5px rgba(27,131,255,.12); }
.preview-pin::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: white; position: absolute; left: 4.5px; top: 4.5px; }
.preview-table { position: absolute; inset: 31px 9px 9px 27%; display: grid; gap: 5px; }
.preview-table span { height: 7px; border-radius: 3px; background: linear-gradient(90deg,#dce6f0 0 62%,#f0b95b 62% 73%,#dce6f0 73%); }
.preview-doc { position: absolute; width: 48%; height: 78%; left: 37%; top: 13%; background: white; border: 1px solid #d7e1ec; box-shadow: 0 7px 20px rgba(25,56,95,.11); padding: 10px; }
.preview-doc::before { content:""; display:block; width: 40%; height: 5px; border-radius: 3px; background:#1e78ee; margin-bottom:8px; }
.preview-doc::after { content:""; display:block; height: 48%; background: repeating-linear-gradient(#dce5ef 0 3px, transparent 3px 9px); }
.preview-diagram { position:absolute; inset:25px 10px 10px 25%; }
.preview-node { position:absolute; width:30px; height:18px; border-radius:5px; border:2px solid #80b8ff; background:#f6fbff; }
.preview-node:nth-child(1){left:7%;top:12%}.preview-node:nth-child(2){right:8%;top:10%}.preview-node:nth-child(3){left:39%;bottom:8%}
.preview-diagram::before,.preview-diagram::after{content:"";position:absolute;height:2px;background:#b3c7de;transform-origin:left center;left:27%;top:29%;width:45%;}
.preview-diagram::after{left:25%;top:37%;width:38%;transform:rotate(49deg)}
.preview-trading { position:absolute; inset:0; background:#0f1b29; }
.preview-trading__grid { position:absolute; inset:15px 9px 9px 25%; background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size:22px 18px; }
.preview-trading__line { position:absolute; inset:18px 12px 16px 28%; background: linear-gradient(145deg, transparent 0 15%, rgba(57,188,124,.0) 15%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpolyline points='0,88 34,77 59,94 95,62 121,72 148,43 181,56 211,32 244,58 273,22 305,48 336,36 372,12 400,28' fill='none' stroke='%2359d996' stroke-width='3'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.accent-blue .fact__icon { color: #1677ff; }.accent-green .fact__icon { color: #10b981; }

.about-section { margin-top: 12px; margin-bottom: 34px; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about-section h2, .contact-section h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.about-section p, .contact-section p { margin: 0; color: #667b95; line-height: 1.6; }
.contact-section { padding: 25px; margin-bottom: 34px; background:white; border:1px solid var(--line); border-radius:15px; }
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.72); }
.footer__inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__note { display: flex; align-items: center; gap: 12px; color: #6c8099; font-size: 12px; }
.footer__note span { width: 20px; height:20px; border-radius:50%; display:grid; place-items:center; background:#e9f3ff; color:#1474ef; font-weight:900; }
.footer__note p { margin:0; }
.signature { color:#6c8099; font-size:13px; }.signature strong { color:#263d59; }
.loading, .error { min-height: 180px; display:grid; place-items:center; color:#70839b; }
.error { color:#a13c47; }

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 22px; padding-block: 34px; }
  .hero__facts { max-width: 900px; }
  .cards--platform { grid-template-columns: 1fr; }
  .cards--process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards--tool { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .topbar__inner { grid-template-columns: 1fr auto; height: 62px; }
  .nav { display:none; }
  .env-pill { font-size: 11px; padding:7px 10px; }
  .hero__facts { grid-template-columns: 1fr; padding: 8px 15px; }
  .fact { padding: 12px 4px; }
  .fact + .fact { border-left:0; border-top:1px solid var(--line); }
  .cards--process, .cards--tool { grid-template-columns: 1fr; }
  .card--platform { grid-template-columns: 1fr; }
  .card--platform .card__preview { min-height: 160px; border-right:0; border-bottom:1px solid var(--line); }
  .card--tool { grid-template-columns: 1fr 105px; }
  .about-section { grid-template-columns:1fr; gap:18px; }
  .footer__inner { align-items:flex-start; padding-block:16px; }
}
