:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --line: #dde4ef;
  --text: #10182b;
  --muted: #5e6b86;
  --blue: #2962ff;
  --green: #0a966e;
  --red: #d14552;
  --shadow: 0 16px 36px rgba(16, 24, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 0%, #ffffff, #f2f6fc 45%, #eef3fa);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(7px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
}

.logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(145deg, #091225, #2962ff);
}

.nav-links {
  margin-left: 22px;
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.link-btn,
.solid-btn,
.ghost-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  padding: 11px 16px;
  font-size: 15px;
  transition: transform 0.18s ease;
}

.link-btn {
  color: #2046b8;
}

.solid-btn {
  color: #fff;
  background: var(--blue);
  border-color: #2f67ff;
  box-shadow: 0 9px 20px rgba(41, 98, 255, 0.25);
}

.ghost-btn {
  color: #2046b8;
  background: #f4f8ff;
  border-color: #cad8ff;
}

.link-btn:hover,
.solid-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hero-section,
.workspace-grid,
.workspace-lists,
.features,
.dual-panels,
.auth-grid,
.hero-cta {
  display: grid;
  gap: 12px;
}

.hero-section {
  grid-template-columns: 1fr 1.2fr;
  margin-top: 22px;
}

.hero-copy,
.hero-chart-card,
.ticker-card,
.features article,
.panel,
.cta,
.app-intro,
.phone-ui,
.auth-card,
.help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-copy,
.panel,
.features article,
.cta,
.auth-card,
.help-card {
  padding: 20px;
}

.badge {
  margin: 0;
  display: inline-flex;
  background: #eaf1ff;
  color: #1d43b5;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.98;
}

.hero-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-cta {
  grid-auto-flow: column;
  justify-content: start;
  margin-top: 14px;
}

.tiny-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-chart-card {
  padding: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 16px;
}

#heroChart,
#workspaceChart,
#appChart {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}

.section-head {
  margin: 18px 0 10px;
}

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

.ticker-card {
  padding: 12px;
}

.ticker-card h3 {
  font-size: 14px;
}

.price {
  margin: 7px 0 5px;
  font-size: 23px;
  font-weight: 800;
}

.up {
  color: var(--green);
  font-weight: 800;
}

.down {
  color: var(--red);
  font-weight: 800;
}

.features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.features p,
.panel p,
.cta p,
.auth-card p,
.help-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-top: 8px;
}

.dual-panels {
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 14px;
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 16px;
}

.panel li a {
  color: #1f48bf;
  text-decoration: none;
  font-weight: 700;
}

.cta {
  margin-top: 14px;
  text-align: center;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
}

.auth-main {
  min-height: 90vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(980px, 100%);
}

.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.stack-form {
  display: grid;
  gap: 8px;
}

.stack-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

input,
select {
  padding: 10px;
  border: 1px solid #cfd9e9;
  border-radius: 9px;
  font-size: 15px;
}

.code-box {
  border: 1px solid #d6dfec;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
  overflow: auto;
  min-height: 100px;
}

.workspace-main {
  margin-top: 16px;
}

.workspace-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.symbol-select {
  max-width: 180px;
}

.workspace-lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.app-body {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  place-items: center;
}

.app-wrap {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 14px;
}

.app-intro {
  padding: 24px;
}

.phone-shell {
  width: 370px;
  border-radius: 34px;
  background: #101727;
  padding: 10px;
}

.phone-top {
  width: 132px;
  height: 16px;
  border-radius: 99px;
  background: #080d17;
  margin: 3px auto 10px;
}

.phone-ui {
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f2f6fc);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header small {
  color: var(--muted);
}

.app-header h3 {
  margin-top: 4px;
  font-size: 30px;
}

.mini-chips {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.chip-btn {
  border: 1px solid #d5dff0;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: #536481;
  padding: 9px;
}

.chip-btn.active {
  color: #1d47bf;
  background: #edf3ff;
  border-color: #92b4ff;
}

.mobile-tab {
  display: none;
}

.mobile-tab.active {
  display: block;
}

.symbol-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.watch-item,
.idea-item {
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  margin-bottom: 6px;
}

.watch-item {
  display: flex;
  justify-content: space-between;
}

.mobile-nav {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.mobile-nav button {
  border: 1px solid #d5e0f1;
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 800;
  color: #506481;
}

.mobile-nav .active {
  color: #1e48bf;
  background: #edf3ff;
  border-color: #95b7ff;
}

.reveal {
  animation: rise 0.55s ease;
}

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

@media (max-width: 1080px) {
  .hero-section,
  .workspace-grid,
  .app-wrap {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions {
    margin-left: 0;
  }

  .hero-cta {
    grid-auto-flow: row;
  }

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

  .features,
  .dual-panels,
  .auth-grid,
  .workspace-lists {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    gap: 4px;
  }

  .phone-shell {
    width: min(370px, 100%);
  }
}
