:root {
  --page: #f6f7f9;
  --surface: #ffffff;
  --text: #17191d;
  --muted: #6d737c;
  --line: #e4e7eb;
  --accent: #17191d;
  --accent-soft: #eef0f3;
  --max-width: 1180px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 88px 24px 82px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #737982;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -3.5px;
}

.hero-text {
  max-width: 640px;
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: 17px;
}

.search-box {
  max-width: 590px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 14px 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f8fa;
  border: 1px solid #dfe2e7;
  border-radius: 14px;
  text-align: left;
}

.search-box .search-icon {
  color: #858b94;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #9298a1;
}

.search-box kbd {
  padding: 4px 7px;
  border: 1px solid #d9dce1;
  border-radius: 6px;
  background: white;
  color: #8b9098;
  font-size: 11px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -1px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.featured-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.featured-card {
  min-height: 255px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(20, 25, 35, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-card:hover,
.calculator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(20, 25, 35, 0.08);
}

.featured-card-dark {
  background: #17191d;
  color: white;
  border-color: #17191d;
}

.card-top {
  display: flex;
  justify-content: space-between;
}

.card-icon,
.mini-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  font-weight: 800;
}

.featured-card-dark .card-icon {
  background: rgba(255, 255, 255, 0.13);
}

.card-arrow {
  color: #9ca1a9;
}

.featured-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.featured-card p {
  margin: 0;
  color: #7b818a;
  font-size: 14px;
}

.featured-card-dark p {
  color: #b8bcc3;
}

.card-link {
  font-size: 13px;
  font-weight: 700;
}

.ad-placeholder {
  max-width: var(--max-width);
  height: 90px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a5ac;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.ad-placeholder span {
  opacity: 0.7;
}

.ad-mid {
  margin-top: 0;
}

.calculator-section {
  padding-top: 50px;
}

.view-all {
  color: #6d737c;
  font-size: 14px;
  font-weight: 700;
}

.category-row {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #666c75;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.category.active,
.category:hover {
  background: #17191d;
  color: white;
  border-color: #17191d;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calculator-card {
  min-height: 104px;
  padding: 19px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mini-icon {
  width: 42px;
  height: 42px;
  background: #f0f2f5;
  color: #333840;
}

.calculator-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.calculator-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid-arrow {
  color: #9a9fa7;
  font-size: 19px;
}

.about-section {
  padding-top: 45px;
  padding-bottom: 90px;
}

.about-card {
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 50px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.about-copy {
  max-width: 680px;
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: 32px;
  letter-spacing: -1px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.about-stat {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.about-stat strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -2px;
}

.about-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}


@media (max-width: 950px) {

  .featured-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-stat {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
}

@media (max-width: 700px) {
  
  .hero-content {
    padding: 64px 20px 58px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 15px;
  }

  .section {
    padding: 52px 18px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .carousel-controls {
    display: none;
  }

  .featured-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .featured-track::-webkit-scrollbar {
    display: none;
  }

  .featured-card {
    min-width: 82%;
    scroll-snap-align: start;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    min-height: 94px;
  }

  .about-card {
    padding: 28px;
  }

}
