:root {
  --bg: #050706;
  --panel: #0d1210;
  --panel-soft: #111815;
  --text: #f6f9f6;
  --muted: #aeb9b2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #00d084;
  --accent-strong: #16f0a3;
  --gold: #f1c76a;
  --white: #ffffff;
  --dark-text: #111815;
  --radius: 8px;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

* {
  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);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: rgba(5, 7, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.auth-brand,
.mobile-brand {
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span,
.auth-brand span,
.mobile-brand span {
  color: var(--accent-strong);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.auth-links a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.auth-links a:hover {
  color: var(--accent-strong);
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid rgba(0, 208, 132, 0.45);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 6vw, 84px) 44px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 6, 0.96) 0%, rgba(5, 7, 6, 0.78) 40%, rgba(5, 7, 6, 0.30) 100%),
    linear-gradient(0deg, rgba(5, 7, 6, 0.95) 0%, rgba(5, 7, 6, 0.18) 44%),
    url("assets/trading-workspace.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  width: 100%;
  max-width: 650px;
  color: #d9e1dc;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.cta-band {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: var(--dark-text);
  background: linear-gradient(135deg, var(--accent-strong), var(--gold));
  box-shadow: 0 16px 36px rgba(0, 208, 132, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 980px;
  margin-top: clamp(48px, 9vw, 110px);
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-height: 118px;
  padding: 24px;
  background: rgba(13, 18, 16, 0.82);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.35rem;
}

.hero-stats span {
  color: var(--muted);
}

.section {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 6vw, 84px);
}

.section-light {
  color: var(--dark-text);
  background: #f5f7f3;
}

.section-head {
  width: 100%;
  max-width: 790px;
  min-width: 0;
  margin-bottom: 38px;
}

.section-head p:not(.eyebrow),
.split-copy p,
.feature-card p,
.steps p,
.faq p {
  color: #56615a;
}

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

.feature-card {
  min-width: 0;
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(17, 24, 21, 0.11);
  border-radius: var(--radius);
  background: var(--white);
}

.card-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  background:
    radial-gradient(circle at 90% 30%, rgba(0, 208, 132, 0.14), transparent 32%),
    var(--bg);
}

.split-copy {
  width: 100%;
  max-width: 660px;
  min-width: 0;
}

.split-copy p {
  color: #cbd4cf;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #edf4ef;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--accent-strong);
}

.dashboard-preview {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.preview-top,
.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.preview-top span,
.preview-row span {
  color: var(--muted);
}

.preview-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 230px;
  margin: 20px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.preview-chart span {
  display: block;
  min-height: 52px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-strong), rgba(0, 208, 132, 0.25));
}

.preview-chart span:nth-child(2) {
  min-height: 120px;
}

.preview-chart span:nth-child(3) {
  min-height: 84px;
}

.preview-chart span:nth-child(4) {
  min-height: 170px;
  background: linear-gradient(180deg, var(--gold), rgba(241, 199, 106, 0.18));
}

.preview-chart span:nth-child(5) {
  min-height: 142px;
}

.preview-chart span:nth-child(6) {
  min-height: 204px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 21, 0.11);
  background: var(--white);
}

.steps span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--dark-text);
  background: var(--gold);
  font-weight: 900;
}

.cta-band {
  justify-content: space-between;
  padding: clamp(48px, 6vw, 78px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(0, 208, 132, 0.16), rgba(241, 199, 106, 0.16)),
    var(--panel);
}

.cta-band h2 {
  width: 100%;
  max-width: 850px;
  margin-bottom: 0;
}

.faq {
  background: #eef2ed;
  color: var(--dark-text);
}

.faq details {
  width: 100%;
  max-width: 920px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(17, 24, 21, 0.14);
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.08rem;
}

.faq p {
  max-width: 720px;
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #030403;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.login-page {
  min-height: 100vh;
  background: var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background-image:
    linear-gradient(0deg, rgba(5, 7, 6, 0.90), rgba(5, 7, 6, 0.25)),
    url("assets/trading-workspace.png");
  background-position: center;
  background-size: cover;
  min-width: 0;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--line);
  pointer-events: none;
}

.auth-brand,
.auth-caption {
  position: relative;
  z-index: 1;
}

.auth-caption {
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.auth-caption h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.98;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 6vw, 84px);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 208, 132, 0.10), transparent 36%),
    #f5f7f3;
  color: var(--dark-text);
  min-width: 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}

.mobile-brand {
  display: none;
  margin-bottom: 34px;
}

.auth-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-intro {
  margin-bottom: 30px;
  color: #56615a;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(17, 24, 21, 0.16);
  border-radius: var(--radius);
  color: var(--dark-text);
  background: var(--white);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.16);
}

.login-form button {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: #314239;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 190px;
  }

  .hero-stats,
  .steps,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 42vh;
  }

  .auth-brand {
    display: none;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .auth-caption h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .hero,
  .auth-visual,
  .auth-panel {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-content,
  .hero-subtitle,
  .hero-actions,
  .auth-caption,
  .auth-card {
    width: 100%;
    max-width: 360px;
  }

  .hero-actions .btn,
  .login-form,
  .login-form input {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions,
  .cta-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .header-cta {
    display: inline-flex;
    flex: 1 1 100%;
    justify-content: center;
    width: auto;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .auth-caption h1,
  .auth-card h2 {
    font-size: 2.05rem;
  }

  .auth-caption h1 {
    font-size: 1.95rem;
  }

  .auth-panel {
    align-items: flex-start;
    justify-content: flex-start;
  }

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

  .feature-card {
    min-height: auto;
  }

  .dashboard-preview {
    padding: 18px;
  }
}
