:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #f2f6fb;
  --text: #0b1324;
  --text-soft: #425069;
  --line: #d7e1ee;
  --brand: #0f2847;
  --brand-2: #1f6f8b;
  --accent: #1eb6d9;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(9, 32, 65, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 85% -5%, #d4efff 0%, transparent 58%),
    radial-gradient(900px 440px at -5% 15%, #e8f3ff 0%, transparent 62%),
    var(--bg);
  line-height: 1.55;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(15, 40, 71, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 40, 71, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 252, 0.84);
  border-bottom: 1px solid rgba(14, 35, 63, 0.08);
  z-index: 30;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(8, 31, 56, 0.22);
}

.brand-text {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  gap: 1.2rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.05rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 68, 110, 0.24);
}

.btn-outline {
  border-color: #b8c8dc;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
  border-color: #cad9ea;
  background: #fff;
  color: var(--text);
}

.hero {
  min-height: clamp(520px, 78vh, 720px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  padding-top: 2.8rem;
}

.eyebrow {
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  margin: 0 0 0.55rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  letter-spacing: -0.015em;
}

.lead {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
}

.terminal-card {
  background: linear-gradient(135deg, #0b1629, #15335c);
  color: #dcf2ff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: #c9e7ff;
}

.terminal-shell {
  border: 1px solid rgba(206, 228, 255, 0.18);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(7, 20, 38, 0.85), rgba(9, 23, 42, 0.95));
}

.terminal-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b87a6;
}

.install-chip {
  display: block;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(133, 193, 255, 0.42);
  border-radius: 10px;
  color: #f2f9ff;
  background: rgba(23, 69, 112, 0.45);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.83rem;
}

.terminal-snippet {
  margin: 0;
  overflow-x: auto;
  background: rgba(7, 19, 35, 0.82);
  border: 1px solid rgba(198, 222, 250, 0.16);
  border-radius: 10px;
  padding: 0.7rem;
}

.terminal-card code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(11, 45, 82, 0.08);
}

.feature-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.feature-card p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.compare-frame {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: min(58vw, 520px);
  min-height: 280px;
  border: 1px solid #dce6f3;
  background: #ffffff;
  --split: 55%;
  cursor: col-resize;
  touch-action: none;
}

.compare-image {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  background: #ffffff;
  display: block;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  will-change: clip-path;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(7, 27, 50, 0.18);
  cursor: col-resize;
}

.compare-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #9eb4cb;
}

.compare-divider:focus-visible {
  outline: 2px solid #1f6f8b;
  outline-offset: 3px;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(150deg, #ffffff, #dff3fb);
  border: 1px solid #8db3ca;
  color: #16435f;
  font-size: 1rem;
  line-height: 36px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(13, 50, 80, 0.22);
}

.badge {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.badge-before {
  left: 1rem;
  background: rgba(11, 20, 36, 0.68);
  color: #ecf6ff;
}

.badge-after {
  right: 1rem;
  background: rgba(30, 182, 217, 0.16);
  border: 1px solid rgba(17, 103, 132, 0.35);
  color: #0b3550;
}

.slider-wrap {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.drag-hint {
  margin: 0.75rem 0 0;
  color: #526783;
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.quick-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.quick-step.full {
  grid-column: 1 / -1;
}

.quick-step h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.quick-step p {
  margin: 0;
  color: var(--text-soft);
}

.quick-step a {
  margin-top: 0.65rem;
  color: var(--brand-2);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

pre {
  margin: 0;
  background: var(--surface-soft);
  border: 1px solid #dbe6f3;
  border-radius: 10px;
  padding: 0.7rem;
  overflow-x: auto;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.84rem;
}

.cta {
  text-align: center;
  background: linear-gradient(120deg, #ffffff, #edf4fb);
  border: 1px solid #d4e2f2;
  border-radius: 18px;
  padding: 2.4rem 1rem;
  box-shadow: 0 16px 35px rgba(12, 44, 80, 0.08);
}

.cta p {
  color: var(--text-soft);
  margin: 0.6rem auto 0;
  max-width: 64ch;
}

.site-footer {
  padding: 1.2rem 0 2.2rem;
  color: #5a6b83;
  text-align: center;
}

.reveal,
.reveal-delay,
.reveal-stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-stagger:nth-child(2) {
  transition-delay: 60ms;
}

.reveal-stagger:nth-child(3) {
  transition-delay: 120ms;
}

.reveal-stagger:nth-child(4) {
  transition-delay: 180ms;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav {
    display: none;
  }
}

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

  .quick-step.full {
    grid-column: auto;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
