/* Shared home-page visual system for the recovered static build. */
.site-header {
  width: min(1320px, calc(100% - 48px));
  height: 78px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 0 0 20px 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 8px 26px rgb(20 37 34 / 5%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  letter-spacing: -.045em;
}

.brand-mark {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--teal) 25%, transparent);
}

.nav-links {
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  padding: 10px 12px;
  transition: color .18s, background .18s, transform .18s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.network-pill {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 10px;
  font-weight: 750;
}

.network-pill.online {
  color: var(--teal);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}

.icon-button:hover {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  transform: translateY(-1px);
}

.home-language-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.home-language-control button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}

.home-language-control button.active {
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(23 37 34 / 10%);
}

.home-language-control button:focus-visible,
.icon-button:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 62%, white);
  outline-offset: 2px;
}

.home-native-theme-toggle {
  display: none !important;
}

.home-theme-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.home-theme-control select {
  min-width: 78px;
  min-height: 38px;
  padding: 0 25px 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  grid-template-rows: auto auto auto auto 1fr;
  align-items: center;
  column-gap: clamp(36px, 5vw, 78px);
  row-gap: 0;
  width: min(1320px, calc(100% - 48px));
  min-height: 540px;
  margin: 30px auto 38px;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgb(137 160 255 / 25%);
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 86% 15%, rgb(65 97 227 / 43%), transparent 28rem),
    radial-gradient(ellipse at 5% 110%, rgb(30 161 177 / 21%), transparent 30rem),
    linear-gradient(123deg, #090c19 0%, #111831 57%, #121f45 100%);
  box-shadow: 0 28px 78px rgb(17 29 68 / 20%);
  color: #f7f8ff;
  text-align: left;
}

.hero::before {
  z-index: -1;
  top: -155px;
  right: 22%;
  width: 390px;
  height: 390px;
  border: 1px solid rgb(142 164 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(121 149 255 / 5%), 0 0 0 76px rgb(121 149 255 / 4%);
  opacity: 1;
}

.home-hero-eyebrow {
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgb(140 161 255 / 27%);
  border-radius: 999px;
  background: rgb(96 123 255 / 12%);
  color: #d0d9ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.home-hero-title {
  grid-column: 1;
  grid-row: 2;
  max-width: 700px;
  margin: 0;
  color: #fbfcff;
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.home-hero-title em {
  color: #ff806a;
  font-style: italic;
}

.home-hero-copy {
  grid-column: 1;
  grid-row: 3;
  max-width: 620px;
  margin: 20px 0 0;
  color: #bdc7e2;
  font-size: 14px;
  line-height: 1.85;
}

.home-hero-search {
  grid-column: 1;
  grid-row: 4;
  max-width: 650px;
  min-height: 64px;
  margin: 28px 0 0;
  border: 1px solid #dce3f7;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 16px 36px rgb(0 0 0 / 18%);
}

.home-hero-search:focus-within {
  border-color: #91a8ff;
  box-shadow: 0 0 0 4px rgb(111 145 255 / 20%), 0 16px 36px rgb(0 0 0 / 18%);
}

.home-hero-search input {
  min-width: 0;
  color: #19233f;
}

.home-hero-search input::placeholder {
  color: #788197;
}

.home-hero-trust {
  grid-column: 1;
  grid-row: 5;
  justify-content: flex-start;
  gap: 9px 21px;
  margin-top: 18px;
  color: #b9c8e1;
  font-size: 10px;
}

.home-hero-trust svg {
  color: #70d6c2;
}

.home-hero-panel {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: stretch;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgb(163 178 229 / 22%);
  border-radius: 25px;
  background: linear-gradient(145deg, rgb(21 30 62 / 94%), rgb(12 18 39 / 94%));
  box-shadow: 0 24px 54px rgb(0 0 0 / 22%), inset 0 1px rgb(255 255 255 / 5%);
  color: #f7f8ff;
}

.home-panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdc9e9;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}

.home-live-dot,
.home-panel-foot > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6fd2c3;
  box-shadow: 0 0 14px rgb(111 210 195 / 75%);
}

.home-panel-tag {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid rgb(111 210 195 / 20%);
  border-radius: 999px;
  background: rgb(111 210 195 / 9%);
  color: #8fe0d0;
  font-size: 8px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.home-panel-intro {
  margin: 27px 0 19px;
}

.home-panel-intro p {
  margin: 0 0 7px;
  color: #96a5ca;
  font-size: 10px;
  font-weight: 700;
}

.home-panel-intro h2 {
  max-width: 340px;
  margin: 0;
  color: #fbfcff;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.28;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.home-metrics > div {
  display: grid;
  gap: 2px;
  padding: 14px 15px;
  border: 1px solid rgb(163 178 229 / 15%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
}

.home-metrics strong {
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.home-metrics span {
  color: #abb8d7;
  font-size: 9px;
  font-weight: 700;
}

.home-route-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 67px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  transition: background .18s, border-color .18s, transform .18s;
}

.home-route-card:hover {
  transform: translateX(2px);
  border-color: rgb(150 169 232 / 20%);
  background: rgb(255 255 255 / 5%);
}

.home-route-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(131 156 255 / 22%);
  border-radius: 11px;
  background: rgb(98 125 255 / 13%);
  color: #bfcaff;
  font-size: 9px;
  font-weight: 850;
}

.home-route-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-route-card strong {
  color: #edf0ff;
  font-size: 11px;
  font-weight: 800;
}

.home-route-card small {
  overflow: hidden;
  color: #9aa8c8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-route-card > b {
  margin-left: auto;
  color: #8da4ff;
  font-size: 15px;
}

.home-panel-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgb(163 178 229 / 15%);
  color: #a8b5d2;
  font-size: 9px;
  line-height: 1.5;
}

