@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Sora:wght@300;400;500;600&display=swap");

:root {
  --forest: #0a4a35;
  --forest2: #0d5c42;
  --gold: #c8902a;
  --cream: #f7f3ed;
  --white: #ffffff;
  --ink: #1a1a18;
  --muted: #7a7568;
  --border: #e4ddd2;
  --card: #ffffff;
  --up: #1a6b35;
  --down: #9b2b2b;
  --hold: #8a6800;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Sora", sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  background: var(--forest);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav-title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.2px;
}
.nav-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 400;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.lang-opt {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}
.lang-opt.active {
  background: var(--gold);
  color: #fff;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.nav-login {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-login:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* MAIN */
.main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px;
}
.section {
  display: none;
}
.section.active {
  display: block;
}
.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.page-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: box-shadow 0.2s;
}
.metric-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.metric-skeleton {
  background: linear-gradient(90deg, #ede9e2 25%, #e4dfd6 50%, #ede9e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 14px;
  height: 100px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.metric-crop {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.metric-price {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--ink);
  margin: 6px 0 2px;
}
.metric-unit {
  font-size: 10px;
  color: #bbb;
}
.metric-change {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.metric-change.up {
  color: var(--up);
}
.metric-change.down {
  color: var(--down);
}
.metric-exchange {
  font-size: 10px;
  color: #ccc;
  margin-top: 2px;
}

/* TWO COLUMNS */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
}
.badge-live {
  font-size: 10px;
  background: #fee2e2;
  color: #b03a2e;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 600;
}
.badge-ok {
  font-size: 10px;
  background: #eaf5ef;
  color: var(--forest);
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 600;
}

/* ALERTS */
.alert-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f2ec;
}
.alert-item:last-child {
  border-bottom: none;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.dot-critical {
  background: #dc2626;
}
.dot-warning {
  background: #d97706;
}
.dot-opportunity {
  background: #059669;
}
.alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.alert-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.alert-meta {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}
.alert-action {
  color: var(--forest);
  font-weight: 600;
}

/* PIPELINES */
.pipeline-list {
  margin-bottom: 16px;
}
.pipeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f5f2ec;
  font-size: 13px;
}
.pipeline-row:last-child {
  border-bottom: none;
}
.pipe-synced {
  font-size: 11px;
  color: #059669;
}
.coverage-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* MARKET TABLE */
.mkt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mkt-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mkt-table td {
  padding: 14px;
  border-bottom: 1px solid #f5f2ec;
}
.mkt-table tr:last-child td {
  border-bottom: none;
}
.mkt-table tr:hover td {
  background: #fafaf8;
}
.price-val {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 400;
}
.up-text {
  color: var(--up);
  font-weight: 600;
}
.down-text {
  color: var(--down);
  font-weight: 600;
}
.sig-buy {
  background: #eaf5ef;
  color: var(--forest);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.sig-sell {
  background: #fee2e2;
  color: #b03a2e;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.sig-hold {
  background: #fef9c3;
  color: #92400e;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

/* CHAT */
.chat-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.chat-msgs {
  padding: 24px;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 78%;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 16px;
  border-radius: 12px;
}
.agent-msg {
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px 12px 12px 12px;
  align-self: flex-start;
}
.user-msg {
  background: var(--forest);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
  align-self: flex-end;
}
.typing {
  color: var(--muted);
  font-style: italic;
  font-size: 12px;
  padding: 8px 16px;
}
.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  padding: 16px 18px;
  font-size: 13px;
  border: none;
  outline: none;
  font-family: "Sora", sans-serif;
  background: var(--card);
  color: var(--ink);
}
.chat-input-row button {
  padding: 16px 24px;
  background: var(--forest);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  transition: background 0.2s;
}
.chat-input-row button:hover {
  background: var(--forest2);
}

.loading-text {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}

/* ── SETTINGS MODAL ─────────────────────────────────────────────────────── */
.nav-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 70px 20px 20px;
}
.modal-overlay.active {
  display: flex;
}
.settings-panel {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.settings-panel.small {
  max-width: 360px;
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.settings-title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  color: var(--ink);
}
.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.modal-close:hover {
  background: var(--cream);
}
.settings-body {
  padding: 16px 24px 24px;
}
.settings-section {
  margin-bottom: 20px;
}
.settings-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.settings-item:hover {
  background: var(--cream);
}
.si-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.si-text {
  flex: 1;
}
.si-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.si-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.si-arrow {
  font-size: 18px;
  color: var(--muted);
}
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: 0.3s;
  cursor: pointer;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
  background: var(--forest);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
}
.toggle input:disabled + .toggle-slider {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-signout {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #fee2e2;
  background: transparent;
  color: #b03a2e;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-signout:hover {
  background: #fee2e2;
}
.pw-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: none;
}
.pw-msg.error {
  background: var(--error-bg);
  color: var(--error);
  display: block;
}
.pw-msg.success {
  background: var(--success-bg);
  color: var(--success);
  display: block;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}
.field input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(10, 74, 53, 0.1);
}
.btn-green {
  width: 100%;
  padding: 13px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-green:hover {
  background: var(--forest2);
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(
    180deg,
    rgba(10, 74, 53, 0.04) 0%,
    transparent 100%
  );
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(10, 74, 53, 0.08);
  color: var(--forest);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(10, 74, 53, 0.15);
}
.hero-title {
  font-family: "Fraunces", serif;
  font-size: 58px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--forest);
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.btn-hero-primary {
  padding: 14px 28px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-primary:hover {
  background: var(--forest2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 74, 53, 0.25);
}
.btn-hero-secondary {
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-secondary:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hstat {
  text-align: center;
}
.hstat-n {
  font-family: "Fraunces", serif;
  font-size: 36px;
  color: var(--ink);
}
.hstat-l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hstat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── SECTION BLOCKS ─────────────────────────────────────────────────────── */
.section-block {
  padding: 60px 0;
}
.block-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest);
  margin-bottom: 12px;
}
.block-title {
  font-family: "Fraunces", serif;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 36px;
  max-width: 600px;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--forest);
}
.step-num {
  font-family: "Fraunces", serif;
  font-size: 48px;
  color: rgba(10, 74, 53, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}
.step-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.feat-card.feat-large {
  grid-column: span 2;
}
.feat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.feat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.feat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* TECH */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tech-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  transition: all 0.2s;
}
.tech-card:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(10, 74, 53, 0.1);
}
.tech-logo {
  font-size: 24px;
  margin-bottom: 8px;
}
.tech-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.tech-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

