@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local("Open Sans");
}

html {
  background: #fff;
  color-scheme: light;
  scroll-behavior: smooth;
}

html.dark {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 35rem),
    linear-gradient(180deg, #0b1220, #07111d 52%, #050b13);
  color-scheme: dark;
}

body {
  background: #fff;
  font-family: "Open Sans", Inter, system-ui, sans-serif;
  transition: background 180ms ease, color 180ms ease;
}

html.dark body {
  background: #07111d;
  color: #b8c7d6;
}

.nav-link {
  position: relative;
  transition: color 160ms ease;
}

.nav-link::after {
  background: #38bdf8;
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  width: 100%;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #bae6fd;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.account-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 190, 235, 0.28);
  border-radius: 999px;
  color: #e5f2ff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1.05rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-link:hover,
.account-link:focus-visible {
  background: rgba(1, 112, 185, 0.18);
  border-color: rgba(125, 211, 252, 0.56);
  color: #fff;
  transform: translateY(-1px);
}

.theme-toggle {
  align-items: center;
  background: rgba(234, 244, 252, 0.92);
  border: 1px solid rgba(125, 190, 235, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 8px 22px rgba(2, 6, 23, 0.16);
  color: #42617a;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 3px;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 68px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(125, 211, 252, 0.78);
  color: #0f3554;
}

.theme-toggle-thumb {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 5px 13px rgba(15, 53, 84, 0.2);
  height: 26px;
  left: 4px;
  position: absolute;
  top: 3px;
  transition: transform 180ms ease, background 180ms ease;
  width: 30px;
}

.theme-toggle-label {
  align-items: center;
  display: inline-flex;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.theme-toggle-dark {
  color: rgba(66, 97, 122, 0.58);
}

html.dark .theme-toggle {
  background: #0e1a2b;
  border-color: rgba(125, 190, 235, 0.42);
  color: rgba(244, 248, 251, 0.55);
}

html.dark .theme-toggle:hover,
html.dark .theme-toggle:focus-visible {
  border-color: rgba(125, 211, 252, 0.52);
  color: #f4f8fb;
}

html.dark .theme-toggle-thumb {
  background: #223a59;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.46);
  transform: translateX(30px);
}

html.dark .theme-toggle-dark {
  color: #f4f8fb;
}

html.dark .theme-toggle-light {
  color: rgba(244, 248, 251, 0.58);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-bars::before {
  transform: translateY(-7px);
}

.menu-bars::after {
  transform: translateY(5px);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.44) 48%, rgba(2, 6, 23, 0.28)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.58));
}

.hero-banner {
  height: 500px;
}

.hero-banner-content {
  height: 100%;
}

.hero-title {
  font-size: clamp(2.75rem, 4vw, 4.65rem);
  line-height: 1.1;
  max-width: 58rem;
}

html.dark .hero-overlay {
  background:
    radial-gradient(circle at 22% 38%, rgba(1, 112, 185, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(3, 10, 20, 0.76), rgba(7, 17, 29, 0.5) 48%, rgba(7, 17, 29, 0.36)),
    linear-gradient(180deg, rgba(3, 10, 20, 0.26), rgba(3, 10, 20, 0.56));
}

.section-kicker {
  color: #0170b9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  color: #17233a;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.content-panel h2 {
  color: #17233a;
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2rem;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel p {
  color: #475569;
  line-height: 1.8;
  margin-top: 1rem;
}

.content-panel ul {
  color: #475569;
  list-style: disc;
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.content-panel li {
  margin-top: 0.6rem;
}

.content-panel a {
  color: #0170b9;
  font-weight: 700;
  text-decoration: none;
}

.content-panel a:hover,
.content-panel a:focus-visible {
  color: #075985;
  text-decoration: underline;
}

.content-panel code {
  background: #eef6fc;
  border: 1px solid #c9e5f7;
  border-radius: 4px;
  color: #075985;
  font-size: 0.92em;
  padding: 0.12rem 0.35rem;
}

.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
}

html.dark .bg-white,
html.dark .bg-slate-50 {
  background-color: #07111d !important;
}

html.dark .info-card {
  background: #111d2e;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
}

html.dark .section-title,
html.dark .content-panel h2 {
  color: #f8fafc;
}

html.dark .content-panel p,
html.dark .content-panel ul {
  color: #b8c7d6;
}

html.dark .content-panel code {
  background: #0e1a2b;
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

html.dark .tool-link {
  border-color: rgba(125, 190, 235, 0.2);
  color: #bae6fd;
}

@media (max-width: 640px) {
  .hero-banner {
    height: 440px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }
}

.tool-link {
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  color: #075985;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.9rem 1rem;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  border-color: #38bdf8;
  color: #0170b9;
  transform: translateY(-1px);
}
