
/*
=========================================================
DANQVORA
PROFESSIONAL FINANCIAL PLATFORM DESIGN SYSTEM

Homepage + Markets Dashboard
No external fonts or UI frameworks required.
Existing admin, forum and trade pages remain separate.
=========================================================
*/

:root {
  color-scheme: light;

  --paper: #f6f7f5;
  --white: #ffffff;

  --ink: #172223;
  --ink-soft: #475453;
  --muted: #66716f;

  --line: #dce2df;
  --line-strong: #c9d3ce;

  --accent: #1b6758;
  --accent-light: #e9f1ed;

  --deep: #122326;

  --shadow:
    0 12px 34px rgba(19, 37, 35, 0.045);

  --radius: 9px;
  --wrap: 1240px;

  --font:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

/* ============================================
   BASE
============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);

  font:
    400 15px/1.6 var(--font);

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(27, 103, 88, 0.5);
  outline-offset: 3px;
}

.wrap {
  width: min(
    calc(100% - 64px),
    var(--wrap)
  );

  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--white);
  padding: 10px 14px;
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================
   NAVIGATION
============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;

  background: rgba(255, 255, 255, 0.975);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  min-height: 72px;

  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  white-space: nowrap;
}

.brand-mark {
  width: 23px;
  height: 27px;

  border-left: 5px solid var(--accent);
  border-right: 1px solid var(--accent);

  transform: skew(-10deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.075em;
}

.brand-sub {
  display: block;
  margin-top: 5px;

  font-size: 9px;
  font-weight: 650;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 29px;

  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);

  font-size: 13px;
  font-weight: 560;

  white-space: nowrap;

  border-bottom: 2px solid transparent;
  padding-block: 25px 23px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-action {
  font-size: 12px;
  font-weight: 650;

  padding: 10px 15px;

  border: 1px solid var(--line-strong);
  border-radius: 6px;

  white-space: nowrap;
}

.nav-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   MOBILE NAVIGATION
============================================ */

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  list-style: none;

  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 6px;

  font-weight: 600;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 72px;
  right: 16px;

  width: min(
    300px,
    calc(100vw - 32px)
  );

  background: var(--white);
  border: 1px solid var(--line);

  box-shadow: var(--shadow);

  padding: 12px;

  display: grid;
  border-radius: 6px;
}

.mobile-menu a {
  padding: 11px 12px;
  border-radius: 4px;
  font-weight: 550;
}

.mobile-menu a:hover {
  background: var(--accent-light);
}

/* ============================================
   TYPOGRAPHY
============================================ */

.kicker,
.eyebrow {
  color: var(--accent);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 0.12em;
  line-height: 1.5;

  text-transform: uppercase;

  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.13;
}

h1 {
  font-size: clamp(42px, 5.3vw, 73px);
  font-weight: 620;
}

h2 {
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 620;
}

h3 {
  font-size: 19px;
  font-weight: 640;
}

.lead {
  color: var(--ink-soft);

  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;

  max-width: 610px;
}

.muted {
  color: var(--muted);
}

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

/* ============================================
   BUTTONS
============================================ */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 16px;

  padding: 13px 19px;

  border-radius: 6px;

  font-size: 13px;
  font-weight: 630;

  line-height: 1.2;
  min-height: 44px;

  border: 1px solid var(--line-strong);

  background: var(--white);
  color: var(--ink);
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  border-color: var(--deep);

  background: var(--deep);
  color: var(--white);
}

.btn-primary:hover {
  background: #1e3d3e;
  border-color: #1e3d3e;
}

/* ============================================
   HOMEPAGE HERO
============================================ */

.home-hero {
  padding-block: 104px 102px;

  display: grid;

  grid-template-columns:
    1.16fr 0.84fr;

  gap: clamp(48px, 8vw, 124px);

  align-items: center;
}

.home-hero h1 {
  margin-bottom: 23px;
  max-width: 690px;
}

