/* =========================================================
   DacInvest — style.css (FULL)
   Default: LIGHT (White + Blue)
   Optional: DARK (data-theme="dark")
   ========================================================= */

/* ================= THEME VARIABLES ================= */
:root {
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --primary-dark: #1d4ed8;

  --bg: #ffffff;
  --bg-soft: #f5f7ff;
  --card-bg: #ffffff;
  --card-border: rgba(148, 163, 184, 0.22);

  --text-main: #0f172a;
  --text-muted: #4b5563;

  --accent-green: #16a34a;
  --accent-yellow: #f59e0b;
  --danger: #ef4444;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 38px rgba(15, 23, 42, 0.10);

  --max-width: 1120px;

  /* Body background for light */
  --body-bg: var(--bg-soft);

  /* Header */
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(148, 163, 184, 0.22);

  /* A dark surface token for chips etc */
  --surface-dark: #0b1220;
}

/* DARK THEME (optional) */
html[data-theme="dark"] {
  --bg: #020617;
  --bg-soft: #020617;
  --card-bg: rgba(2, 6, 23, 0.92);
  --card-border: rgba(148, 163, 184, 0.15);

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;

  --accent-green: #22c55e;
  --accent-yellow: #fbbf24;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-card: 0 18px 38px rgba(15, 23, 42, 0.8);

  --body-bg: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);

  --header-bg: rgba(15, 23, 42, 0.92);
  --header-border: rgba(148, 163, 184, 0.15);

  --surface-dark: #0f172a;
}

/* ================= RESET / BASE ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.25rem;
  gap: 1rem; /* includes spacing for theme toggle */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #93c5fd, #2563eb 45%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  overflow: hidden;
}

.header-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.header-nav a {
  position: relative;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--text-main);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, var(--primary), #22c55e);
  transition: width 0.18s ease-out;
}

.header-nav a:hover::after {
  width: 60%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
  background: var(--card-bg);
}

.btn-outline:hover {
  background: #eff6ff;
  border-color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #f9fafb;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45);
}

html[data-theme="dark"] .btn-outline {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

html[data-theme="dark"] .btn-outline:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
}

/* ================= MOBILE NAV TOGGLE ================= */
.mobile-nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  background: var(--card-bg);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  position: relative;
}

.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

.mobile-nav-toggle span::before {
  top: -5px;
}

.mobile-nav-toggle span::after {
  top: 5px;
}

/* ================= MOBILE NAV ================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 60;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  max-width: 80%;
  height: 100vh;
  background: var(--card-bg);
  color: var(--text-main);
  border-right: 1px solid var(--card-border);
  box-shadow: 24px 0 80px rgba(15, 23, 42, 0.18);
  transform: translateX(-100%);
  transition: transform 0.22s ease-out;
  z-index: 61;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.mobile-nav-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  color: var(--text-muted);
}

.mobile-nav-links a:hover {
  color: var(--text-main);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Dark overrides */
html[data-theme="dark"] .mobile-nav-overlay {
  background: rgba(2, 6, 23, 0.65);
}

html[data-theme="dark"] .mobile-nav-drawer {
  background: #020617;
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.85);
  border-right-color: rgba(148, 163, 184, 0.12);
}

/* ================= HERO ================= */
.hero {
  padding: 2.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.22rem 0.6rem 0.22rem 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 1.1rem;
}

html[data-theme="dark"] .hero-badge {
  background: rgba(15, 23, 42, 0.85);
}

