:root {
  --ink: #071b35;
  --ink-2: #0d2847;
  --green: #2f7b63;
  --green-2: #47b48e;
  --line: #d9e0e6;
  --mist: #f5f7f9;
  --paper: #ffffff;
  --text: #172235;
  --muted: #687386;
  --gold: #b89455;
  --red: #a94f4f;
  --shadow: 0 24px 70px rgba(7, 27, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(3, 16, 32, 0.58);
  content: "";
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(7, 27, 53, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, 92%);
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 76px;
  color: var(--ink);
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(47, 123, 99, 0.24);
}

.brand span {
  display: block;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 10px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  min-height: 42px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--green));
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(47, 123, 99, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 27, 53, 0.1);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

.main-nav a {
  padding: 9px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
  background: rgba(47, 123, 99, 0.08);
}

.ticker-strip {
  position: relative;
  z-index: 30;
  margin-top: 86px;
  margin-bottom: -1px;
  height: 44px;
  background: #0b1728;
  box-shadow: 0 12px 30px rgba(7, 27, 53, 0.18);
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.ticker-strip .tradingview-widget-container {
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.ticker-strip iframe {
  display: block;
  width: 100%;
  height: 44px !important;
  margin: 0;
}

.ticker-strip .tradingview-widget-copyright {
  display: none;
}

.ticker-strip + main {
  margin-top: -1px;
}

.ticker-strip + main > .hero:first-child .hero-content {
  padding-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(47, 123, 99, 0.26);
  transition: 0.25s ease;
}

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

.btn.secondary {
  border-color: rgba(7, 27, 53, 0.12);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero .btn.secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--paper);
}

.hero .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.green {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.hero {
  position: relative;
  min-height: calc(100vh - 130px);
  display: grid;
  align-items: start;
  padding-top: 0;
  color: var(--paper);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(71, 180, 142, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(7, 27, 53, 0.98), rgba(3, 16, 32, 0.96) 72%);
}

main > .hero:first-child {
  margin-top: 0;
}

.hero::after {
  position: absolute;
  right: -230px;
  top: 130px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero.market-hero {
  min-height: 540px;
}

.hero-inner,
.section-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.home-hero .hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.widget-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  padding: 78px 0 86px;
}

.hero-visual {
  display: block;
}

.hero-widget {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.economic-widget,
.technical-widget {
  max-width: 460px;
  justify-self: end;
}

.forex-calendar-widget {
  width: 400px;
  max-width: 100%;
}

.forex-calendar-widget .tradingview-widget-container {
  width: 400px;
  max-width: 100%;
}

.hero-widget .tradingview-widget-container {
  width: 100%;
}

.hero-widget .tradingview-widget-copyright {
  padding: 8px 12px 12px;
  color: #aeb8c7;
  font-size: 12px;
  text-align: center;
}

.hero-widget .tradingview-widget-copyright a {
  color: #cfe9df;
}

.crypto-widget {
  width: 100%;
  height: 470px;
}

.preview-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  animation: float 5s ease-in-out infinite;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  border-radius: 26px 26px 0 0;
}

.preview-top strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.preview-top span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.preview-top b {
  color: var(--green);
}

.preview-card {
  color: var(--text);
}

.preview-card::before {
  display: block;
  width: 100%;
  height: 0;
  content: "";
}

.preview-card > * {
  position: relative;
  z-index: 1;
}

.preview-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(47, 123, 99, 0.2), rgba(7, 27, 53, 0.14));
}

.preview-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
}

.preview-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  opacity: 0.9;
}

