* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 32px 20px;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(168,85,247,0.22), transparent 40%),
    radial-gradient(circle at bottom right, rgba(88,28,135,0.18), transparent 35%);
  z-index: 0;
}

.navbar {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 820px;
  margin: 150px auto 0;
  text-align: center;
}

.eyebrow {
  color: #b68cff;
  margin-bottom: 18px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 26px;
  letter-spacing: -2px;
}

.subtitle {
  color: #a1a1aa;
  max-width: 700px;
  margin: auto auto 42px;
  font-size: 1.15rem;
}

.hero-button {
  display: inline-block;
  padding: 17px 32px;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #7b2ff7,
    #a855f7
  );

  color: white;
  text-decoration: none;
  font-weight: bold;

  transition: 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168,85,247,0.25);
}

.calculator-section,
.info-section,
.tools-section {
  padding: 90px 20px;
}

.tools-grid {
  max-width: 1150px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.tool-card {
  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 28px;

  padding: 34px;

  text-decoration: none;

  transition: 0.25s ease;

  backdrop-filter: blur(10px);
}

.tool-card:hover {
  transform: translateY(-6px);

  border-color: rgba(168,85,247,0.35);

  background: rgba(255,255,255,0.055);
}

.tool-card h3 {
  color: white;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.tool-card p {
  color: #9ca3af;
}

.calculator-card,
.info-card {
  max-width: 950px;
  margin: auto;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 30px;

  padding: 46px;

  backdrop-filter: blur(12px);
}

.card-header {
  margin-bottom: 42px;
}

.card-header h2,
.info-card h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.card-header p,
.info-card p {
  color: #a1a1aa;
}

.info-card p {
  margin-bottom: 20px;
  max-width: 760px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  color: #c4c4c4;
  font-size: 0.95rem;
}

.input-group input {
  width: 100%;

  padding: 16px;

  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.06);

  background: rgba(255,255,255,0.03);

  color: white;

  font-size: 1rem;

  outline: none;

  transition: 0.2s ease;
}

.input-group input:focus {
  border-color: rgba(168,85,247,0.5);
  background: rgba(255,255,255,0.05);
}

.calculate-button {
  width: 100%;

  margin-top: 34px;

  padding: 18px;

  border: none;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #7b2ff7,
    #a855f7
  );

  color: white;

  font-size: 1rem;
  font-weight: bold;

  cursor: pointer;

  transition: 0.25s ease;
}

.calculate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168,85,247,0.25);
}

.results {
  margin-top: 44px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.result-box {
  background: rgba(255,255,255,0.03);

  border-radius: 24px;

  padding: 28px;
}

.result-box span {
  color: #9ca3af;
  display: block;
  margin-bottom: 12px;
}

.result-box strong {
  font-size: 2rem;
}

.highlight {
  border: 1px solid rgba(168,85,247,0.35);
}

.chart-container {
  margin-top: 55px;

  padding: 24px;

  border-radius: 24px;

  background: rgba(255,255,255,0.03);
}

.breakdown {
  margin-top: 55px;
}

.breakdown h3 {
  margin-bottom: 24px;
  font-size: 1.55rem;
}

.table-wrapper {
  overflow-x: auto;

  border-radius: 22px;

  border: 1px solid rgba(255,255,255,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

th {
  color: #9ca3af;
  font-weight: normal;
}

td {
  color: white;
}

footer {
  text-align: center;
  padding: 60px 20px;
  color: #71717a;
}

@media(max-width: 768px) {

  .navbar {
    gap: 18px;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-content {
    margin-top: 110px;
  }

  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.05;
  }

  .subtitle {
    font-size: 1rem;
  }

  .calculator-card,
  .info-card,
  .tool-card {
    padding: 26px;
  }

  .card-header h2,
  .info-card h2 {
    font-size: 2rem;
  }

  .result-box strong {
    font-size: 1.7rem;
  }

}