/* ══════════════════════════════════════
   Deep Sea Ink — Design Tokens
   ══════════════════════════════════════ */

:root {
  /* Typography */
  --font-sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Colors */
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F4FB;
  --text: #0E1A2B;
  --text-muted: #4B5B73;
  --border: rgba(14, 26, 43, 0.12);

  --red: #AF3029;
  --orange: #BC5215;
  --yellow: #C08B2C;
  --green: #3B855C;
  --cyan: #2B7E78;
  --blue: #205EA6;
  --purple: #5E409D;
  --magenta: #A02F6F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1020;
    --surface: #121A33;
    --surface-2: #182245;
    --text: #E8EEFC;
    --text-muted: #B8C6EE;
    --border: rgba(255, 255, 255, 0.10);

    --red: #D14D41;
    --orange: #DA702C;
    --yellow: #E2B53E;
    --green: #5CB97A;
    --cyan: #42AEA0;
    --blue: #4385BE;
    --purple: #8B7EC8;
    --magenta: #CE5D97;
  }
}

/* ══════════════════════════════════════
   Reset
   ══════════════════════════════════════ */

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Mono font for code elements */
code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* Offset anchors for fixed navbar */
[id] {
  scroll-margin-top: 85px;
}

/* ══════════════════════════════════════
   Navbar
   ══════════════════════════════════════ */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.navbar-scrolled {
  background: var(--surface);
  border-bottom-color: var(--border);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.navbar-scrolled .navbar-brand {
  color: var(--text);
}

.navbar-owl {
  font-size: 1.25rem;
  line-height: 1;
}

.navbar-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-scrolled .navbar-links a {
  color: var(--text-muted);
}

.navbar-scrolled .navbar-links a:hover {
  color: var(--text);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Secondary button */
.btn-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, opacity 0.2s;
}

.btn-docs:hover {
  opacity: 0.8;
}

.navbar-scrolled .btn-docs {
  background: var(--surface-2);
  color: var(--text);
}

.btn-docs svg {
  width: 16px;
  height: 16px;
}

/* Primary button */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.3s, opacity 0.2s;
}

.navbar-scrolled .btn-github {
  background: var(--blue);
}

.btn-github:hover {
  opacity: 0.85;
}

.btn-github svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  transition: stroke 0.3s;
}

.navbar-scrolled .menu-toggle svg {
  stroke: var(--text);
}

/* ══════════════════════════════════════
   Hero Section
   ══════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  background: #0B1020;
  padding: 120px 40px 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #fff;
}

/* Animated gradient blobs — full hero background */
.gradient-bg {
  position: absolute;
  inset: -20%;
  z-index: 1;
  overflow: hidden;
  filter: blur(70px);
  opacity: 0.7;
}

.gradient-bg::before,
.gradient-bg::after,
.gradient-blob {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.gradient-bg::before {
  width: 55%;
  height: 65%;
  top: -5%;
  left: -10%;
  background: color-mix(in srgb, var(--cyan) 80%, transparent);
  animation: blobMove1 11s ease-in-out infinite;
}

.gradient-bg::after {
  width: 50%;
  height: 60%;
  bottom: -5%;
  right: -10%;
  background: color-mix(in srgb, var(--purple) 75%, transparent);
  animation: blobMove2 15s ease-in-out infinite;
}

.gradient-blob {
  width: 50%;
  height: 55%;
  top: 15%;
  left: 25%;
  background: color-mix(in srgb, var(--blue) 80%, transparent);
  animation: blobMove3 17s ease-in-out infinite;
}

.gradient-blob:nth-child(2) {
  width: 45%;
  height: 50%;
  top: 0%;
  right: 5%;
  left: auto;
  background: color-mix(in srgb, var(--magenta) 65%, transparent);
  animation: blobMove4 13s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(55%, 18%) scale(1.25); }
  50% { transform: translate(28%, 52%) scale(1.08); }
  75% { transform: translate(-18%, 28%) scale(1.2); }
}

@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-48%, -22%) scale(1.2); }
  50% { transform: translate(-18%, -48%) scale(1.25); }
  75% { transform: translate(32%, -18%) scale(0.92); }
}

@keyframes blobMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(22%, -48%) scale(1.18); }
  50% { transform: translate(-38%, -22%) scale(1.08); }
  75% { transform: translate(-22%, 38%) scale(1.25); }
}

