:root {
  --paper: #f4f6f8;
  --ink: #0c1216;
  --muted: #55606d;
  --navy: #0d1b2a;
  --navy-deep: #0b1520;
  --gold: #c7a13a;
  --gold-light: #ead9a3;
  --gold-deep: #8f6a1d;
  --slate: #1f2630;
  --cream: #fcfbf7;
  --edge: rgba(12, 18, 22, 0.14);
  --edge-light: rgba(199, 161, 58, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: #fffdf6;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-trigger svg {
  width: 10px;
  height: 10px;
}

.dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: 0 20px 38px rgba(13, 27, 42, 0.14);
}

.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-radius: 8px;
}

.dropdown a:hover {
  background: var(--navy);
  color: #ffffff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #1b1406;
  box-shadow: 0 14px 26px rgba(199, 161, 58, 0.28);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-outline {
  border-color: var(--edge-light);
  color: var(--navy);
  background: #ffffff;
}

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

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #ffffff;
  padding: 88px 24px 32px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 15;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid #eeeeea;
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mobile-subnav {
  padding-left: 16px;
  padding-bottom: 10px;
}

.mobile-subnav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero {
  position: relative;
  background: var(--navy);
  color: #ffffff;
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 16px;
  overflow: hidden;
  background-image: url("/assets/Lemarvalencelogodesign.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(62vw, 520px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(199, 161, 58, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(199, 161, 58, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.82), rgba(11, 21, 32, 0.98));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.about-link {
  position: absolute;
  top: 110px;
  right: 6vw;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f6d990;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(199, 161, 58, 0.45);
  background: rgba(12, 18, 22, 0.45);
  backdrop-filter: blur(6px);
}

.about-link:hover {
  border-color: rgba(199, 161, 58, 0.8);
  color: #fff2c7;
}


.hero h1 {
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6d990;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: clamp(1.1rem, 2.2vw, 2.1rem);
  font-weight: 400;
  color: #f6d990;
  margin: 0;
}

.section {
  padding: 72px 0;
}

.section.light {
  background: #ffffff;
}

.section.dark {
  background: var(--navy-deep);
  color: #ffffff;
}

.section-title {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.section.dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--edge);
  min-height: 220px;
  display: grid;
  align-content: end;
  padding: 20px;
  position: relative;
  box-shadow: 0 18px 32px rgba(13, 27, 42, 0.08);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(13, 27, 42, 0.88), rgba(13, 27, 42, 0.4));
  z-index: 0;
}

.card h4, .card p, .card a {
  position: relative;
  z-index: 1;
}

.card h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f6d990;
}

.card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin: 0 0 12px;
}

.card a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f6d990;
}

.disclaimer {
  padding: 20px 0;
  color: #ffffff;
  background: var(--navy-deep);
}

.disclaimer a {
  color: #f6d990;
  text-decoration: underline;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.highlight {
  background: #f7f8fb;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(13, 27, 42, 0.08);
}

.dark-panel {
  background: #111b27;
  border-radius: 18px;
  padding: 28px;
  color: #ffffff;
}

.order-board {
  background: #ffffff;
}

.order-board-panel {
  background: #101724;
  color: #f8f5ef;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(199, 161, 58, 0.2);
  box-shadow: 0 20px 40px rgba(11, 21, 32, 0.25);
}

.order-board-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.order-tab {
  border: 1px solid rgba(248, 245, 239, 0.2);
  background: transparent;
  color: #f8f5ef;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.order-tab.is-active {
  background: #f6d990;
  color: #1b1406;
  border-color: transparent;
}

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

.order-board-col {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px;
}

.order-board-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.65);
  border-bottom: 1px solid rgba(248, 245, 239, 0.08);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.order-board-body {
  display: grid;
  gap: 8px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.order-row.order-bid .order-price {
  color: #6ee7b7;
}

.order-row.order-ask .order-price {
  color: #fca5a5;
}

.order-board-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(248, 245, 239, 0.7);
  margin-top: 14px;
}

.order-depth {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(248, 245, 239, 0.08);
}

.order-depth-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.7);
}

.order-depth-chart {
  height: 180px;
}

.order-board-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.order-board-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.help-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
  margin-top: 20px;
}

.help-index a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--edge);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.06);
}

.help-index a:hover {
  border-color: var(--edge-light);
  box-shadow: 0 16px 30px rgba(13, 27, 42, 0.12);
}

.help-card {
  background: #ffffff;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.06);
}

.help-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-steps {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.guide-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--edge);
}

.step-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.guide-step h4 {
  margin: 0 0 6px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.06);
}

.news-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(199, 161, 58, 0.2);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.news-card h4 {
  margin: 0 0 10px;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  padding: 50px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid #e6e7ea;
}

.chart-canvas {
  width: 100% !important;
  height: 260px !important;
}

.timeframe-btn {
  border: 1px solid var(--edge);
  background: #ffffff;
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.timeframe-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.price-up {
  color: #1f7a4d;
}

.price-down {
  color: #b91c1c;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-button { display: block; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; }
  .btn { width: 100%; text-align: center; }
  .about-link {
    position: static;
    display: inline-flex;
    margin: 16px auto 0;
  }
}
