/* RESET & BASE THEME */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
::selection {
  background-color: #9333ea;
  color: #ffffff;
}
html {
  scroll-behavior: smooth;
  font-size: 18px; /* Increased base font size from 16px to 18px for global scaling */
}
body {
  background-color: #09090b;
  color: #f4f4f5;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* LAYOUT CONTAINER */
.max-w-7xl {
  max-width: 85rem; /* Expanded container width to fit larger layout elements */
  width: 100%;
  margin: 0 auto;
}
.flex-1 {
  flex: 1 1 0%;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* HEADER */
header {
  border-bottom: 1px solid #1f1f23;
  background-color: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.5rem 2rem; /* Increased padding */
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo-icon {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  padding: 0.85rem;
  border-radius: 0.85rem;
  font-size: 1.75rem; /* Bigger icon */
  font-weight: 900;
}
h1 {
  font-size: 1.5rem; /* Larger title */
  font-weight: 900;
  letter-spacing: -0.025em;
}
.subtitle {
  color: #f472b6;
  font-size: 0.85rem; /* Larger subtitle */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* MAIN GRID */
main {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem; /* Wider gaps between layout blocks */
  align-items: start;
}
@media (min-width: 1024px) {
  main {
    padding: 2.5rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .col-left {
    grid-column: span 7;
  }
  .col-right {
    grid-column: span 5;
    position: sticky;
    top: 8rem;
  }
}

/* CARDS */
.card {
  background-color: #18181b;
  border: 1px solid #27272a;
  border-radius: 1.25rem; /* Smoother corner roundness */
  padding: 2rem; /* More breathing room inside cards */
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4);
}
.space-y-4 > * + * {
  margin-top: 1.25rem;
}
.space-y-5 > * + * {
  margin-top: 1.5rem;
}
.space-y-6 > * + * {
  margin-top: 2rem;
}

.card-title {
  font-size: 1rem; /* Scaled header text inside panels */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}
.border-b {
  border-bottom: 1px solid #27272a;
  padding-bottom: 1.25rem;
}

/* INPUTS & ARROWS */
.input-group {
  margin-top: 1.25rem;
}
label {
  display: block;
  font-size: 0.85rem; /* Larger input labels */
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
input[type='number'] {
  width: 100%;
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 1rem 1.25rem; /* Tall fields for easier typing */
  color: #f4f4f5;
  font-size: 1.1rem; /* Large values inside fields */
  font-weight: 700;
  transition: all 0.2s;
}
input[type='number']:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 1px #a855f7;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: auto !important;
  opacity: 1 !important;
  display: block !important;
  transform: scale(1.25); /* Makes standard arrows physically wider/taller */
  margin-right: 0.5rem;
}

/* PLATFORM ROWS */
.platform-card {
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.platform-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem; /* Prominent platform typography */
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* TOGGLE SWITCHES */
.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem; /* Wider toggle chassis */
  height: 1.5rem; /* Taller toggle chassis */
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27272a;
  transition: 0.2s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 1.2rem;
  width: 1.2rem;
  left: 3px;
  bottom: 2.5px;
  background-color: #a1a1aa;
  transition: 0.2s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #9333ea;
}
input:checked + .slider:before {
  transform: translateX(1.2rem);
  background-color: #ffffff;
}

/* LIVE STATS COUNTERS */
.text-center {
  text-align: center;
}
.badge {
  font-size: 0.85rem; /* Expanded badge tag formatting */
  background-color: #3b0764;
  color: #d8b4fe;
  border: 1px solid rgba(147, 51, 234, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
}
.big-counter {
  font-size: 3.5rem; /* Substantially inflated master stats numbers */
  font-weight: 900;
  margin-top: 1rem;
  background: linear-gradient(to right, #a855f7, #f472b6, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter-sub {
  font-size: 0.85rem;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  font-size: 1rem;
}
.stat-box {
  background-color: #09090b;
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #27272a;
}
.stat-label {
  font-size: 0.85rem;
  color: #a1a1aa;
  text-transform: uppercase;
  font-weight: 700;
}
.stat-val {
  font-size: 1.5rem; /* Larger subcounter outputs */
  font-weight: 700;
  margin-top: 0.5rem;
}

/* MAIN ACTION BUTTON */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(to right, #9333ea, #ec4899, #f97316);
  color: white;
  font-weight: 900;
  padding: 1.25rem; /* Thicker tap target area */
  border-radius: 0.85rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1rem; /* Noticeably larger font weight text */
  letter-spacing: 0.12em;
  box-shadow: 0 12px 20px -3px rgba(236, 72, 153, 0.25);
  transition: filter 0.2s;
}
.btn:hover {
  filter: brightness(1.1);
}

/* BOTTOM ANALYTICS BLOCK */
.results-section {
  padding: 1.5rem;
  scroll-margin-top: 7rem;
}
@media (min-width: 1024px) {
  .results-section {
    padding: 2.5rem;
  }
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .matrix-left {
    grid-column: span 7;
  }
  .matrix-right {
    grid-column: span 5;
  }
}

/* DISTRIBUTION PROGRESS BARS */
.bar-wrapper {
  margin-top: 1.5rem;
}
.bar-row {
  margin-bottom: 1.5rem;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem; /* Enhanced visibility for chart metrics */
  margin-bottom: 0.5rem;
}
.bar-track {
  width: 100%;
  background-color: #09090b;
  border: 1px solid #27272a;
  height: 0.75rem; /* Double height track for richer visualization layout */
  border-radius: 9999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 9999px;
}

/* ACHIEVEMENTS GRID */
.achievement-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #c084fc;
  margin-top: 2rem;
}
.achievement-p {
  font-size: 0.85rem;
  color: #71717a;
  margin-bottom: 1.25rem;
}
.achieve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .achieve-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.achieve-box {
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.achieve-icon {
  font-size: 2.25rem;
} /* Expanded custom layout graphics icons */
.achieve-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
}
.achieve-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #e4e4e7;
  margin: 0.25rem 0;
}
.achieve-sub {
  font-size: 0.75rem;
  color: #71717a;
}

/* FINANCIAL OPPORTUNITY COST CARDS */
.cash-box {
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.cash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cash-rate {
  font-size: 0.85rem;
  background-color: #18181b;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: #a1a1aa;
}
.cash-rate.premium {
  background-color: #2e1065;
  color: #d8b4fe;
  border: 1px solid rgba(147, 51, 234, 0.3);
}
.cash-val {
  font-size: 2.25rem;
  font-weight: 900;
} /* Maximum scale on dollar tracking figures */
.cash-val.orange {
  background: linear-gradient(to right, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cash-val.purple {
  background: linear-gradient(to right, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cash-desc {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 1rem;
  line-height: 1.6;
}

/* RESPONSIVE FOOTER STACKS V-ON-MOBILE */
footer {
  border-top: 1px solid #18181b;
  background-color: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(4px);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 1rem;
  color: #71717a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
}
footer a {
  color: #71717a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
footer a:hover {
  color: #c084fc;
}
.bullet {
  display: none;
  color: #27272a;
}

@media (min-width: 640px) {
  footer {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  .bullet {
    display: inline;
  }
}
