:root {
  --bg: #f3f7ff;
  --text: #000a1f;
  --muted: #1c2740;
  --blue: #0050d6;
  --blue-2: #0b3d91;
  --glass: rgba(255, 255, 255, 0.84);
  --line: rgba(10, 102, 255, 0.18);
  --shadow: 0 12px 44px -16px rgba(10, 60, 160, 0.34);
  --blob: rgba(10, 102, 255, 0.24);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04060d;
    --text: #fff;
    --muted: #d5def2;
    --blue: #7db2ff;
    --blue-2: #1c4fb8;
    --glass: rgba(14, 20, 38, 0.78);
    --line: rgba(90, 150, 255, 0.22);
    --shadow: 0 14px 48px -18px rgba(0, 0, 0, 0.78);
    --blob: rgba(30, 100, 255, 0.26);
    color-scheme: dark;
  }
}
:root[data-theme="light"] {
  --bg: #f3f7ff;
  --text: #000a1f;
  --muted: #1c2740;
  --blue: #0050d6;
  --blue-2: #0b3d91;
  --glass: rgba(255, 255, 255, 0.84);
  --line: rgba(10, 102, 255, 0.18);
  --shadow: 0 12px 44px -16px rgba(10, 60, 160, 0.34);
  --blob: rgba(10, 102, 255, 0.24);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #04060d;
  --text: #fff;
  --muted: #d5def2;
  --blue: #7db2ff;
  --blue-2: #1c4fb8;
  --glass: rgba(14, 20, 38, 0.78);
  --line: rgba(90, 150, 255, 0.22);
  --shadow: 0 14px 48px -18px rgba(0, 0, 0, 0.78);
  --blob: rgba(30, 100, 255, 0.26);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  padding: max(32px, env(safe-area-inset-top)) 20px
    max(28px, env(safe-area-inset-bottom));
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.background i {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  background: var(--blob);
  filter: blur(100px);
}
.background i:first-child {
  top: -20vmax;
  left: -12vmax;
}
.background i:nth-child(2) {
  right: -15vmax;
  top: 24vh;
  background: color-mix(in srgb, var(--blue-2) 36%, transparent);
}
.background i:nth-child(3) {
  bottom: -25vmax;
  left: 22vw;
}
.home-shell {
  width: min(100%, 850px);
  margin: clamp(32px, 10vh, 110px) auto 0;
}
.home-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--glass);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.theme-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.home-header .theme-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
}
.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}
.brand {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.brand[data-logo-mode="dark"] {
  background: transparent;
  box-shadow: none;
}
.eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}
.tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow);
}
.tools h2 {
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.tools h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, var(--glass));
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
.role-chip[hidden] {
  display: none;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--glass) 75%, transparent);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.tool-card[hidden] {
  display: none !important;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 12px 28px -18px var(--blue);
}
.tool-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}
.tool-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}
.tool-icon svg {
  width: 27px;
  height: 27px;
}
.tool-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tool-name {
  font-size: 1.08rem;
  font-weight: 750;
}
.tool-description {
  color: var(--muted);
  font-size: 0.92rem;
}
.tool-arrow {
  margin-left: auto;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 700;
}
footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .home-shell {
    margin-top: clamp(28px, 8vh, 64px);
  }
  .home-header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: "theme theme" "brand copy";
    align-items: start;
    gap: 14px;
    margin-bottom: 32px;
  }
  .home-header .brand {
    grid-area: brand;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .home-header > div {
    grid-area: copy;
    min-width: 0;
  }
  .home-header .theme-toggle {
    grid-area: theme;
    justify-self: end;
    margin-left: 0;
  }
  .tools {
    padding: 20px 16px;
  }
  .tool-card {
    gap: 13px;
    padding: 15px;
    min-height: 92px;
  }
  .tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .tool-name {
    font-size: 1rem;
  }
  .tool-description {
    font-size: 0.84rem;
  }
}
