:root {
  --bg: #f5f5f7;
  --surface: rgba(255,255,255,0.88);
  --surface-solid: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(210,210,215,0.85);
  --blue: #0071e3;
  --blue-hover: #005ec3;
  --green: #34c759;
  --orange: #ff9f0a;
  --red: #ff453a;
  --purple: #7c4dff;
  --shadow: 0 18px 60px rgba(0,0,0,0.08);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(0,113,227,0.08), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(124,77,255,0.06), transparent 18%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,245,247,0.76);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(210,210,215,0.7);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a84ff, #7c4dff 55%, #34c759);
  box-shadow: 0 8px 24px rgba(0,113,227,0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
}

.hero {
  padding: 96px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero-center {
  text-align: center;
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.35rem; }

p { margin-top: 0; }

.lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-center .lead,
.center-text .lead,
.center-text .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-hover);
}

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

.button.secondary:hover {
  background: rgba(0,0,0,0.08);
}

.panel,
.card,
.price-card,
.legal-card,
.support-card,
.app-shell,
.cta-block {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel {
  border-radius: var(--radius-xl);
}

.card,
.price-card,
.legal-card,
.support-card,
.app-shell,
.cta-block {
  border-radius: var(--radius-lg);
}

.hero-visual {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0,113,227,0.12);
  filter: blur(16px);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -6% -10% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(124,77,255,0.12);
  filter: blur(18px);
}

.app-shell {
  position: relative;
  overflow: hidden;
  min-height: 490px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,252,0.92));
}

.app-shell.trade::before,
.app-shell.study::before,
.app-shell.momentum::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.app-shell.trade::before {
  background:
    radial-gradient(circle at 20% 25%, rgba(52,199,89,0.18), transparent 20%),
    radial-gradient(circle at 80% 75%, rgba(255,69,58,0.14), transparent 22%);
}

.app-shell.study::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(0,113,227,0.18), transparent 20%),
    radial-gradient(circle at 84% 80%, rgba(124,77,255,0.14), transparent 22%);
}

.app-shell.momentum::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(255,159,10,0.16), transparent 20%),
    radial-gradient(circle at 82% 76%, rgba(52,199,89,0.15), transparent 22%);
}

.shell-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(210,210,215,0.7);
}

.shell-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d7;
}

.shell-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 440px;
}

.shell-sidebar {
  border-right: 1px solid rgba(210,210,215,0.65);
  padding: 20px;
  background: rgba(251,251,253,0.92);
}

.shell-line,
.shell-pill,
.shell-box,
.shell-chart,
.shell-bar,
.shell-ring,
.shell-score {
  background: #ececf1;
  border-radius: 14px;
}

.shell-pill {
  height: 18px;
  margin-bottom: 14px;
}

.shell-pill.large {
  height: 24px;
  width: 72%;
}

.shell-line {
  height: 14px;
  margin-bottom: 12px;
}

.shell-line.short { width: 56%; }
.shell-line.medium { width: 76%; }

.shell-box {
  min-height: 110px;
}

.shell-main {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.shell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.shell-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.shell-chart {
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.shell-chart::after {
  content: "";
  position: absolute;
  inset: auto 12% 18% 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,113,227,0.45), rgba(124,77,255,0.5), transparent);
  transform: skewY(-6deg);
}

.shell-bar { height: 16px; }
.shell-bar.green { background: rgba(52,199,89,0.38); }
.shell-bar.red { background: rgba(255,69,58,0.34); }
.shell-bar.blue { background: rgba(0,113,227,0.34); }
.shell-bar.orange { background: rgba(255,159,10,0.34); }

.shell-stack {
  display: grid;
  gap: 12px;
}

.shell-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(rgba(52,199,89,0.7), rgba(52,199,89,0.22) 68%, #ececf1 0);
}

.shell-score {
  min-height: 120px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.05em;
}

.float-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 180px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(210,210,215,0.7);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.float-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.float-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.section {
  padding: 94px 0;
}

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

.section-intro {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 60ch;
}

.center-text {
  text-align: center;
}

.grid-2,
.pricing-grid,
.app-grid,
.support-grid {
  display: grid;
  gap: 22px;
}

.app-grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2,
.pricing-grid,
.support-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.price-card,
.support-card {
  padding: 28px;
}

.card p,
.price-card p,
.support-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 12px 0 6px;
}

.subtle {
  color: var(--muted);
}

.price-list,
.legal-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.price-list li,
.legal-list li {
  margin-bottom: 10px;
}

.app-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat-pill {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: var(--text);
  font-size: 0.95rem;
}

.legal-wrap,
.support-wrap {
  padding: 88px 0 56px;
}

.legal-card,
.cta-block {
  padding: 34px;
}

.legal-card h2 {
  font-size: 1.3rem;
  margin: 26px 0 10px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.support-card h3,
.card h3 {
  margin-bottom: 10px;
}

.support-email {
  color: var(--blue);
  font-weight: 600;
}

.footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(210,210,215,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(210,210,215,0.7);
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

.fade-up.delay-1 { animation-delay: 0.08s; }
.fade-up.delay-2 { animation-delay: 0.16s; }
.fade-up.delay-3 { animation-delay: 0.24s; }

.float-gentle {
  animation: floatGentle 5.4s ease-in-out infinite;
}

.float-gentle.delay {
  animation-delay: 0.9s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

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

  .fade-up,
  .float-gentle,
  .float-gentle.delay {
    animation: none !important;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-2,
  .app-grid,
  .pricing-grid,
  .support-grid,
  .footer-grid,
  .shell-grid.three,
  .shell-body {
    grid-template-columns: 1fr;
  }

  .shell-sidebar {
    display: none;
  }

  .shell-body {
    min-height: unset;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    padding-top: 74px;
  }

  .section {
    padding: 72px 0;
  }

  .button {
    width: 100%;
  }

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

  .card,
  .price-card,
  .legal-card,
  .support-card,
  .cta-block,
  .hero-visual {
    padding: 22px;
  }

  .float-card {
    position: static;
    width: auto;
    margin-top: 16px;
  }
}

.site-icon,
.brand-image {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-block;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.title-with-icon h3 {
  margin: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

.hero-app-heading {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-app-heading .eyebrow {
  margin: 0;
}

.hero-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

@media (max-width: 720px) {
  .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .site-icon,
  .brand-image {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}