@keyframes blobMove4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-42%, 42%) scale(1.25); }
  50% { transform: translate(18%, 22%) scale(1.08); }
  75% { transform: translate(28%, -28%) scale(1.2); }
}

/* Screenshot on right */
.hero-screenshot {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  box-shadow:
    0 -4px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(67, 133, 190, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
}

.hero-carousel-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}

.hero-carousel-slide:not(:first-child) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-carousel-slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Carousel labels */
.carousel-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.hero-carousel-slide--active .carousel-label {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop slide label positions */
.carousel-label--top-left {
  top: 12px;
  left: -16px;
  transform: translateX(-100%) translateY(6px);
}

.hero-carousel-slide--active .carousel-label--top-left {
  transform: translateX(-100%) translateY(0);
}

.carousel-label--top-right {
  top: 12px;
  right: -16px;
  transform: translateX(100%) translateY(6px);
}

.hero-carousel-slide--active .carousel-label--top-right {
  transform: translateX(100%) translateY(0);
}

.carousel-label--bottom-left {
  bottom: 40px;
  left: -16px;
  transform: translateX(-100%) translateY(6px);
}

.hero-carousel-slide--active .carousel-label--bottom-left {
  transform: translateX(-100%) translateY(0);
}

/* Phone slide label positions */
.carousel-label--left {
  top: 40%;
  left: 0;
  transform: translateX(-120%) translateY(6px);
}

.hero-carousel-slide--active .carousel-label--left {
  transform: translateX(-120%) translateY(0);
}

.carousel-label--right {
  top: 60%;
  right: 0;
  transform: translateX(120%) translateY(6px);
}

.hero-carousel-slide--active .carousel-label--right {
  transform: translateX(120%) translateY(0);
}

/* Arrow */
.hero-carousel-arrow {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 8px;
  line-height: 0;
  transition: color 0.2s ease;
  z-index: 3;
}

.hero-carousel-arrow:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Phone mockup */
.phone-mockup {
  width: 260px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  transform: translateY(50px);
  box-shadow:
    0 -4px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(67, 133, 190, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  width: 100%;
  display: block;
  border-radius: 24px;
}

/* ══════════════════════════════════════
   Subscribe Section
   ══════════════════════════════════════ */

.subscribe {
  max-width: none;
  margin: 0;
  padding: 40px 40px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subscribe h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.subscribe p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--blue);
}

.subscribe-form button {
  padding: 10px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.subscribe-form button:hover {
  opacity: 0.85;
}

/* ══════════════════════════════════════
   Mobile Nav
   ══════════════════════════════════════ */

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
}

.mobile-nav a:hover {
  color: var(--text);
}

.mobile-nav-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.mobile-nav .btn-docs,
.mobile-nav .btn-github {
  background: none;
  padding: 4px 0;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-nav .btn-docs:hover,
.mobile-nav .btn-github:hover {
  color: var(--text);
  opacity: 1;
}

.mobile-nav .btn-github {
  color: var(--text-muted);
}

.mobile-nav .btn-github svg {
  fill: currentColor;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .navbar {
    padding: 14px 20px;
  }

  .navbar-links,
  .navbar-right {
    display: none !important;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 100px 20px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .install-section {
    padding-bottom: 16px;
  }

  .subscribe {
    padding: 24px 20px;
  }

  .subscribe-form {
    flex-direction: column;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* ══════════════════════════════════════
   Landing Page — Hero (index2)
   ══════════════════════════════════════ */

.hero-split {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 0 1 40%;
  min-width: 0;
  padding-bottom: 60px;
}

.hero-right {
  flex: 1 1 60%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}

.hero-install {
  padding: 18px 80px 18px 20px;
  border-radius: 0 8px 8px 0;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0 36px;
}

.hero-install-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-install-cmd {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}

.btn-secondary:hover {
  opacity: 0.8;
}

/* Hero dark-background overrides */
.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.hero .hero-install {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--cyan);
}

.hero .hero-install-label {
  color: rgba(255, 255, 255, 0.5);
}

.hero .hero-install-cmd {
  color: #fff;
}

.hero .hero-install-cmd .t-muted {
  color: rgba(255, 255, 255, 0.4);
}

.hero-btn-primary {
  background: #fff;
  color: #0B1020;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════
   Terminal Block
   ══════════════════════════════════════ */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}

.t-muted { color: var(--text-muted); }
.t-green { color: var(--green); }
.t-blue { color: var(--blue); }
.t-cyan { color: var(--cyan); }
.t-yellow { color: var(--yellow); }
.t-purple { color: var(--purple); }
.t-orange { color: var(--orange); }
.t-red { color: var(--red); }
.t-bold { font-weight: 600; }

.terminal-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.terminal-intro {
  margin: 80px 0 32px;
}

.terminal-intro:first-child {
  margin-top: 0;
}

.terminal-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.terminal-intro .section-subtitle {
  max-width: 580px;
}

/* ══════════════════════════════════════
   Subscribe Bar (full-width band)
   ══════════════════════════════════════ */

.subscribe-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 40px;
  margin: 0 0 32px;
  text-align: center;
}

.subscribe-bar-content {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.subscribe-bar-content p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.subscribe-bar-content .subscribe-form {
  display: flex;
  gap: 10px;
  margin: 0;
  max-width: none;
}

.subscribe-bar-content .subscribe-form input[type="email"] {
  width: 200px;
}

/* ══════════════════════════════════════
   Disclaimer Banner
   ══════════════════════════════════════ */

.disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 0;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--yellow) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--yellow) 25%, transparent);
  border-radius: 10px;
}

