:root {
  --bg: #06110b;
  --bg-soft: #0a1a10;
  --card: rgba(14, 31, 20, 0.92);
  --card-solid: #0e1f14;
  --card-light: #13291a;
  --text: #f5fbf6;
  --muted: #c6d8cb;
  --muted-2: #9fb3a5;
  --line: rgba(104, 214, 111, 0.24);
  --green: #73e279;
  --green-2: #39b85b;
  --yellow: #f1c85b;
  --dark: #06110b;
  --input: #f8fff9;
  --shadow: 0 24px 80px rgba(0,0,0,0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(115,226,121,0.16), transparent 34%),
    linear-gradient(180deg, #06110b 0%, #07160e 48%, #050d08 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--green);
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 8px;
}

.logo {
  width: 360px;
  max-width: 88vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35));
}

.logo-small {
  width: 300px;
  max-width: 82vw;
  height: auto;
  display: block;
  margin: 0 auto 22px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35));
}

.hero {
  text-align: center;
  padding: 20px 0 16px;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(14,31,20,0.72);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(115,226,121,0.8);
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 16px;
}

.lead {
  max-width: 730px;
  margin: 0 auto 26px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.signup-card {
  max-width: 590px;
  margin: 26px auto 0;
  text-align: left;
}

label {
  display: block;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 8px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(115,226,121,0.32);
  background: var(--input);
  color: #06110b;
  border-radius: 14px;
  font-size: 16px;
  padding: 15px 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(115,226,121,0.14);
}

button,
.button {
  display: inline-block;
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--green), #4ad56a);
  color: #06110b;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(57,184,91,0.26);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.small {
  color: var(--muted-2);
  font-size: 13px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.feature {
  background: rgba(14,31,20,0.68);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.feature p {
  font-size: 15px;
  margin: 0;
}

.calculator-shell {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: rgba(14,31,20,0.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.result-box {
  background: linear-gradient(180deg, rgba(19,41,26,0.96), rgba(10,26,16,0.96));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  min-height: 106px;
}

.result-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.result-box strong {
  display: block;
  color: var(--green);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.chart-card {
  background: #f9fff9;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.chart-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: #06110b;
}

.chart-top h3 {
  color: #06110b;
  font-size: 20px;
  margin: 0 0 4px;
}

.chart-top p {
  color: #3c5141;
  font-size: 13px;
  margin: 0;
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #203927;
  font-size: 13px;
  white-space: nowrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.swatch.contribution {
  background: var(--green-2);
}

.swatch.interest {
  background: var(--yellow);
}

canvas {
  width: 100%;
  height: 390px;
  display: block;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(115,226,121,0.16);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--text);
  background: rgba(19,41,26,0.85);
}

td {
  color: var(--muted);
}

.notice {
  margin-top: 22px;
  border-left: 4px solid var(--yellow);
}

.footer {
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 34px;
}

@media (max-width: 930px) {
  .calculator-shell,
  .grid-3,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 320px;
  }

  canvas {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }

  .card,
  .panel {
    padding: 20px;
    border-radius: 22px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .chart-top {
    display: block;
  }

  .legend {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .logo {
    width: 280px;
  }

  .logo-small {
    width: 250px;
  }

  canvas {
    height: 300px;
  }
}