:root {
  color-scheme: light dark;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f7;
    --bg-elevated: rgba(255, 255, 255, 0.72);
    --text: #121821;
    --muted: #5b6778;
    --accent: #0b6fe0;
    --accent-2: #0aa3a0;
    --accent-soft: rgba(11, 111, 224, 0.1);
    --border: rgba(18, 24, 33, 0.08);
    --shadow: 0 24px 60px rgba(28, 45, 72, 0.1);
    --glow-a: rgba(80, 150, 255, 0.38);
    --glow-b: rgba(60, 210, 190, 0.28);
    --nav-bg: rgba(255, 255, 255, 0.65);
    --chip: rgba(18, 24, 33, 0.05);
    --hero-title: linear-gradient(180deg, #0d1520 0%, #2a3b52 100%);
    --mock-bar: linear-gradient(180deg, #f8fafc, #e8eef6);
    --kbd-bg: #fff;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090d;
    --bg-elevated: rgba(22, 28, 38, 0.62);
    --text: #eef3fb;
    --muted: #93a0b5;
    --accent: #6cb4ff;
    --accent-2: #4ce0d0;
    --accent-soft: rgba(108, 180, 255, 0.14);
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --glow-a: rgba(70, 130, 255, 0.32);
    --glow-b: rgba(50, 210, 190, 0.2);
    --nav-bg: rgba(12, 16, 24, 0.55);
    --chip: rgba(255, 255, 255, 0.06);
    --hero-title: linear-gradient(180deg, #ffffff 0%, #b8c7dc 100%);
    --mock-bar: linear-gradient(180deg, #2a3342, #1a212c);
    --kbd-bg: #1a212c;
  }
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

body::before {
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  top: -18vw;
  left: -8vw;
  background: var(--glow-a);
}

body::after {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  right: -10vw;
  top: 18vh;
  background: var(--glow-b);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

a:hover { opacity: 0.8; }

.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: var(--shadow);
}

.lang-menu {
  position: relative;
}

.lang-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-menu.is-open .lang-toggle {
  color: var(--text);
  background: var(--chip);
}

.lang-toggle .ph {
  font-size: 1.05rem;
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.18s var(--ease);
}

.lang-menu.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 168px;
  padding: 6px;
  display: none;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.lang-menu.is-open .lang-panel {
  display: grid;
  gap: 2px;
}

.lang-option {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}

.lang-option:hover {
  background: var(--chip);
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand:hover { opacity: 1; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.brand-name {
  font-weight: 650;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

nav a:hover,
nav a.is-active {
  color: var(--text);
  background: var(--chip);
  opacity: 1;
}

.hero {
  padding: 92px 8px 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px auto 16px;
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  background: var(--hero-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 auto 32px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn .ph {
  font-size: 1.12rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.mock {
  margin: 56px auto 0;
  max-width: 760px;
  padding: 14px;
  border-radius: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 16px;
  background: var(--mock-bar);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.metrics {
  display: flex;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

.metrics strong {
  color: var(--text);
  font-weight: 650;
}

.section {
  margin-top: 72px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.feature-card {
  --icon-color: var(--accent);
  --icon-bg: var(--accent-soft);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  inset-inline-end: -52px;
  top: -58px;
  border-radius: 50%;
  background: var(--icon-color);
  opacity: 0.06;
  filter: blur(12px);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--icon-color) 30%, var(--border));
}

.tone-blue   { --icon-color: #4b9cff; --icon-bg: rgba(75, 156, 255, 0.13); }
.tone-indigo { --icon-color: #7488ff; --icon-bg: rgba(116, 136, 255, 0.13); }
.tone-cyan   { --icon-color: #38c8d8; --icon-bg: rgba(56, 200, 216, 0.13); }
.tone-violet { --icon-color: #a678f2; --icon-bg: rgba(166, 120, 242, 0.13); }
.tone-green  { --icon-color: #35bd83; --icon-bg: rgba(53, 189, 131, 0.13); }
.tone-amber  { --icon-color: #e99d3f; --icon-bg: rgba(233, 157, 63, 0.13); }

.card h2,
.card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.card h3 { font-size: 1.05rem; }

.card p:last-child { margin-bottom: 0; }

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 16px;
  background: var(--icon-bg, var(--accent-soft));
  color: var(--icon-color, var(--accent));
  border: 1px solid color-mix(in srgb, var(--icon-color, var(--accent)) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon .ph {
  font-size: 1.35rem;
  line-height: 1;
}

.page-head {
  padding: 72px 8px 28px;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.stack {
  display: grid;
  gap: 16px;
}

.faq + .faq {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.faq strong { display: block; margin-bottom: 6px; }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--kbd-bg);
  border: 1px solid var(--border);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip);
}

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

@media (max-width: 640px) {
  .site { padding: 16px 16px 56px; }
  .topbar { top: 10px; }
  .hero { padding-top: 48px; }
  .grid { grid-template-columns: 1fr; }
  nav a,
  .lang-toggle { padding: 8px 10px; }
  .metrics { justify-content: flex-end; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .lang-caret {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
