.home-page {
  flex: 1;
  width: 100%;
}

/* ===== Hero ===== */
.home-hero {
  width: 100%;
  background: var(--surface);
  padding: 64px 24px 56px;
}

.home-hero__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.home-hero__text {
  max-width: 620px;
}

.home-hero__heading {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.home-hero__heading-accent {
  font-family: var(--font-serif, serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  font-size: 1.15em;
  letter-spacing: 0;
}

.home-hero__subheading {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 960px) {
  .home-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .home-hero__visual {
    justify-content: flex-end;
  }
}

/* ===== Marquee ===== */
.home-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.home-marquee__scroller {
  display: flex;
  width: max-content;
  animation: home-marquee-scroll 32s linear infinite;
}

.home-marquee:hover .home-marquee__scroller {
  animation-play-state: paused;
}

.home-marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.home-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--font-geist-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.home-marquee__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes home-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee__scroller {
    animation: none;
  }
}

/* ===== Hero dashboard widget ===== */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}

.dashboard__top-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  align-items: stretch;
}

.dashboard__mini-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.dashboard__mini-card {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.dashboard__mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dashboard__mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.dashboard__mini-subtitle {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.dashboard__main-card {
  position: relative;
  background: var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45);
  animation: dashboard-float 5.5s ease-in-out infinite;
}

[data-theme="dark"] .dashboard__main-card {
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}

@keyframes dashboard-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dashboard__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dashboard__ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #16161e;
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
}

[data-theme="dark"] .dashboard__ready-badge {
  color: #fff;
  background: #16161e;
}

.dashboard__ready-badge span {
  font-weight: 600;
  font-size: 11px;
}

.dashboard__date-tag {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
}

[data-theme="dark"] .dashboard__date-tag {
  color: #6b7280;
  background: #f3f4f6;
}

.dashboard__card-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  animation: dashboard-fade-in 0.4s ease;
}

@keyframes dashboard-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}

[data-theme="dark"] .dashboard__card-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #111827;
}

.dashboard__card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

[data-theme="dark"] .dashboard__card-title {
  color: #111827;
}

.dashboard__card-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

[data-theme="dark"] .dashboard__card-subtitle {
  color: #6b7280;
}

.dashboard__bell {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

[data-theme="dark"] .dashboard__bell {
  color: #9ca3af;
}

.dashboard__note {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 12px;
}

[data-theme="dark"] .dashboard__note {
  color: #374151;
  background: #f9fafb;
  border-color: #eef0f3;
}

.dashboard__card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard__status-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
}

[data-theme="dark"] .dashboard__status-tag {
  color: #111827;
  background: rgba(0, 0, 0, 0.06);
}

.dashboard__open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

[data-theme="dark"] .dashboard__open-link {
  color: #111827;
}

.dashboard__activity {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.dashboard__activity-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.dashboard__activity-heading svg {
  color: var(--text-primary);
}

.dashboard__activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.dashboard__activity-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.dashboard__activity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
}

.dashboard__activity-active {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
}

.dashboard__activity-active::before {
  background: var(--text-primary) !important;
}

.dashboard__bottom-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.dashboard__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard__stat:first-child {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.dashboard__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-primary);
  box-shadow: 0 0 0 0 rgba(120, 120, 120, 0.5);
  animation: dashboard-pulse 1.8s ease-out infinite;
}

@keyframes dashboard-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 120, 120, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(120, 120, 120, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(120, 120, 120, 0);
  }
}

.dashboard__stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.dashboard__stat-label {
  font-size: 10.5px;
  color: var(--text-secondary);
}

@media (min-width: 420px) {
  .dashboard__bottom-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Generic home sections ===== */
.home-section {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 24px;
}

.home-section__intro {
  margin-bottom: 28px;
}

.home-section__heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.home-section__subheading {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Why section (numbered card) */
.home-why {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px;
}

.home-intro {
  text-align: center;
  margin-bottom: 32px;
}

.home-intro__heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.home-intro__subheading {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.home-why__card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px -25px rgba(17, 24, 39, 0.18);
}

.home-why__col {
  padding: 36px 32px;
  border-top: 1px solid var(--border);
}

.home-why__col:first-child {
  border-top: none;
}

.home-why__number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--border);
  margin-bottom: 40px;
}

.home-why__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.home-why__description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 700px) {
  .home-why__card {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-why__col {
    border-top: none;
    border-left: 1px solid var(--border);
  }

  .home-why__col:first-child {
    border-left: none;
  }
}

/* Product lines (bento grid) */
.home-lines {
  background: var(--surface-muted);
  padding: 64px 24px;
}

.home-lines__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.home-lines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}

