/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
  min-height: 100vh;
}

/* Layout */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section {
  margin: 24px 0;
}

/* HEADER / NAV */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #020617f2;
  backdrop-filter: blur(6px);
}

.titleRow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d1d5db;
}

.titleMain {
  font-weight: 700;
  color: #22c55e;
}

.titleSep {
  margin: 0 4px;
}

.titleSub {
  opacity: 0.9;
}

.topbarLine {
  height: 2px;
  background: linear-gradient(to right, #22c55e, #22c55e 40%, #16a34a 60%, #22c55e 100%);
}

.navRow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logoImg {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.logoText {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

.mainNav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.mainNav a {
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.78;
  position: relative;
}

.mainNav a:hover {
  opacity: 1;
}

.mainNav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: #22c55e;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mainNav a:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.mainNav .navAccent {
  color: #22c55e;
  font-weight: 600;
}

.mainNav .navAccent::after {
  opacity: 1;
  transform: scaleX(1);
}

/* HERO */

.hero {
  max-width: 1120px;
  margin: 18px auto 8px;
  padding: 14px 16px 10px;
  background: transparent;
}

.heroTag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #22c55e;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: #022c22;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.heroTitle {
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.25;
}

.heroText {
  margin: 4px 0;
  max-width: 760px;
  font-size: 15px;
  color: #cbd5e1;
}

/* Buttons */

.primaryButton,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.primaryButton {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.primaryButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.7);
}

.secondaryButton {
  border: 1px solid #22c55e;
  color: #bbf7d0;
  background: transparent;
}

.secondaryButton:hover {
  background: rgba(22, 163, 74, 0.12);
  transform: translateY(-1px);
}

/* CARDS */

.card {
  border-radius: 18px;
  background: #030712;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 18px 18px 16px;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.muted {
  font-size: 13px;
  color: #9ca3af;
}

/* Thicker neon highlight for calculator */
.calculatorCard {
  border: 3px solid #22c55e !important;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.35) !important;
}

/* Feature grid */

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.featureCard {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #0a0f1a;
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.featureCard h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #e5e7eb;
}

.featureCard p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* HOW IT WORKS */

.howList {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #d1d5db;
}

.howList li {
  margin-bottom: 4px;
}

/* CALCULATOR FULL WIDTH */

.calcFull {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.calcInputsFull {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input[type="number"],
select {
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 8px 10px;
  background: rgba(3, 7, 18, 0.92);
  color: #f9fafb;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

.resultBox {
  width: 100%;
  border-radius: 14px;
  background: #030712;
  border: 1px solid rgba(34, 197, 94, 0.6);
  padding: 18px 20px;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.26);
}

.resultWide {
  width: 100%;
}

/* FULL WIDTH RESULT TABLE */

.resultBox table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 8px;
}

.resultBox th,
.resultBox td {
  padding: 8px 10px;
  text-align: left;
}

.resultBox th {
  font-weight: 600;
}

.resultBox td {
  color: #cbd5e1;
}

.resultBox .xp-number,
.resultBox td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* LINK LIST */

.linkList {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
}

.linkList li + li {
  margin-top: 3px;
}

.linkList a {
  color: #a7f3d0;
  text-decoration: none;
}

.linkList a:hover {
  text-decoration: underline;
}

/* FOOTER */

footer {
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 10px 16px 0;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 11px;
  color: #9ca3af;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .navRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mainNav {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .featureGrid {
    grid-template-columns: 1fr;
  }

  .calcFull {
    gap: 20px;
  }
}