/* CTA */
.cta-block {
  background: var(--forest);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  margin-bottom: 40px;
}
.cta-block h2 {
  font-family: "Fraunces", serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.cta-block p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-cta-primary {
  padding: 14px 28px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 144, 42, 0.4);
}
.btn-cta-secondary {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feat-card.feat-large {
    grid-column: span 1;
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-btns,
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: #0d1f18;
  margin-top: 80px;
  padding: 60px 0 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
  font-size: 28px;
  margin-bottom: 10px;
}
.footer-brand-name {
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 16px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 6px 0;
  cursor: pointer;
  border: none;
  background: none;
  font-family: "Sora", sans-serif;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}
.footer-link:hover {
  color: #fff;
}
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-sep {
  color: rgba(255, 255, 255, 0.15);
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* ── METRIC REGION ──────────────────────────────────────────────────────── */
.metric-region {
  font-size: 9px;
  color: #ccc;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── NAVBAR DROPDOWN ─────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Sora", sans-serif;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  width: 280px;
  z-index: 500;
  display: none;
  animation: fadeDown 0.2s ease-out;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
.nav-dropdown-btn:focus + .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.dropdown-item:hover {
  background: var(--cream);
}
.di-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.di-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.di-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Complete overhaul for smartphones
   ═══════════════════════════════════════════════════════════════ */

/* ── HAMBURGER BUTTON ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--forest);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}
.mobile-nav-link {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mobile-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  padding: 16px 16px 8px;
  margin-top: 8px;
}
.mobile-nav-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.mobile-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
  cursor: pointer;
}
.mobile-tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.mobile-tool-icon {
  font-size: 22px;
}
.mobile-tool-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.mobile-lang-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-lang-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  transition: all 0.2s;
}
.mobile-lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.mobile-auth-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.mobile-auth-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-signin {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.mobile-register {
  background: var(--gold);
  color: #fff;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════
   BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 0 16px;
    height: 56px;
  }
  .nav-links,
  .nav-right,
  .nav-status {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-sub {
    display: none;
  }
  .nav-title {
    font-size: 15px;
  }

  /* MAIN */
  .main {
    padding: 20px 16px;
  }

  /* PAGE HEADER */
  .page-header h1 {
    font-size: 22px;
  }
  .page-header p {
    font-size: 12px;
  }

  /* METRICS GRID */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* TWO COL → SINGLE */
  .two-col {
    grid-template-columns: 1fr;
  }

  /* CARD */
  .card {
    padding: 14px;
  }

  /* MARKET TABLE */
  .mkt-table th:nth-child(4),
  .mkt-table td:nth-child(4),
  .mkt-table th:nth-child(5),
  .mkt-table td:nth-child(5) {
    display: none;
  }
  .mkt-table {
    font-size: 12px;
  }
  .mkt-table td,
  .mkt-table th {
    padding: 10px 8px;
  }

  /* HERO */
  .hero {
    padding: 40px 16px 32px;
  }
  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    text-align: center;
  }
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hstat-n {
    font-size: 28px;
  }
  .hstat-div {
    display: none;
  }

  /* SECTION BLOCKS */
  .section-block {
    padding: 32px 0;
  }
  .block-title {
    font-size: 26px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feat-card.feat-large {
    grid-column: span 1;
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .tech-card {
    padding: 14px 8px;
  }
  .tech-name {
    font-size: 11px;
  }

  /* CTA */
  .cta-block {
    padding: 32px 20px;
  }
  .cta-block h2 {
    font-size: 26px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    text-align: center;
  }

  /* CHAT */
  .chat-msgs {
    min-height: 300px;
    max-height: 380px;
    padding: 16px;
  }
  .msg {
    max-width: 90%;
  }
  .chat-input-row input {
    padding: 12px 14px;
  }
  .chat-input-row button {
    padding: 12px 16px;
  }

  /* FOOTER */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 32px;
  }
  .footer-brand {
    grid-column: 1;
  }
  .footer-bottom {
    font-size: 11px;
    padding: 16px;
  }

  /* SETTINGS MODAL */
  .modal-overlay {
    padding: 56px 12px 12px;
  }
  .settings-panel {
    max-width: 100%;
  }

  /* DROPDOWN */
  .dropdown-menu {
    width: 240px;
    left: auto;
    right: 0;
    transform: none;
  }
}

@media (max-width: 480px) {
  /* METRICS — 2 columns on small phones */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .metric-card {
    padding: 12px;
  }
  .metric-price {
    font-size: 20px;
  }

  /* HERO */
  .hero-title {
    font-size: 26px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  /* TECH GRID */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FOOTER */
  .footer-col-title {
    font-size: 10px;
  }
  .footer-link {
    font-size: 12px;
  }
}

/* ── FEAT CARDS CLICKABLE ────────────────────────────────────────────────── */
.feat-clickable {
  cursor: pointer;
  transition: all 0.25s !important;
}
.feat-clickable:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(10, 74, 53, 0.12) !important;
  border-color: var(--forest) !important;
}
.feat-clickable:hover .feat-icon {
  transform: scale(1.15);
}
.feat-icon {
  display: inline-block;
  transition: transform 0.25s;
}
.feat-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s;
}
.feat-clickable:hover .feat-link {
  opacity: 1;
  transform: translateY(0);
}

/* ── DARK MODE ───────────────────────────────────────────────────────────── */
body.dark-mode {
  background: #0d1f18;
}
body.dark-mode .navbar {
  background: #071410;
}
body.dark-mode .card,
body.dark-mode .metric-card,
body.dark-mode .alert-card,
body.dark-mode .chat-container {
  background: #112318;
  border-color: #1a3a28;
  color: #e8e8e0;
}
body.dark-mode .section {
  background: #0d1f18;
}
body.dark-mode .hero {
  background: #071410;
}
body.dark-mode .section-block {
  background: #0d1f18;
}
body.dark-mode .feat-card {
  background: #112318;
  border-color: #1a3a28;
}
body.dark-mode .feat-title,
body.dark-mode .block-title,
body.dark-mode .page-title {
  color: #e8e8e0;
}
body.dark-mode .feat-desc,
body.dark-mode .block-desc,
body.dark-mode .page-sub {
  color: #7a9a88;
}
body.dark-mode .step-card {
  background: #112318;
  border-color: #1a3a28;
}
body.dark-mode .step-title {
  color: #e8e8e0;
}
body.dark-mode .step-desc {
  color: #7a9a88;
}
body.dark-mode .mkt-table th {
  background: #071410;
  color: #7a9a88;
}
body.dark-mode .mkt-table td {
  border-color: #1a3a28;
  color: #e8e8e0;
}
body.dark-mode .mkt-table tr:hover td {
  background: #112318;
}
body.dark-mode .tech-card {
  background: #112318;
  border-color: #1a3a28;
}
body.dark-mode .tech-name {
  color: #e8e8e0;
}
body.dark-mode .settings-panel {
  background: #112318;
}
body.dark-mode .settings-item {
  background: #0d1f18;
  border-color: #1a3a28;
}
body.dark-mode .footer {
  background: #071410;
}
body.dark-mode .chat-msgs {
  background: #071410;
}
body.dark-mode .user-msg {
  background: #1a3a28;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #112318;
  border-color: #1a3a28;
  color: #e8e8e0;
}
