:root {
  color-scheme: light;
  --bg: #f5faf8;
  --bg-soft: #eef7f4;
  --text: #0f172a;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --teal: #10a896;
  --teal-dark: #067a6e;
  --cyan: #36c7d4;
  --mint: #d8fbf4;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;
  --bg-soft: #17231f;
  --text: #edf7f5;
  --muted: #a8b8b5;
  --line: rgba(237, 247, 245, 0.12);
  --panel: rgba(18, 31, 37, 0.78);
  --panel-strong: rgba(17, 29, 35, 0.94);
  --teal: #35d1bd;
  --teal-dark: #0ea896;
  --cyan: #66dbe3;
  --mint: rgba(53, 209, 189, 0.16);
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(16, 168, 150, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 168, 150, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 88% 18%, rgba(54, 199, 212, 0.19), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(16, 168, 150, 0.12), transparent 32%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  background-size: 86px 86px, 86px 86px, auto, auto, auto;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 30%);
  pointer-events: none;
}

:root[data-theme="dark"] body::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.52), transparent 36%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus {
  outline: none;
}

a:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(16, 168, 150, 0.38);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-shell {
  width: min(100%, 1320px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 52px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.icon-text-button,
.login-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #324056;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .icon-text-button,
:root[data-theme="dark"] .login-button {
  color: #d7e7e4;
  background: rgba(15, 23, 42, 0.52);
}

.icon-button:hover,
.icon-text-button:hover,
.login-button:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--panel-strong);
}

.icon-button {
  width: 40px;
}

.icon-button svg,
.icon-text-button svg {
  width: 18px;
  height: 18px;
}

.icon-text-button {
  gap: 6px;
  padding: 0 10px;
  cursor: pointer;
}

.flag {
  font-size: 15px;
  line-height: 1;
}

.theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.login-button {
  min-width: 72px;
  padding: 0 19px;
  color: #fff;
  background: #111827;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.login-button:hover {
  color: #fff;
  background: #0b1220;
}

:root[data-theme="dark"] .login-button {
  background: #f8fafc;
  color: #111827;
}

:root[data-theme="dark"] .login-button:hover {
  color: #111827;
  background: #fff;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1fr);
  gap: 72px;
  align-items: center;
  padding: 74px 12px 42px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

:root[data-theme="dark"] .eyebrow {
  color: var(--teal);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-subtitle {
  width: min(100%, 560px);
  margin: 18px 0 30px;
  color: #475467;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 650;
  line-height: 1.45;
}

:root[data-theme="dark"] .hero-subtitle {
  color: #c6d5d2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-action {
  padding: 0 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 16px 30px rgba(16, 168, 150, 0.28);
}

.primary-action svg,
.secondary-action svg {
  width: 22px;
  height: 22px;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  box-shadow: 0 20px 34px rgba(16, 168, 150, 0.34);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-strong);
}

.secondary-action:hover {
  border-color: rgba(16, 168, 150, 0.35);
}

.terminal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, #142033, #08111f);
  box-shadow:
    0 26px 62px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(4px);
}

.terminal-top {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.red {
  background: #ff5f57;
}

.amber {
  background: #ffbd2e;
}

.green {
  background: #28c840;
}

.terminal-title {
  position: absolute;
  right: 0;
  left: 0;
  color: #76859c;
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  pointer-events: none;
}

.terminal-body {
  min-height: 214px;
  padding: 24px 28px 26px;
  color: #aab6c8;
  font: 600 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.indent {
  padding-left: 18px;
}

.prompt {
  color: #26d07c;
}

.cmd {
  color: #6ed0ff;
}

.flag {
  color: #b99cff;
}

.url {
  color: #d6dce8;
}

.text {
  color: #d6dce8;
}

.ok {
  display: inline-flex;
  margin: 12px 0 8px;
  padding: 2px 9px;
  border-radius: 5px;
  color: #1dd782;
  background: rgba(29, 215, 130, 0.14);
}

.json {
  color: #ffc66d;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 17px;
  margin-left: 6px;
  background: #25d77c;
  vertical-align: -3px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  padding: 8px 0 28px;
}

.pill {
  display: inline-flex;
  min-width: 170px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  color: #344054;
  font-weight: 750;
}

:root[data-theme="dark"] .pill {
  color: #d2dfdd;
}

.pill svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 0 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 168, 150, 0.28);
  box-shadow: var(--shadow);
}

.feature-media {
  position: relative;
  height: 172px;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dde7e4;
}

.feature-media::before {
  position: absolute;
  inset: -12px;
  content: "";
  background: inherit;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
}

.feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}

.cat-stable .feature-media img {
  object-position: 50% 45%;
}

.cat-simple .feature-media img {
  object-position: 54% 46%;
}

.cat-metered .feature-media img {
  object-position: 50% 30%;
}

.feature-icon {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(226, 255, 248, 0.9);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.11);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h2 {
  margin: 18px 18px 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-card p {
  min-height: 74px;
  margin: 0 18px 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

.download-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 28px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.download-logo {
  display: flex;
  width: 94px;
  height: 94px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0eaa97;
  background:
    radial-gradient(circle, #f7fffd 42%, transparent 43%),
    linear-gradient(135deg, rgba(16, 168, 150, 0.18), rgba(54, 199, 212, 0.12));
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.download-copy h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: #6b7586;
  font-size: 14px;
  font-weight: 700;
}

:root[data-theme="dark"] .platforms {
  color: #b1c0bd;
}

.platforms span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--teal);
  vertical-align: 1px;
}

.download-actions {
  display: flex;
  gap: 14px;
}

.compact {
  min-width: 190px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 32px;
  color: #7a8798;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.footer p {
  margin: 0;
}

.paw-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.paw-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1100px) {
  .page-shell {
    padding: 24px 32px 30px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 58px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .terminal-panel {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .download-band {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .download-actions a {
    flex: 1;
  }
}

@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-media {
    height: 230px;
  }

  .feature-card p {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 16px 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-actions {
    gap: 8px;
  }

  .icon-button,
  .icon-text-button,
  .login-button {
    height: 38px;
  }

  .login-button {
    min-width: 64px;
    padding: 0 15px;
  }

  .hero-section {
    padding: 40px 0 28px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .terminal-body {
    padding: 20px 18px 22px;
    font-size: 12px;
  }

  .pill-row {
    gap: 12px;
  }

  .pill {
    width: 100%;
  }

  .feature-media {
    height: 206px;
  }

  .download-band {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
    text-align: center;
  }

  .download-logo {
    margin: 0 auto;
  }

  .platforms,
  .download-actions {
    justify-content: center;
  }

  .download-actions {
    flex-direction: column;
  }
}