.hero-badge-pill {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

html[data-theme="dark"] .hero-badge-pill {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.hero-title {
  font-size: clamp(2.15rem, 2.9vw + 1rem, 3rem);
  line-height: 1.07;
  margin-bottom: 0.9rem;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #60a5fa, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.hero-stat {
  min-width: 120px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 1.35rem 1.35rem 1.25rem;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-card-badge {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.hero-balance {
  margin-bottom: 1rem;
}

.hero-balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-balance-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.hero-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  width: 62%;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
}

.hero-card-row span.label {
  color: var(--text-muted);
}

.hero-card-row span.value {
  font-weight: 500;
}

.hero-tag-pill {
  margin-top: 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(37, 99, 235, 0.10);
  color: var(--text-muted);
  border: 1px solid rgba(37, 99, 235, 0.20);
}

.hero-tag-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-yellow);
}

.hero-floating-card {
  position: absolute;
  right: -8px;
  bottom: -20px;
  width: 68%;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-floating-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.hero-floating-label {
  color: var(--text-muted);
}

.hero-floating-value {
  font-weight: 500;
}

.hero-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.10);
}

/* Dark hero overrides */
html[data-theme="dark"] .hero-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
}

html[data-theme="dark"] .hero-card-title {
  color: #e5e7eb;
}

html[data-theme="dark"] .hero-card-badge {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

html[data-theme="dark"] .hero-progress {
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .hero-floating-card {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .hero-tag-pill {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
}

/* ================= SECTION BASE ================= */
.section {
  padding: 0 0 3.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-title span.highlight {
  color: #2563eb;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= FEATURES ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dark feature cards */
html[data-theme="dark"] .feature-card {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

/* ================= HOW IT WORKS ================= */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.how-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.how-step {
  font-size: 0.78rem;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
}

.how-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

html[data-theme="dark"] .how-card {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .how-step {
  color: #a5b4fc;
}

html[data-theme="dark"] .how-card h3 {
  color: #e5e7eb;
}

/* ================= PLANS ================= */
.plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.plans-intro-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
  box-shadow: var(--shadow-card);
}

.plans-intro-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.plans-intro-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.plans-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.plans-checklist li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.plans-check-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #166534;
}

.plans-meta {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.plans-meta span strong {
  color: var(--text-main);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.plan-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow-soft);
}

.plan-badge {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 0.3rem;
}

.plan-badge.popular {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.plan-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-rate {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.plan-rate span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.plan-list {
  list-style: none;
  margin: 0.4rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.plan-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.plan-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.plan-min {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.plan-min strong {
  color: var(--text-main);
}

.plan-btn {
  padding: 0.32rem 0.8rem;
  font-size: 0.78rem;
}

html[data-theme="dark"] .plans-intro-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.11), rgba(15, 23, 42, 0.97));
}

html[data-theme="dark"] .plan-card {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

html[data-theme="dark"] .plans-meta span strong,
html[data-theme="dark"] .plan-min strong {
  color: #e5e7eb;
}

/* ================= CTA BANNER ================= */
.cta-banner {
  margin-bottom: 3.5rem;
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(59, 130, 246, 0.55);
  box-shadow: 0 20px 65px rgba(30, 64, 175, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #f9fafb;
}

.cta-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.cta-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 420px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ================= TRADING VIEW SECTION ================= */
.markets-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: center;
}

.markets-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.markets-copy h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.markets-copy ul {
  margin-top: 0.6rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.markets-copy ul li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
}

.markets-copy ul li span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.9);
}

.markets-widget-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .markets-copy h3 {
  color: #e5e7eb;
}

html[data-theme="dark"] .markets-widget-card {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

/* ================= THEME TOGGLE BUTTON ================= */
.theme-toggle {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* ================= CONTACT PAGE LAYOUT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.contact-info-card,
.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.contact-form .form-row {
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.6rem 0 2rem;
  margin-top: auto;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-green);
}

html[data-theme="dark"] .footer {
  background: transparent;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
}

html[data-theme="dark"] .footer-links a:hover {
  color: #e5e7eb;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
     order: 2;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans-intro-card {
    order: -1;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .markets-section-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.9rem;
  }

  .features-grid,
  .plans-grid,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-banner {
    padding: 1.4rem 1.2rem;
  }

  .site-header-inner {
    padding-top: 0.9rem;
  }
}


    