.home-hero .lead {
  margin-bottom: 29px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-context {
  display: flex;
  align-items: center;
  gap: 12px;

  border-top: 1px solid var(--line);

  margin-top: 48px;
  padding-top: 20px;

  color: var(--muted);
  font-size: 12px;
}

.context-dash {
  width: 19px;
  height: 1px;

  background: var(--accent);
}

/* ============================================
   HOMEPAGE DESK PANEL
============================================ */

.desk-panel {
  background: var(--white);

  border: 1px solid var(--line);
  box-shadow: var(--shadow);

  border-radius: var(--radius);
  overflow: hidden;
}

.desk-panel-head {
  padding: 23px 25px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 12px;

  border-bottom: 1px solid var(--line);
}

.desk-panel-head strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.desk-panel-head small {
  color: var(--muted);
  font-size: 11px;
}

.desk-link {
  display: flex;
  align-items: center;

  gap: 15px;
  padding: 21px 25px;

  border-bottom: 1px solid var(--line);
}

.desk-link:last-child {
  border-bottom: 0;
}

.desk-link:hover {
  background: #fafcfb;
}

.desk-num {
  font-variant-numeric: tabular-nums;

  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  width: 22px;
}

.desk-link-main {
  flex: 1;
}

.desk-link-main strong {
  display: block;

  font-size: 14px;
  font-weight: 650;

  margin-bottom: 3px;
}

.desk-link-main small {
  color: var(--muted);
  font-size: 12px;
}

.desk-arrow {
  color: var(--accent);
  font-size: 18px;
}

.thin-rule {
  height: 1px;
  background: var(--line);
}

/* ============================================
   HOMEPAGE SERVICES
============================================ */

.home-section {
  padding-block: 86px;
}

.section-heading {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 390px;

  font-size: 14px;
  line-height: 1.65;

  color: var(--muted);
  margin-bottom: 4px;
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;
}

.service-card {
  border: 1px solid var(--line);
  background: var(--white);

  padding: 30px;
  border-radius: var(--radius);

  min-height: 250px;

  display: flex;
  flex-direction: column;
}

.service-num {
  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  margin-bottom: 32px;
}

.service-card h3 {
  margin-bottom: 11px;
}

.service-card p {
  color: var(--muted);

  font-size: 14px;
  max-width: 280px;
}

.service-card a {
  margin-top: auto;

  font-size: 13px;
  font-weight: 700;

  color: var(--accent);
}

/* ============================================
   PROCESS SECTION
============================================ */

.process-band {
  background: var(--deep);
  color: var(--white);

  padding-block: 72px;
}

.process-grid {
  display: grid;

  grid-template-columns:
    0.8fr 1.2fr;

  gap: 60px;
  align-items: start;
}

.process-band .kicker {
  color: #a5cebf;
}

.process-band h2 {
  max-width: 400px;
}

.principle-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.principle-list li {
  display: grid;

  grid-template-columns:
    32px 1fr;

  gap: 13px;

  padding: 17px 0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.17);
}

.principle-list li:first-child {
  padding-top: 0;
}

.principle-list small {
  font-size: 11px;
  color: #9cbeb4;
}

.principle-list span {
  font-size: 15px;
}

/* ============================================
   MARKETS INTRO
============================================ */

.markets-intro {
  padding-block: 54px 40px;

  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 32px;
}

.markets-intro .kicker {
  margin-bottom: 12px;
}

.markets-intro h1 {
  font-size: clamp(36px, 4vw, 53px);
  margin-bottom: 10px;
}

.markets-intro p {
  color: var(--ink-soft);

  max-width: 610px;
  margin-bottom: 0;
}

.local-time {
  text-align: right;

  border-left:
    1px solid var(--line-strong);

  padding-left: 28px;
  flex: 0 0 auto;
}

.local-time span {
  color: var(--muted);

  font-size: 11px;
  display: block;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.local-time strong {
  font-size: 25px;
  font-weight: 630;

  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;

  display: block;
}

.local-time small {
  font-size: 11px;
  color: var(--muted);

  display: block;
}

/* ============================================
   MARKETS WORKSPACE
============================================ */

.workspace {
  padding-bottom: 48px;
}

.section-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;
  margin-bottom: 15px;
}

.section-row h2 {
  font-size: 17px;
  letter-spacing: -0.02em;

  margin: 0;
}