.preview-bars span:nth-child(2n) {
  background: linear-gradient(180deg, #14375d, var(--ink));
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(47, 123, 99, 0.16);
  border-radius: 999px;
  background: rgba(47, 123, 99, 0.08);
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #cfe9df;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 900px;
  margin-top: 24px;
  color: var(--paper);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 680px;
  margin-top: 24px;
  color: #c6d0dc;
  font-size: 18px;
}

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

.market-tape {
  position: relative;
  z-index: 3;
  width: min(1180px, 92%);
  margin: -35px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ticker {
  min-height: 112px;
  padding: 26px;
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.ticker strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.ticker span {
  color: var(--muted);
  font-weight: 700;
}

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

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

section {
  padding: 92px 0;
}

.band {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 60px;
  align-items: center;
}

.section-copy {
  max-width: 720px;
}

.section-copy p {
  margin-top: 18px;
  font-size: 17px;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

.tile {
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 28px;
  background: var(--mist);
  padding: 32px;
  transition: 0.25s ease;
}

.tile:hover {
  transform: translateY(-8px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tile.dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--paper);
}

.tile.dark h3 {
  color: var(--paper);
}

.tile.dark p,
.tile.dark li {
  color: #c6d0dc;
}

.tile .icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ink), var(--green));
  color: var(--paper);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0;
}

.tile p {
  margin-top: 12px;
}

.tile ul,
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tile li,
.check-list li {
  position: relative;
  margin-top: 12px;
  padding-left: 28px;
  color: var(--muted);
}

.tile li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green-2);
  content: "✓";
  font-weight: 900;
}

.terminal.dark {
  background: var(--ink);
  color: var(--paper);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

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

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-2);
}

.chart {
  min-height: 340px;
  margin: 0 24px 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  border-radius: 26px;
  background: var(--paper);
  color: var(--text);
}

.price-axis {
  display: grid;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-area {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 27, 53, 0.07) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(7, 27, 53, 0.07) 1px, transparent 1px) 0 0 / 20% 100%,
    #f8fbfb;
}

.trend-line {
  position: absolute;
  inset: 15% 7% 18% 2%;
  clip-path: polygon(0 74%, 14% 58%, 27% 66%, 42% 35%, 58% 45%, 74% 22%, 100% 7%, 100% 12%, 74% 27%, 58% 50%, 42% 40%, 27% 71%, 14% 63%, 0 79%);
  background: linear-gradient(90deg, var(--green-2), var(--green));
}

.candles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: 30px 18px;
}

.candle {
  width: 12px;
  height: var(--h);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
}

