:root {
  --bg: #f4f2ea;
  --bg-soft: #faf8f1;
  --surface: #fffdf6;
  --line: #ddd6c8;
  --text: #102231;
  --muted: #546470;
  --teal: #0b8c84;
  --teal-deep: #0b5f6f;
  --amber: #c96d1a;
  --ink-mono: #102231;
  --shadow-lg: 0 20px 55px rgba(16, 34, 49, 0.12);
  --shadow-sm: 0 8px 22px rgba(16, 34, 49, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Public Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 34, 49, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 34, 49, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
}

.bg-orb {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.3;
  pointer-events: none;
}

.orb-a {
  width: 440px;
  height: 440px;
  left: -140px;
  top: -100px;
  background: radial-gradient(circle at 30% 30%, #1db5a9 0%, #0b8c84 45%, transparent 70%);
  animation: float-a 16s ease-in-out infinite;
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 220px;
  background: radial-gradient(circle at 60% 40%, #e09a57 0%, #c96d1a 45%, transparent 72%);
  animation: float-b 18s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg-soft) 88%, white 12%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 60px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: white;
  font-size: 14px;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--teal-deep);
}

main {
  padding: 28px clamp(20px, 4vw, 60px) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fffef9 10%, #f6f1e4 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 12px 0 14px;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
}

.hero-copy {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(125deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 10%, white 90%);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line) 65%);
}

.btn-outline {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.hero-metrics {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article {
  background: color-mix(in srgb, var(--surface) 88%, #e9f6f4 12%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.hero-metrics h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-metrics p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trust p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.82rem;
}

.section {
  margin-top: clamp(44px, 7vw, 90px);
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  max-width: 18ch;
}

.feature-grid,
.security-grid,
.release-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

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

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.workflow .steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px;
}

.steps span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: "Sora", sans-serif;
}

.steps h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tabs {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-family: "Public Sans", sans-serif;
  cursor: pointer;
}

.tab.is-active {
  background: linear-gradient(120deg, var(--teal), var(--teal-deep));
  color: white;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.code-card {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--teal) 28%);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f1c2a;
  box-shadow: var(--shadow-sm);
}

.code-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #16283b;
}

.code-card h3 {
  margin: 0;
  color: #e7f1ff;
  font-size: 0.95rem;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: transparent;
  color: #d7e6fa;
  font-size: 0.8rem;
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.code-card pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
}

.code-card code {
  font-family: "JetBrains Mono", monospace;
  color: #e8f6ff;
  font-size: 0.86rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: stretch;
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.plain-list li {
  margin-top: 8px;
}

.compact {
  margin-top: 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-top: 10px;
  padding: 10px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.footer {
  margin: 46px clamp(20px, 4vw, 60px) 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fffdf7 0%, #eef7f6 100%);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer strong {
  font-family: "Sora", sans-serif;
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 18px) scale(1.04);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, -12px) scale(1.02);
  }
}

@media (max-width: 1040px) {
  .feature-grid,
  .security-grid,
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .security-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    grid-template-columns: 1fr;
  }
}
