:root {
  color-scheme: dark;
  --bg: #02090e;
  --panel: rgba(5, 19, 27, 0.82);
  --panel-strong: #071721;
  --line: rgba(44, 193, 234, 0.2);
  --line-bright: rgba(44, 193, 234, 0.46);
  --cyan: #10c8f4;
  --cyan-soft: #86dcf3;
  --text: #f3f8fa;
  --muted: #83a2b1;
  --green: #45d18a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(2, 9, 14, 0.95), rgba(2, 9, 14, 0.98)),
    radial-gradient(circle at 80% 14%, #053344 0, transparent 38%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 199, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 199, 235, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: -250px;
  right: -180px;
  background: #00c8ff;
}

.ambient-two {
  bottom: -330px;
  left: -250px;
  background: #006ea8;
}

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid rgba(116, 176, 198, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 154px;
  height: auto;
  display: block;
}

.brand span {
  padding-left: 18px;
  border-left: 1px solid rgba(134, 220, 243, 0.24);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.header-access {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cde9f1;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.header-links,
.access-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aitrade-access {
  border-color: rgba(245, 167, 66, 0.34);
  color: #ffd89b;
}

.header-access:hover {
  transform: translateY(-1px);
  border-color: var(--line-bright);
  background: rgba(16, 200, 244, 0.06);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 209, 138, 0.09), 0 0 14px rgba(69, 209, 138, 0.7);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  gap: 70px;
  align-items: center;
  min-height: 700px;
  padding: 90px 0 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--cyan-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow-line {
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 680px;
  margin: 24px 0 28px;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.062em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, #f4fbfd 5%, #7eddf5 52%, #11c8f5 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 610px;
  margin: 0;
  color: #9ab5c1;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #19d0f8, #11aef2);
  color: #001017;
  box-shadow: 0 14px 34px rgba(0, 183, 238, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 45px rgba(0, 183, 238, 0.27);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(7, 23, 33, 0.64);
  color: #d9edf3;
}

.button-aitrade {
  border-color: rgba(245, 167, 66, 0.42);
  background: linear-gradient(135deg, rgba(245, 167, 66, 0.18), rgba(244, 106, 78, 0.1));
  color: #ffe2b3;
}

.button-aitrade:hover {
  border-color: rgba(245, 167, 66, 0.72);
  box-shadow: 0 18px 45px rgba(245, 133, 66, 0.12);
}

.button-secondary:hover {
  border-color: var(--line-bright);
}

.access-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  color: #617f8c;
  font-size: 12px;
}

.access-note span {
  color: var(--cyan);
  font-size: 7px;
}

.system-preview {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(10, 32, 43, 0.95), rgba(3, 14, 21, 0.96)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.system-preview::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(4, 176, 225, 0.09);
  content: "";
}

.preview-topbar,
.preview-label,
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-topbar {
  padding: 7px 5px 18px;
}

.preview-topbar p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.preview-topbar > div > span {
  color: #6d8d9a;
  font-size: 11px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(69, 209, 138, 0.2);
  border-radius: 999px;
  background: rgba(69, 209, 138, 0.07);
  color: #7ce4aa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.preview-market,
.preview-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(57, 165, 201, 0.18);
  background: rgba(2, 11, 17, 0.66);
}

.preview-market {
  padding: 20px 20px 0;
  border-radius: 16px;
}

.preview-label {
  color: #6e9aae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.market-row {
  margin-top: 22px;
}

.market-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-row strong {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.market-row span,
.market-signal small {
  color: #6f95a5;
  font-size: 10px;
}

.market-signal {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.signal-bars {
  display: flex;
  height: 25px;
  align-items: flex-end;
  gap: 3px;
}

.signal-bars i {
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
}

.signal-bars i:nth-child(1) { height: 25%; }
.signal-bars i:nth-child(2) { height: 58%; }
.signal-bars i:nth-child(3) { height: 40%; }
.signal-bars i:nth-child(4) { height: 85%; }
.signal-bars i:nth-child(5) { height: 65%; }

.market-line {
  display: block;
  width: 100%;
  margin-top: 11px;
  overflow: visible;
}

.line-area {
  fill: url("#line-fill");
}

.line-stroke {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.preview-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 17px;
  border-radius: 14px;
}

.card-icon {
  grid-row: span 3;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(16, 200, 244, 0.25);
  border-radius: 9px;
  background: rgba(16, 200, 244, 0.08);
  color: var(--cyan);
}

.preview-card > span {
  color: #5d899a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.preview-card strong {
  margin-top: 4px;
  font-size: 13px;
}

.preview-card small {
  margin-top: 5px;
  color: #65818c;
  font-size: 9px;
}

.capabilities {
  padding: 100px 0 110px;
  border-top: 1px solid rgba(116, 176, 198, 0.13);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading h2,
.access-panel h2 {
  margin: 17px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability-grid article {
  position: relative;
  min-height: 285px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 19, 27, 0.6);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.capability-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  background: rgba(7, 26, 37, 0.78);
}

.feature-number {
  position: absolute;
  top: 26px;
  right: 27px;
  color: #3a6373;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(16, 200, 244, 0.24);
  border-radius: 12px;
  background: rgba(16, 200, 244, 0.07);
  color: var(--cyan);
  font-size: 18px;
}

.capability-grid h3 {
  margin: 38px 0 13px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.capability-grid p {
  margin: 0;
  color: #7895a2;
  font-size: 14px;
  line-height: 1.75;
}

.access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 110px;
  padding: 50px;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 50%, rgba(17, 193, 241, 0.1), transparent 36%),
    linear-gradient(130deg, rgba(7, 27, 38, 0.94), rgba(3, 14, 21, 0.95));
}

.access-panel h2 {
  font-size: clamp(30px, 3vw, 43px);
}

.access-panel > div > p:last-child {
  margin: 14px 0 0;
  color: #7f9daa;
  font-size: 14px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  border-top: 1px solid rgba(116, 176, 198, 0.13);
  color: #587583;
  font-size: 11px;
}

footer > p:last-child {
  text-align: right;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b6d0da;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.footer-brand img {
  width: 27px;
  height: 27px;
  border-radius: 7px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 75px;
  }

  .system-preview {
    max-width: 700px;
  }

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

  .capability-grid article {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 125px;
  }

  .brand span,
  .header-access .status-dot {
    display: none;
  }

  .header-access {
    padding: 10px 12px;
    font-size: 11px;
  }

  .header-links {
    gap: 6px;
  }

  .header-access > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 80px;
  }

  h1 {
    margin-top: 19px;
    font-size: clamp(49px, 15vw, 68px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .system-preview {
    padding: 11px;
    border-radius: 17px;
  }

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

  .market-line {
    min-height: 95px;
  }

  .capabilities {
    padding: 76px 0 80px;
  }

  .access-panel {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 75px;
    padding: 30px 24px;
  }

  .access-actions {
    width: 100%;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  footer > p:first-of-type {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
