:root {
  --bg: #07111f;
  --bg-2: #0b1628;
  --panel: rgba(15, 23, 42, 0.78);
  --border: rgba(94, 234, 212, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-soft: #5eead4;
  --accent-deep: #0f766e;
  --font: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
}

body.site {
  position: relative;
  overflow-x: hidden;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(700px 420px at 88% 8%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #07111f 0%, #0b1628 48%, #07111f 100%);
  animation: bg-drift 18s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(0, -12px, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.site-brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}
.site-brand:hover { text-decoration: none; color: var(--accent-soft); }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.site-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-soft);
  background: rgba(20, 184, 166, 0.1);
}

.site-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-link {
  color: var(--muted);
  font-size: 14px;
}
.site-btn,
.site-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.site-btn {
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
  color: #042f2e;
}
.site-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.site-btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: rgba(94, 234, 212, 0.35);
}
.site-btn-ghost:hover {
  text-decoration: none;
  background: rgba(20, 184, 166, 0.1);
}
.site-btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.site-menu-btn {
  display: none;
  margin-left: auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent-soft);
  font-weight: 600;
  cursor: pointer;
}

.site-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px 16px;
  background: rgba(7, 17, 31, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}
.site-drawer a {
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.site-drawer a:hover { background: rgba(20, 184, 166, 0.1); color: var(--accent-soft); }
.site-drawer.open { display: flex; }

.site-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0 48px;
}

.hero-copy,
.page-hero,
.section {
  animation: rise 0.7s ease both;
}
.hero-visual { animation: rise 0.9s ease 0.12s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand,
.page-hero .hero-brand {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
  max-width: 16ch;
}

.hero-lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-panel {
  position: absolute;
  inset: 8% 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(2, 6, 23, 0.55);
}
.hero-panel-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}
.hero-panel-top span:nth-child(1) { background: #fb7185; }
.hero-panel-top span:nth-child(2) { background: #fbbf24; }
.hero-panel-top span:nth-child(3) { background: #34d399; }
.hero-panel-top code {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.hero-code,
.docs-code {
  margin: 0;
  padding: 18px 16px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}
.hero-code .k { color: var(--accent-soft); }
.hero-code .s { color: #7dd3fc; }
.hero-code .c { color: #64748b; }

.page-hero {
  padding: 18px 0 10px;
}
.page-hero h1 { max-width: 18ch; }

.section {
  margin-top: 56px;
}
.section-head h2,
.section > h2,
.docs-section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.section-head p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.feature-row > div {
  padding: 8px 4px;
  border-top: 1px solid rgba(94, 234, 212, 0.22);
}
.feature-row h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 18px;
}
.feature-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.section-cta {
  padding: 36px 0 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}
.section-cta p { color: var(--muted); margin: 8px 0 0; }

.price-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}
.price-table th { color: var(--muted); font-weight: 500; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table code {
  font-family: var(--mono);
  color: var(--accent-soft);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.pack {
  position: relative;
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.72);
}
.pack-hot {
  border-color: rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.28), rgba(15, 23, 42, 0.85));
}
.pack-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  color: #042f2e;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.pack h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
}
.pack-points {
  margin: 12px 0 8px;
  font-family: var(--display);
}
.pack-points strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}
.pack p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pack .site-btn,
.pack .site-btn-ghost { margin-top: 14px; width: 100%; }

.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.bullet-list strong { color: var(--text); }

.docs-section { max-width: 760px; }
.docs-section p {
  color: var(--muted);
  line-height: 1.7;
}
.docs-section code,
.steps code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent-soft);
}
.docs-code {
  margin: 12px 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
}
.steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.faq h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 16px;
}
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding: 28px 20px 40px;
}
.site-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--display);
}
.site-footer-brand img { border-radius: 6px; }
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer-contact {
  margin-top: 6px !important;
  color: var(--accent-soft) !important;
}
.site-footer-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.site-footer-links a { color: var(--muted); font-size: 14px; }
.site-footer-links a:hover { color: var(--accent-soft); }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }
  .hero h1,
  .page-hero h1 { max-width: none; }
  .hero-visual { min-height: 260px; }
  .hero-panel {
    position: relative;
    inset: auto;
    transform: none;
  }
  .feature-row,
  .pack-grid,
  .faq {
    grid-template-columns: 1fr;
  }
  .site-nav,
  .site-actions { display: none; }
  .site-menu-btn { display: inline-flex; align-items: center; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 14px; }
  .site-main { width: calc(100% - 28px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .site-btn,
  .hero-cta .site-btn-ghost { width: 100%; }
}