.section-row p {
  font-size: 12px;
  color: var(--muted);

  margin: 0;
}

/* ============================================
   MARKET SESSION CARDS
============================================ */

.session-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;
  margin-bottom: 30px;
}

.session-card {
  background: var(--white);
  border: 1px solid var(--line);

  border-radius: var(--radius);
  padding: 19px 21px;
}

.session-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
  margin-bottom: 15px;
}

.session-top strong {
  font-size: 13px;
}

.session-chip {
  color: var(--muted);

  font-size: 10px;
  font-weight: 750;

  background: #f1f3f2;

  padding: 4px 8px;
  border-radius: 4px;

  white-space: nowrap;
  letter-spacing: 0.04em;
}

.session-chip.open {
  color: #166749;
  background: #e7f5ec;
}

.session-card .session-meta {
  display: flex;

  justify-content: space-between;
  gap: 12px;

  color: var(--muted);
  font-size: 12px;
}

.session-card .session-meta strong {
  color: var(--ink);

  font-size: 14px;
  font-weight: 630;

  font-variant-numeric: tabular-nums;
}

.session-count {
  margin-top: 15px;
  padding-top: 13px;

  border-top: 1px solid var(--line);

  display: flex;
  justify-content: space-between;

  gap: 12px;
  align-items: baseline;
}

.session-count span {
  font-size: 11px;
  color: var(--muted);
}

.session-count strong {
  font-size: 17px;
  font-weight: 620;

  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PROVIDER CONNECTION
============================================ */

.provider-consent {
  background: var(--accent-light);

  border: 1px solid #c8ded4;
  border-radius: var(--radius);

  padding: 15px 18px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;
  margin-bottom: 12px;
}

.provider-consent strong {
  font-size: 13px;
  font-weight: 700;
}

.provider-consent p {
  font-size: 12px;
  line-height: 1.6;

  color: #51645d;
  margin: 4px 0 0;
}

.provider-consent.loaded {
  background: #eef4ef;
}

.provider-consent.loaded #enableQuotes {
  display: none;
}

.provider-note {
  color: var(--muted);

  font-size: 12px;

  margin: 0 0 13px;
  min-height: 18px;
}

/* ============================================
   TICKER
============================================ */

.ticker-container {
  background: var(--white);

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  min-height: 50px;
  margin-bottom: 18px;
}

.ticker-container:empty {
  display: none;
}

/* ============================================
   CHART AND WATCHLIST GRID
============================================ */

.market-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.8fr)
    minmax(320px, 1fr);

  align-items: stretch;

  gap: 15px;
}

.panel {
  background: var(--white);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  min-width: 0;
  overflow: hidden;
}

.panel-header {
  padding: 19px 22px;

  border-bottom: 1px solid var(--line);

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 16px;
}

.panel-header h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0;
}

.panel-header small {
  color: var(--muted);
  font-size: 11px;
}

.panel-pill {
  color: var(--muted);

  background: #f4f6f5;
  border: 1px solid var(--line);

  border-radius: 4px;

  padding: 5px 9px;

  font-size: 10px;
  font-weight: 700;
}

/* ============================================
   INSTRUMENT SELECTOR
============================================ */

.symbol-switch {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;
  padding: 12px 14px;

  border-bottom: 1px solid var(--line);
}

.symbol-button {
  appearance: none;

  background: transparent;
  color: var(--muted);

  border: 1px solid transparent;
  border-radius: 5px;

  padding: 8px 11px;

  font-size: 12px;
  font-weight: 640;
}

.symbol-button:hover {
  background: #f4f7f5;
  color: var(--ink);
}

.symbol-button.active {
  background: var(--deep);
  color: var(--white);
}

/* ============================================
   TRADINGVIEW WIDGETS
============================================ */

.widget-mount {
  position: relative;

  width: 100%;
  min-width: 0;

  background: var(--white);
}

.chart-mount {
  min-height: 520px;
  height: 520px;
}

.overview-mount {
  min-height: 520px;
  height: 520px;
}

.tradingview-widget-container {
  width: 100%;
  height: 100%;
}

