:root {
  color-scheme: dark;
  --bg: #080b10;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #a9b2c2;
  --line: rgba(255, 255, 255, 0.14);
  --green: #1ee881;
  --red: #ff4762;
  --amber: #ffb238;
  --blue: #4ca9ff;
  --purple: #a35cff;
  --violet: #6c42ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 8%, rgba(76, 169, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 76% 18%, rgba(30, 232, 129, 0.14), transparent 30rem),
    linear-gradient(180deg, #0b0f17 0%, var(--bg) 46%, #07080c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(76, 169, 255, 0.28);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(36px, 6vw, 76px);
}

.hero-copy {
  min-width: 0;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 740px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.hero-text {
  width: 100%;
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.34rem);
  overflow-wrap: break-word;
}

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

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #42d4ff);
  color: #061014;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button:focus-visible {
  outline: 3px solid rgba(76, 169, 255, 0.55);
  outline-offset: 3px;
}

.product-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-phone-card,
.walkthrough-step figure {
  margin: 0;
}

.hero-phone-card {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.hero-phone-card figcaption,
.platform-card figcaption,
.walkthrough-step figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.device-frame,
.step-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.device-frame img,
.step-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame {
  width: min(100%, 310px);
  aspect-ratio: 1206 / 2622;
  border-radius: 28px;
}

.tablet-frame {
  width: min(100%, 520px);
  aspect-ratio: 2064 / 2752;
  border-radius: 24px;
}

.desktop-frame {
  width: min(100%, 680px);
  aspect-ratio: 1960 / 1580;
  border-radius: 14px;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.96), rgba(8, 10, 16, 0.96));
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
  font-size: 0.88rem;
}

.chart-area {
  position: relative;
  min-height: 360px;
  margin: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  background-size: 100% 25%, 16.66% 100%, 100% 100%;
}

.candle {
  position: absolute;
  bottom: 42px;
  width: 18px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 28px rgba(30, 232, 129, 0.18);
}

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 2px;
  height: calc(100% + 58px);
  transform: translateX(-50%);
  background: currentColor;
}

.c1 { left: 11%; height: 84px; color: var(--green); }
.c2 { left: 27%; height: 128px; color: var(--red); background: var(--red); }
.c3 { left: 43%; height: 168px; color: var(--green); }
.c4 { left: 59%; height: 112px; color: var(--green); }
.c5 { left: 75%; height: 148px; color: var(--red); background: var(--red); }

.fib-line,
.current-line {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 1px;
}

.fib-line {
  border-top: 1px solid rgba(76, 169, 255, 0.72);
}

.fib-line span,
.current-line span {
  margin-right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.line-1 { top: 34%; }
.line-2 { top: 58%; border-color: rgba(255, 178, 56, 0.75); }

.current-line {
  top: 46%;
  border-top: 2px dashed rgba(163, 92, 255, 0.86);
  filter: drop-shadow(0 0 16px rgba(163, 92, 255, 0.62));
}

.levels-panel {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.levels-panel div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.levels-panel em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.dot,
.diamond {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }

.diamond {
  border-radius: 3px;
  background: linear-gradient(135deg, #e4c8ff, var(--purple), var(--violet));
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(163, 92, 255, 0.8);
}

.current-row {
  background: rgba(163, 92, 255, 0.13) !important;
}

.section,
.platforms,
.guide,
.contact {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 34px;
}

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

.feature-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid p,
.steps p,
.platform-card p,
.contact p,
footer {
  color: var(--muted);
}

.platforms {
  border-top: 1px solid var(--line);
}

.platform-grid {
  display: grid;
  gap: 18px;
}

.platform-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(420px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.platform-card h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}

.platform-card figure {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.platform-card .tablet-frame,
.platform-card .desktop-frame {
  width: min(100%, 760px);
}

.guide {
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid var(--line);
}

.walkthrough {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
}

.walkthrough-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(360px, 1.24fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.walkthrough-step:nth-child(even) .step-copy {
  order: 2;
}

.walkthrough-step figure {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.step-shot {
  width: min(100%, 560px);
}

.phone-shot {
  width: min(100%, 270px);
  aspect-ratio: 1206 / 2622;
  border-radius: 28px;
}

.tablet-shot {
  width: min(100%, 520px);
  aspect-ratio: 2064 / 2752;
  border-radius: 24px;
}

.desktop-shot {
  width: min(100%, 640px);
  aspect-ratio: 1960 / 1580;
  border-radius: 14px;
}

.step-copy {
  min-width: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 232, 129, 0.2), rgba(76, 169, 255, 0.2));
  color: var(--green);
  font-weight: 900;
}

.step-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.step-copy p {
  color: var(--muted);
}

.step-copy ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.step-copy li {
  position: relative;
  padding-left: 20px;
  color: #d3d9e5;
}

.step-copy li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.formula-box {
  --formula-rgb: 76, 169, 255;
  --formula-color: rgb(var(--formula-rgb));
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(var(--formula-rgb), 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--formula-rgb), 0.15), rgba(var(--formula-rgb), 0.045));
  box-shadow: inset 3px 0 0 rgba(var(--formula-rgb), 0.78);
}

.formula-box[data-tone="data"] {
  --formula-rgb: 76, 169, 255;
}

.formula-box[data-tone="range"] {
  --formula-rgb: 30, 232, 129;
}

.formula-box[data-tone="levels"] {
  --formula-rgb: 66, 212, 255;
}

.formula-box[data-tone="entry"] {
  --formula-rgb: 255, 178, 56;
}

.formula-box[data-tone="status"] {
  --formula-rgb: 163, 92, 255;
}

.formula-box[data-tone="distance"] {
  --formula-rgb: 125, 218, 122;
}

.formula-box[data-tone="profit"] {
  --formula-rgb: 56, 214, 151;
}

.formula-box[data-tone="shares"] {
  --formula-rgb: 247, 143, 56;
}

.formula-box[data-tone="cost"] {
  --formula-rgb: 0, 214, 224;
}

.formula-box[data-tone="risk"] {
  --formula-rgb: 255, 71, 98;
}

.formula-box[data-tone="record"] {
  --formula-rgb: 188, 132, 255;
}

.formula-box strong {
  color: var(--formula-color);
}

.formula-box code {
  display: block;
  white-space: normal;
  color: color-mix(in srgb, var(--formula-color) 86%, white 14%);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.formula-box small {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 232, 129, 0.2), rgba(76, 169, 255, 0.2));
  color: var(--green);
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps p {
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 24px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(163, 92, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(163, 92, 255, 0.18), rgba(76, 169, 255, 0.1));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.contact-card span,
.contact-card small {
  color: var(--muted);
  font-weight: 750;
}

.contact-card strong {
  white-space: nowrap;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .walkthrough-step,
  .platform-card,
  .walkthrough-step:nth-child(even) .step-copy {
    grid-template-columns: 1fr;
    order: initial;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.65rem, 13.5vw, 4rem);
    line-height: 1;
  }

  .hero-text {
    max-width: 320px;
  }

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

  .button {
    width: 100%;
  }

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

  .phone-frame {
    width: min(100%, 240px);
    margin-inline: auto;
  }

  .walkthrough-step {
    padding: 14px;
  }

  .chart-area {
    min-height: 280px;
    margin: 12px;
  }

  .levels-panel {
    padding: 0 12px 12px;
  }

  .steps li {
    grid-template-columns: 1fr;
  }
}