.candle:nth-child(2n) {
  background: linear-gradient(180deg, #14375d, var(--ink));
}

.candle:nth-child(3n) {
  background: linear-gradient(180deg, #d98686, var(--red));
}

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

.stat {
  padding: 26px;
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.asset-table {
  overflow: hidden;
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.asset-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(7, 27, 53, 0.08);
  align-items: center;
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row.header {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--paper);
  font-weight: 800;
}

.asset-row span {
  color: var(--muted);
}

.asset-row.header span {
  color: var(--paper);
}

.account-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.account-card:nth-child(2) {
  background: linear-gradient(135deg, var(--ink), var(--green));
  color: var(--paper);
  transform: scale(1.03);
}

.account-card:nth-child(2) h3,
.account-card:nth-child(2) .account-price {
  color: var(--paper);
}

.account-card:nth-child(2) p,
.account-card:nth-child(2) li,
.account-card:nth-child(2) small {
  color: #d7e5e1;
}

.account-price {
  margin-top: 18px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.account-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.account-card .btn {
  margin-top: auto;
}

.platform-screen {
  overflow: hidden;
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.platform-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(7, 27, 53, 0.08);
}

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

.watchlist {
  border-right: 1px solid rgba(7, 27, 53, 0.08);
  background: var(--mist);
}

.watchlist div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(7, 27, 53, 0.08);
  font-size: 14px;
}

.platform-chart {
  padding: 20px;
}

.platform-chart .chart-area {
  min-height: 278px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 20% 100%,
    #10263b;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 108px;
  border: 1px solid rgba(7, 27, 53, 0.06);
  border-radius: 24px;
  background: var(--mist);
  padding: 20px;
}

.toc a {
  display: block;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.toc a:hover {
  color: var(--green);
}

.article {
  max-width: 820px;
}

.article-callout {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(7, 27, 53, 0.08);
  border-radius: 24px;
  background: var(--mist);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.article-card {
  padding: 22px;
  border: 1px solid rgba(7, 27, 53, 0.08);
  border-radius: 22px;
  background: var(--paper);
}

.article-card h3 {
  font-size: 20px;
}

.article h2 {
  margin-top: 44px;
  font-size: 34px;
}

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

.article p,
.article li {
  color: #516170;
  font-size: 17px;
}

.article p {
  margin-top: 16px;
}

.article ul,
.article ol {
  margin: 16px 0 0;
  padding-left: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 27, 53, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.risk {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #031020;
  color: #aeb8c7;
  font-size: 14px;
}

.risk .section-inner {
  padding: 28px 0;
}

.risk strong {
  color: var(--paper);
}

.site-footer {
  background: #031020;
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 58px 0;
}

.footer-grid p,
.footer-grid a {
  color: #aeb8c7;
}

.footer-grid a {
  display: block;
  margin-top: 9px;
}

.footer-grid h3 {
  color: var(--paper);
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 72px;
  margin-bottom: 18px;
  background: var(--paper);
  border-radius: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  color: #aeb8c7;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .nav-shell {
    height: 82px;
  }

  .brand {
    min-width: 70px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .nav-toggle {
    display: inline-block;
    order: 3;
    position: relative;
    z-index: 420;
  }

  .login-btn {
    order: 2;
    margin-left: auto;
    position: relative;
    z-index: 320;
  }

  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 400;
    width: min(380px, 86vw);
    height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
    padding: 106px 22px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 28px 28px 0;
    background:
      radial-gradient(circle at 18% 8%, rgba(71, 180, 142, 0.2), transparent 32%),
      linear-gradient(160deg, #071b35, #031020 82%);
    box-shadow: 28px 0 70px rgba(3, 16, 32, 0.36);
    color: var(--paper);
    transform: translateX(-110%);
    transition: transform 0.28s ease;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav::before {
    display: block;
    margin: 0 0 16px;
    color: var(--paper);
    content: "Menu";
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #dbe7ec;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--paper);
    background: rgba(71, 180, 142, 0.22);
  }

  .hero {
    min-height: auto;
    background:
      radial-gradient(circle at 82% 20%, rgba(71, 180, 142, 0.2), transparent 32%),
      linear-gradient(135deg, rgba(7, 27, 53, 0.98), rgba(3, 16, 32, 0.96));
  }

  .hero-content {
    padding: 52px 0 32px;
  }

  .ticker-strip + main > .hero:first-child .hero-content {
    padding-top: 30px;
  }

  .home-hero .hero-inner,
  .widget-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-widget {
    margin-bottom: 60px;
    justify-self: stretch;
  }

  .economic-widget,
  .technical-widget {
    max-width: none;
  }

  .forex-calendar-widget,
  .forex-calendar-widget .tradingview-widget-container {
    width: min(400px, 100%);
  }

  .market-tape,
  .grid-3,
  .grid-4,
  .stats-row,
  .split,
  .contact-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .account-card:nth-child(2) {
    transform: none;
  }

  .toc {
    position: static;
  }

  .platform-body {
    grid-template-columns: 1fr;
  }

  .watchlist {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .hero-inner,
  .section-inner,
  .market-tape {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .nav-shell {
    width: min(100% - 24px, 1180px);
    height: 78px;
    gap: 10px;
  }

  .login-btn {
    min-height: 38px;
    padding: 9px 15px;
    font-size: 13px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    width: min(330px, 88vw);
    grid-template-columns: 1fr;
    padding: 96px 18px 24px;
    max-height: none;
    overflow-y: auto;
  }

  .main-nav.open {
    grid-template-columns: 1fr;
  }

  .ticker-strip {
    margin-top: 78px;
    height: 42px;
  }

  .ticker-strip .tradingview-widget-container {
    height: 42px;
    min-height: 42px;
  }

  .ticker-strip iframe {
    height: 42px !important;
  }

  section {
    padding: 66px 0;
  }

  .hero,
  .hero.market-hero {
    min-height: auto;
  }

  .hero-content {
    padding: 18px 0 26px;
  }

  .ticker-strip + main > .hero:first-child .hero-content {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -0.03em;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-widget {
    border-radius: 22px;
    margin-bottom: 44px;
  }

  .crypto-widget {
    height: 390px;
  }

  .asset-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .chart {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .price-axis {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

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

  .article h2 {
    font-size: 29px;
  }

  .article p,
  .article li {
    font-size: 16px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  opacity: 0.8;
  font-size: 13px;
}

.site-footer .footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--green);
}

.news-card .read-more {
  margin-top: auto;
  padding-top: 15px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.mt5-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.dark-tile {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-tile h3 {
  color: var(--paper);
}

.dark-tile p {
  color: #c6d0dc;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 27, 53, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--paper);
  padding: 40px;
  border-radius: 34px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
  color: var(--ink);
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 25px;
}

.modal-content .btn {
  display: inline-block;
  min-width: 160px;
}