.personal-hub,
.tool-section,
.roadmap {
  width: min(1240px, calc(100% - 48px));
}

.personal-hub {
  padding-top: 13px;
}

.personal-heading {
  align-items: end;
  margin-bottom: 19px;
}

.section-kicker {
  letter-spacing: .17em;
}

.personal-heading h2,
.section-heading h2 {
  letter-spacing: -.055em;
}

.personal-grid {
  gap: 13px;
}

.personal-grid > article {
  min-height: 155px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 89%, transparent);
  box-shadow: 0 7px 22px rgb(24 46 40 / 4%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.personal-grid > article:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  box-shadow: var(--shadow);
}

.tool-section {
  padding-top: 70px;
}

.popular-strip {
  gap: 8px;
}

.popular-strip button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.library-controls {
  border-radius: 17px;
}

.category-tabs button {
  min-height: 38px;
  border-radius: 10px;
  font-weight: 750;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.tool-card-shell {
  position: relative;
}

.tool-card {
  min-height: 146px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgb(24 46 40 / 4%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.tool-card.ready:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 18px 34px rgb(24 46 40 / 10%);
}

.tool-card > span:last-child {
  line-height: 1.65;
}

.tool-icon {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.favorite-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.favorite-button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.privacy-section {
  width: min(1240px, calc(100% - 48px));
  border: 1px solid rgb(143 162 228 / 22%);
  background:
    radial-gradient(ellipse at 80% 0, rgb(77 105 232 / 25%), transparent 28rem),
    linear-gradient(125deg, #0e1428, #172349);
}

.privacy-section h2,
.privacy-section h3 {
  color: #f5f7ff;
}

.privacy-section p,
.privacy-section li {
  color: #bdc7df;
}

.privacy-visual {
  filter: drop-shadow(0 22px 35px rgb(0 0 0 / 25%));
}

.roadmap {
  padding-top: 85px;
}

.roadmap-list article {
  border-bottom-color: var(--line);
}

footer {
  width: min(1240px, calc(100% - 48px));
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 32px);
    padding-inline: 13px;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto auto;
    gap: 0;
    width: calc(100% - 32px);
    min-height: 0;
    padding: 35px clamp(24px, 6vw, 55px);
    text-align: center;
  }

  .home-hero-eyebrow,
  .home-hero-title,
  .home-hero-copy,
  .home-hero-search,
  .home-hero-trust,
  .home-hero-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .home-hero-eyebrow {
    justify-self: center;
    margin-bottom: 17px;
  }

  .home-hero-title,
  .home-hero-copy,
  .home-hero-search {
    justify-self: center;
    text-align: center;
  }

  .home-hero-panel {
    width: min(100%, 560px);
    min-height: 0;
    margin: 31px auto 0;
    text-align: left;
  }

  .home-hero-trust {
    justify-content: center;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 24px);
    height: 66px;
    padding-inline: 8px;
    border-radius: 0 0 15px 15px;
  }

  .brand {
    gap: 7px;
    font-size: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 5px;
  }

  .home-theme-control > span {
    display: none;
  }

  .home-theme-control select {
    min-width: 66px;
    min-height: 35px;
    padding: 0 19px 0 8px;
    border-radius: 10px;
    font-size: 9px;
  }

  .home-language-control {
    padding: 2px;
    border-radius: 10px;
  }

  .home-language-control button {
    min-width: 30px;
    min-height: 29px;
    padding-inline: 6px;
    font-size: 9px;
  }

  .network-pill {
    display: none;
  }

  .icon-button {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .nav-links {
    top: 59px;
    right: 0;
    width: min(290px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 17px;
    box-shadow: 0 24px 48px rgb(12 22 40 / 18%);
  }

  .nav-links a {
    min-height: 42px;
    padding: 11px 13px;
    font-size: 12px;
  }

  .hero {
    width: calc(100% - 24px);
    margin: 17px auto 28px;
    padding: 29px 18px 20px;
    border-radius: 23px;
  }

  .home-hero-title {
    font-size: clamp(36px, 10vw, 51px);
  }

  .home-hero-copy {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.75;
  }

  .home-hero-search {
    min-height: 56px;
    margin-top: 20px;
  }

  .home-hero-trust {
    gap: 8px 14px;
    margin-top: 14px;
    font-size: 9px;
  }

  .home-hero-panel {
    margin-top: 22px;
    padding: 18px;
    border-radius: 19px;
  }

  .home-panel-top {
    gap: 7px;
    font-size: 8px;
  }

  .home-panel-tag {
    padding: 6px 7px;
    font-size: 7px;
  }

  .home-panel-intro {
    margin: 20px 0 14px;
  }

  .home-panel-intro h2 {
    font-size: 22px;
  }

  .home-metrics > div {
    padding: 12px;
  }

  .personal-hub,
  .tool-section,
  .roadmap,
  .privacy-section,
  footer {
    width: calc(100% - 24px);
  }

  .personal-hub {
    padding-top: 8px;
  }

  .personal-grid > article {
    min-height: 124px;
    padding: 16px;
    border-radius: 16px;
  }

  .tool-section {
    padding-top: 48px;
  }

  .library-controls {
    top: 66px;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tool-card {
    min-height: 120px;
    padding: 16px;
    border-radius: 16px;
  }

  .privacy-section {
    padding: 31px 20px;
    border-radius: 22px;
  }

  .roadmap {
    padding-top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-route-card,
  .personal-grid > article,
  .tool-card,
  .nav-links a {
    transition-duration: .01ms;
  }
}