.home-line-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}

.home-line-card:hover {
  border-color: var(--text-secondary);
}

.home-line-card {
  position: relative;
  overflow: hidden;
}

.home-line-card__watermark {
  position: absolute;
  right: -14px;
  bottom: -14px;
  color: var(--text-primary);
  opacity: 0.04;
  pointer-events: none;
}

.home-line-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}

.home-line-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.home-line-card__count {
  font-family: var(--font-geist-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.home-line-card__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.home-line-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
}

.home-line-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  position: relative;
}

.home-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Impact / how it works (scroll-grown bars) */
.home-impact {
  background: var(--background);
  padding: 72px 24px;
}

.home-impact__inner {
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
  height: 300px;
}

.home-impact__heading {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #16241b;
  z-index: 1;
}

.home-impact__heading span {
  display: block;
  margin-bottom: 0.08em;
}

.home-impact__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 100%;
}

.home-impact__bar {
  flex: 1;
  min-width: 0;
  height: 0;
  border-radius: 20px;
  padding: 24px;
  /*display: flex;*/
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-impact__bar--1 {
  background: #dbeafe;
}

.home-impact__bar--1.is-visible {
  height: 50%;
}

.home-impact__bar--2 {
  background: #e4d6f6;
}

.home-impact__bar--2.is-visible {
  height: 70%;
}

.home-impact__bar--3 {
  background: #c3d0b7;
}

.home-impact__bar--3.is-visible {
  height: 90%;
}

.home-impact__step {
  font-family: var(--font-serif, serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  color: #16241b;
  line-height: 1;
}

.home-impact__title {
  display: inline-block;
  font-family: var(--font-sans), Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #16241b;
  margin-top: 4px;
  margin-left: 20px;
}

.home-impact__description {
  font-size: 14px;
  line-height: 1.5;
  color: #16241b;
  margin-top: 15px;
}

@media (min-width: 700px) {
  .home-impact__bar {
    padding: 15px 30px;
  }
}

@media (max-width: 699px) {
  .home-impact__inner {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .home-impact__heading {
    position: static;
    width: auto;
  }

  .home-impact__bars {
    position: static;
    height: 300px;
  }
}

[data-theme="dark"] .home-impact {
  background: var(--surface);
}

[data-theme="dark"] .home-impact__heading,
[data-theme="dark"] .home-impact__step,
[data-theme="dark"] .home-impact__title,
[data-theme="dark"] .home-impact__description {
  color: var(--text-primary);
}

[data-theme="dark"] .home-impact__bar--1 {
  background: #1e2b45;
}

[data-theme="dark"] .home-impact__bar--2 {
  background: #2c2340;
}

[data-theme="dark"] .home-impact__bar--3 {
  background: #263323;
}

/* Tool index (browse / live search) */
.home-index {
  background: var(--surface-muted);
  padding: 72px 24px;
}

.home-index__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.home-index__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.home-index__search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--text-secondary);
}

.home-index__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--text-primary);
  font-family: inherit;
}

.home-index__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-index__filter {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-index__filter:hover {
  border-color: var(--text-primary);
}

.home-index__filter.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

.home-index__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.home-index__row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 44px 14px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.15s ease;
}

.home-index__row:last-child {
  border-bottom: none;
}

.home-index__row:hover {
  background: color-mix(in srgb, var(--text-primary) 5%, var(--surface));
}

.home-index__row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.home-index__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  grid-column: 2;
}

.home-index__desc {
  display: none;
  font-size: 13px;
  color: var(--text-secondary);
  grid-column: 2;
  grid-row: 2;
  margin-left: 0;
}

.home-index__tag {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 20px;
  white-space: nowrap;
  background: var(--surface-muted);
  border-radius: 0px 0px 0px 15px;
}

.home-index__arrow {
  position: absolute;
  top: 65%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-index__row:hover .home-index__arrow {
  color: var(--text-primary);
}

.home-index__empty {
  padding: 32px 4px;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-index__view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home-index__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 700px) {
  .home-index__controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-index__search {
    max-width: 280px;
  }

  .home-index__row {
    grid-template-columns: 40px 240px 1fr;
  }

  .home-index__desc {
    display: block;
    grid-column: 3;
    grid-row: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Final CTA */
.home-final-cta {
  background: var(--surface-muted);
  padding: 64px 24px 96px;
}

.home-final-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.home-final-cta__heading {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-final-cta__subheading {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .home-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 700px) {
  .home-lines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .home-lines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