.disclaimer-inner svg {
  flex-shrink: 0;
  color: var(--yellow);
  margin-top: 1px;
}

.disclaimer-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   Section Shared Styles
   ══════════════════════════════════════ */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════
   Features Section
   ══════════════════════════════════════ */

.features {
  padding: 80px 0;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   How It Works Section
   ══════════════════════════════════════ */

.how-it-works {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.how-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 14px;
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface-2);
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  white-space: pre;
}

/* ══════════════════════════════════════
   Agents Section
   ══════════════════════════════════════ */

.agents {
  padding: 80px 0;
}

.agents-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.agents-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* Agent tabs */
.agent-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  display: inline-flex;
  margin-bottom: 20px;
}

.agent-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.agent-tab:hover {
  color: var(--text);
}

.agent-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Agent panels */
.agent-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 600px;
}

.agent-panel.active {
  display: block;
}

.agent-panel p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.agent-panel .step-code {
  width: 100%;
  overflow-x: auto;
}

/* ══════════════════════════════════════
   Data Sources Section
   ══════════════════════════════════════ */

.data-sources {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.data-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.data-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

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

.source-item {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.source-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.source-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   Install Section
   ══════════════════════════════════════ */

.install-section {
  padding: 80px 0;
}

.install-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.install-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.install-block {
  margin-top: 0;
}

/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer-owl {
  font-size: 1.3rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ══════════════════════════════════════
   Landing Page Responsive
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .hero-left {
    padding-bottom: 0;
  }

  .hero-right {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-carousel-track {
    overflow: hidden;
  }

  .hero-carousel-arrow {
    right: -8px;
  }

  .carousel-label {
    display: none;
  }

  .phone-mockup {
    width: 340px;
    transform: translateY(380px);
  }

  .features-grid,
  .sources-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero-right {
    max-width: 100%;
  }

  .hero-carousel-arrow {
    right: 4px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .features,
  .how-it-works,
  .agents,
  .data-sources,
  .install-section {
    padding: 48px 0;
  }

  .features-inner,
  .how-inner,
  .agents-inner,
  .data-inner,
  .install-inner {
    padding: 0 20px;
  }

  .features-inner h2,
  .how-inner h2,
  .agents-inner h2,
  .data-inner h2,
  .install-inner h2 {
    font-size: 1.6rem;
  }

  .features-grid,
  .sources-row {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .disclaimer {
    padding: 0 20px;
  }

  .subscribe-bar {
    padding: 20px;
  }

  .subscribe-bar-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .subscribe-bar-content p {
    white-space: normal;
    text-align: center;
  }

  .subscribe-bar-content .subscribe-form {
    width: 100%;
    flex-direction: column;
  }

  .subscribe-bar-content .subscribe-form input[type="email"] {
    width: 100%;
  }

  .terminal-section {
    padding: 40px 20px 48px;
  }

  .terminal-intro h2 {
    font-size: 1.6rem;
  }

  .terminal-intro {
    margin: 56px 0 24px;
  }

  .disclaimer {
    padding: 32px 20px 0;
  }

  .terminal-body {
    padding: 16px;
    font-size: 0.72rem;
  }
}

/* ══════════════════════════════════════
   Navbar Solid (non-hero pages)
   ══════════════════════════════════════ */

.navbar-solid {
  background: var(--surface);
  border-bottom-color: var(--border);
}

.navbar-solid .navbar-brand {
  color: var(--text);
}

.navbar-solid .navbar-links a {
  color: var(--text-muted);
}

.navbar-solid .navbar-links a:hover {
  color: var(--text);
}

.navbar-solid .btn-docs {
  background: var(--surface-2);
  color: var(--text);
}

.navbar-solid .btn-github {
  background: var(--blue);
}

.navbar-solid .menu-toggle svg {
  stroke: var(--text);
}

/* ══════════════════════════════════════
   Blog Article
   ══════════════════════════════════════ */

.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

.blog-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blog-meta-sep {
  color: var(--border);
}

.blog-author {
  font-weight: 600;
}

.blog-date {
  font-weight: 400;
}

.blog-summary {
  margin: 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}

.blog-summary-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}

.blog-summary p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Blog body — prose typography */

.blog-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 48px 0 16px;
  color: var(--text);
}

.blog-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--text);
}

.blog-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text);
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 14px 24px;
  line-height: 1.7;
  color: var(--text);
}

