:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --text: #1a1d24;
  --text-soft: #5a6273;
  --text-mute: #8a92a3;
  --line: #e6e9f0;
  --blue: #2563eb;
  --blue-soft: #dbe6ff;
  --blue-glow: #b8ccff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --term-bg: #0d1220;
  --term-bg-2: #131a2c;
  --term-line: #1e273d;
  --term-text: #c9d3e8;
  --term-green: #4ade80;
  --term-blue: #60a5fa;
  --term-red: #f87171;
  --term-yellow: #fbbf24;
  --term-mute: #5a6784;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.nav-links {
  display: flex; gap: 30px; list-style: none;
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: #1d4ed8; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn-lg svg { width: 18px; height: 18px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; overflow: hidden;
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.hero.fade-out {
  opacity: 0; filter: blur(12px); transform: translateY(-40px);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(184, 204, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(219, 230, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(219, 230, 255, 0.5), transparent 70%),
    #fbfcff;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; width: 100%; text-align: center; }

.announce {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 28px; backdrop-filter: blur(6px);
}
.announce-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.announce a { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.announce a svg { width: 12px; height: 12px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.08;
  color: #0f1729; margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #2563eb, #6b8dff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 500;
}
.hero-sub {
  font-size: 17px; color: var(--text-soft);
  max-width: 560px; margin: 0 auto 40px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
}
.hero-card-text { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 15px; }
.hero-card-text svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.hero-card code { background: var(--bg-soft); padding: 3px 8px; border-radius: 6px; color: var(--blue); }

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; color: var(--text);
  transition: all 0.2s; cursor: pointer;
}
.pill:hover {
  border-color: var(--blue); color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}
.pill svg { width: 16px; height: 16px; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 1;
  color: var(--text-mute); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint svg { width: 16px; height: 16px; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============ MAIN ============ */
.main-content {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.main-content.visible { opacity: 1; transform: translateY(0); }

.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 500;
  letter-spacing: -0.02em; text-align: center;
  margin-bottom: 14px; color: #0f1729;
}
.section-sub {
  text-align: center; color: var(--text-soft);
  font-size: 16px; margin-bottom: 56px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ============ GRID / CARDS ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--blue-glow); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #0f1729; }
.card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }

/* ============ TERMINAL ============ */
.terminal-wrap { max-width: 820px; margin: 0 auto; }
.terminal {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(13, 18, 32, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  border: 1px solid var(--term-line);
  transition: box-shadow 0.3s, transform 0.3s;
}
.terminal:hover {
  box-shadow: 0 24px 70px rgba(13, 18, 32, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.2);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-line);
}
.term-dots { display: flex; gap: 7px; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title {
  margin-left: auto; margin-right: auto;
  color: var(--term-mute); font-size: 12.5px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.term-body {
  padding: 22px 24px 16px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--term-text);
  height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--term-line) transparent;
  cursor: text;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-thumb { background: var(--term-line); border-radius: 3px; }

.term-line { display: flex; gap: 10px; margin-bottom: 2px; align-items: flex-start; }
.term-prompt { color: var(--term-blue); flex-shrink: 0; user-select: none; }
.term-input { color: #fff; word-break: break-word; flex: 1; }
.term-caret {
  display: inline-block; width: 8px; height: 15px;
  background: var(--term-blue); vertical-align: middle;
  margin-left: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-reply { color: var(--term-green); padding-left: 22px; margin-bottom: 2px; word-break: break-word; }
.term-reply::before { content: '› '; opacity: 0.55; }
.term-reply.err { color: var(--term-red); }
.term-reply.warn { color: var(--term-yellow); }

/* real input line */
.term-inputline {
  display: flex; gap: 10px; align-items: center;
  margin-top: 4px;
}
.term-inputline .term-prompt { user-select: none; }
.term-inputline input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  caret-color: var(--term-blue);
}
.term-inputline input::placeholder { color: var(--term-mute); }

.term-hint {
  padding: 10px 24px 14px;
  border-top: 1px solid var(--term-line);
  color: var(--term-mute);
  font-size: 12px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.term-hint kbd {
  background: var(--term-bg-2);
  border: 1px solid var(--term-line);
  padding: 1px 6px; border-radius: 4px;
  font-family: inherit; font-size: 11px;
  color: var(--term-text);
}

/* ============ QUICK COMMANDS ============ */
.quick-cmds {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 900px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.quick-cmds-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.quick-cmds-head h3 {
  font-size: 18px; font-weight: 600; color: #0f1729;
  display: flex; align-items: center; gap: 10px;
}
.quick-cmds-head h3 svg { width: 20px; height: 20px; color: var(--blue); }
.quick-cmds-head .hint { font-size: 13px; color: var(--text-mute); }
.quick-cmds-head a { font-size: 14px; color: var(--blue); font-weight: 600; }
.quick-cmds-head a:hover { text-decoration: underline; }

.cmd-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cmd-row + .cmd-row { margin-top: 10px; }

.cmd {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px; color: var(--text);
  cursor: pointer; transition: all 0.15s;
}
.cmd:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.cmd.copied {
  border-color: var(--blue); background: var(--blue-soft); color: var(--blue);
}
.cmd svg { width: 13px; height: 13px; opacity: 0.5; flex-shrink: 0; }
.cmd.copied svg { opacity: 1; }

/* ============ STATS ============ */
.stats-grid { text-align: center; }
.stat {
  padding: 40px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stat-num {
  font-size: clamp(32px, 5vw, 48px); font-weight: 600;
  letter-spacing: -0.03em; color: var(--blue);
  margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 14px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ============ PRICING ============ */
.price-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 30px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.price-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.price-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.price-card .price {
  font-size: 32px; font-weight: 600; color: var(--blue);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.price-card .price span {
  font-size: 14px; color: var(--text-mute); font-weight: 400;
}
.price-features { list-style: none; margin-bottom: 28px; flex: 1; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14.5px; color: var(--text-soft);
  line-height: 1.5;
}
.price-features svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 20px 24px; font-weight: 500; font-size: 15.5px;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 10px; height: 10px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg); transition: transform 0.25s;
  flex-shrink: 0; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary:hover { color: var(--blue); }
.faq p { padding: 0 24px 22px; color: var(--text-soft); font-size: 14.5px; }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 140px 24px 60px; text-align: center;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
  position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
}
.page-header > * { position: relative; }
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 500;
  letter-spacing: -0.025em; color: #0f1729; margin-bottom: 14px;
}
.page-header p { color: var(--text-soft); font-size: 16.5px; max-width: 560px; margin: 0 auto; }

/* ============ PROSE ============ */
.prose { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 40px 0 14px; color: #0f1729; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); margin-bottom: 14px; font-size: 15px; }
.prose ul { margin: 0 0 16px 20px; color: var(--text-soft); font-size: 15px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose .updated {
  font-size: 13.5px; color: var(--text-mute);
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 70px 24px 30px; margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13.5px; color: var(--text-mute);
  line-height: 1.7; margin-bottom: 20px;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: all 0.2s;
}
.socials a:hover {
  color: var(--blue); border-color: var(--blue);
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #0f1729; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13.5px; color: var(--text-mute);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--blue); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-card { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-card-text { justify-content: center; flex-wrap: wrap; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-inner { padding: 14px 18px; }
  .term-body { font-size: 12.5px; padding: 18px 16px; height: 320px; }
}