.tradingview-widget-container__widget {
  width: 100%;
  height: calc(100% - 22px);
}

.tradingview-widget-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.widget-attribution {
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;

  color: var(--muted);
  background: #f7f8f7;
}

.widget-attribution a:hover {
  text-decoration: underline;
}

.placeholder {
  min-height: 520px;

  padding: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  text-align: center;
  color: var(--muted);
}

.placeholder strong {
  color: var(--ink);

  font-size: 14px;
  font-weight: 650;
}

.placeholder p {
  max-width: 350px;

  font-size: 12px;
  margin: 8px 0 0;
}

.chart-disclosure {
  padding: 10px 17px 13px;
  margin: 0;

  border-top: 1px solid var(--line);

  font-size: 11px;
  color: var(--muted);
}

.chart-disclosure a {
  color: var(--accent);
  font-weight: 650;
}

.provider-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  padding-top: 15px;

  color: var(--muted);
  font-size: 11px;
}

.provider-foot a {
  color: var(--accent);
}

/* ============================================
   RESEARCH SECTION
============================================ */

.research-strip {
  padding-block: 44px 64px;

  border-top: 1px solid var(--line);
}

.research-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;
}

.research-item {
  padding: 20px 0;

  border-top: 2px solid var(--ink);
}

.research-item h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.research-item p {
  color: var(--muted);

  font-size: 13px;
  max-width: 360px;
}

.research-item a {
  color: var(--accent);

  font-weight: 670;
  font-size: 12px;
}

/* ============================================
   FOOTER
============================================ */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-content {
  min-height: 125px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;
}

.footer-content strong {
  font-size: 16px;
  letter-spacing: -0.055em;
}

.footer-content p {
  font-size: 12px;
  color: var(--muted);

  margin: 7px 0 0;
}

.footer-content small {
  color: var(--muted);
  font-size: 11px;
}

/* ============================================
   LAPTOPS
============================================ */

@media (max-width: 1080px) {

  .nav-shell {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .market-grid {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(290px, 1fr);
  }

  .home-hero {
    gap: 46px;
  }

}

/* ============================================
   TABLETS
============================================ */

@media (max-width: 850px) {

  .wrap {
    width: min(
      calc(100% - 36px),
      var(--wrap)
    );
  }

  .nav-links,
  .nav-action {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-block: 74px 60px;
  }

  .desk-panel {
    max-width: 660px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

  .service-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .markets-intro {
    align-items: start;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .overview-mount {
    height: 420px;
    min-height: 420px;
  }

  .session-grid {
    grid-template-columns: 1fr 1fr;
  }

  .provider-consent {
    align-items: start;
  }

}

/* ============================================
   MOBILE PHONES
============================================ */

@media (max-width: 580px) {

  body {
    font-size: 14px;
  }

  .wrap {
    width: min(
      calc(100% - 30px),
      var(--wrap)
    );
  }

  .nav-shell {
    min-height: 64px;
  }

  .mobile-menu {
    top: 64px;
  }

  .home-hero {
    padding-block: 56px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-context {
    margin-top: 30px;
  }

  .home-section {
    padding-block: 56px;
  }

  .service-grid,
  .session-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 205px;
    padding: 23px;
  }

  .service-num {
    margin-bottom: 18px;
  }

  .process-band {
    padding-block: 54px;
  }

  .markets-intro {
    padding-block: 35px 25px;

    flex-direction: column;
    gap: 20px;
  }

  .local-time {
    text-align: left;
    border-left: none;
    padding-left: 0;
  }

  .session-card {
    padding: 16px;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .provider-consent {
    flex-direction: column;
    gap: 14px;
  }

  .symbol-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .symbol-button {
    white-space: nowrap;
  }

  .chart-mount {
    min-height: 460px;
    height: 460px;
  }

  .placeholder {
    min-height: 460px;
  }

  .provider-foot,
  .footer-content {
    flex-direction: column;
    align-items: start;
  }

  .footer-content {
    padding-block: 28px;
    gap: 8px;
  }

}

/* ============================================
   ACCESSIBILITY
============================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

}