.blog-body li {
  margin-bottom: 6px;
}

.blog-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-body blockquote p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.blog-body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

.blog-body pre {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.blog-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.7;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.blog-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.blog-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.blog-body a:hover {
  color: var(--cyan);
}

.blog-body strong {
  font-weight: 600;
}

/* Blog tables */
.blog-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

.blog-body thead {
  background: var(--surface-2);
}

.blog-body th {
  font-weight: 600;
  font-size: 0.82rem;
  text-align: left;
  padding: 10px 16px;
  color: var(--text);
  white-space: nowrap;
}

.blog-body td {
  padding: 10px 16px;
  color: var(--text);
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.blog-body td code {
  font-size: 0.78rem;
}

/* ══════════════════════════════════════
   Blog Layout with TOC
   ══════════════════════════════════════ */

.blog-layout {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 0;
}

.blog-layout .blog-article {
  max-width: 720px;
  flex: 0 1 720px;
  min-width: 0;
}

/* Desktop TOC sidebar */
.blog-toc-sidebar {
  flex: 0 0 220px;
  position: relative;
  display: block;
}

.blog-toc-nav {
  position: sticky;
  top: 100px;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--border);
}

.blog-toc-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.blog-toc-sidebar .blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-toc-sidebar .blog-toc-list li {
  margin: 0;
}

.blog-toc-sidebar .blog-toc-list a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.blog-toc-sidebar .blog-toc-list a:hover {
  color: var(--text);
}

.blog-toc-sidebar .blog-toc-list a.active {
  color: var(--blue);
  font-weight: 600;
}

.blog-toc-sidebar .blog-toc-sub a {
  padding-left: 14px;
  font-size: 0.86rem;
}

/* Mobile TOC (collapsible) */
.blog-toc-mobile {
  display: none;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.blog-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text);
  transition: background 0.2s;
}

.blog-toc-toggle:active {
  background: var(--border);
}

.blog-toc-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.blog-toc-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.blog-toc-toggle[aria-expanded="true"] {
  border-radius: 10px 10px 0 0;
}

.blog-toc-toggle[aria-expanded="true"] .blog-toc-chevron {
  transform: rotate(180deg);
}

.blog-toc-mobile .blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0 18px 14px;
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.blog-toc-mobile .blog-toc-list.open {
  display: flex;
}

.blog-toc-mobile .blog-toc-list li {
  margin: 0;
}

.blog-toc-mobile .blog-toc-list a {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-toc-mobile .blog-toc-list a:hover,
.blog-toc-mobile .blog-toc-list a.active {
  color: var(--blue);
}

.blog-toc-mobile .blog-toc-sub a {
  padding-left: 16px;
  font-size: 0.82rem;
}

/* ══════════════════════════════════════
   Blog Responsive
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .blog-layout {
    display: block;
  }

  .blog-toc-sidebar {
    display: none;
  }

  .blog-toc-mobile {
    display: block;
  }
}

@media (max-width: 700px) {
  .blog-article {
    padding: 100px 20px 48px;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-summary {
    font-size: 1rem;
  }

  .blog-body h2 {
    font-size: 1.5rem;
  }

  .blog-body h3 {
    font-size: 1.2rem;
  }
}
