/* ============================================================
   OctropsCode Website - Design System & Shared Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Mono:wght@400;500&display=swap');

/* --- Tokens --- */

:root {
  --bg-primary: #1c1c1e;
  --bg-surface: #242426;
  --bg-elevated: #2c2c2e;
  --bg-code: #141416;
  --border: #333336;
  --border-subtle: #28282a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-dim: #52525b;
  --accent: #ffffff;
  --accent-hover: #ffffff;
  --accent-violet: #ffffff;
  --accent-violet-hover: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.1);
  --accent-violet-muted: rgba(255, 255, 255, 0.1);
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --font-heading: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', 'Fira Code', monospace;
  --container: 1120px;
  --container-narrow: 820px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;
  --transition: 150ms ease;
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* --- Layout --- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--tight {
  padding: var(--space-2xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border-subtle);
}

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(33, 33, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo {
  width: 28px;
  height: 28px;
}

.nav__wordmark {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__download-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.nav__download-group:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.nav__download {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav__download:hover {
  background: #ffffff;
  color: #1c1c1e;
  font-weight: 600;
}

.nav__download-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border: none;
  border-left: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.nav__download-version:hover,
.nav__download-version[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav__download-version svg {
  transition: transform var(--transition);
}

.nav__download-version[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Navbar Version Dropdown Menu ── */
.nav__version-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 270px;
  background: #16171a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  z-index: 1000;
  padding: 6px 0;
  backdrop-filter: blur(16px);
}

.nav__version-dropdown.nav__version-dropdown--open {
  display: block;
  animation: navDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__version-dropdown-header {
  padding: 8px 14px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.nav__version-option {
  display: block;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav__version-dropdown a[href*="1.2.2"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/v1.2.2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: brightness(0.7) contrast(1.1);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition), filter var(--transition);
}

.nav__version-dropdown a[href*="1.2.2"]:hover::before {
  opacity: 0.45;
  filter: brightness(0.9) contrast(1.1);
}

.nav__version-dropdown a[href*="1.2.1"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/v1.2.1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: brightness(0.7) contrast(1.1);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition), filter var(--transition);
}

.nav__version-dropdown a[href*="1.2.1"]:hover::before {
  opacity: 0.45;
  filter: brightness(0.9) contrast(1.1);
}

.nav__version-dropdown a[href*="1.0.0"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/v1.0.0.png');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: brightness(0.7) contrast(1.1);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition), filter var(--transition);
}

.nav__version-dropdown a[href*="1.0.0"]:hover::before {
  opacity: 0.45;
  filter: brightness(0.9) contrast(1.1);
}

.nav__version-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__version-option-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-heading);
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.nav__version-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav__version-option-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.nav__version-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.nav__version-option--link {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav__version-option--link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #ffffff;
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #ffffff;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
  }

  .nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    margin: 2.5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 60px) !important;
    background: linear-gradient(180deg, #0e1424 0%, #070d19 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
  }

  .nav__links:not(.nav__links--open) {
    display: none !important;
  }

  .nav__links.nav__links--open {
    display: flex !important;
  }

  .nav__link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    width: 100% !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .nav__link:hover,
  .nav__link:active,
  .nav__link--active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
  }

  .nav__download-group {
    width: 100% !important;
    margin-top: 4px !important;
    display: flex !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .nav__download {
    flex: 1 !important;
    text-align: center !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .nav__download-version {
    padding: 14px 18px !important;
    font-size: 13px !important;
  }
}

/* --- Body offset for fixed nav --- */

.page-body {
  padding-top: 60px;
}

/* --- Hero --- */

.hero {
  padding: 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.hero__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--accent);
}

.hero__content {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero__description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.hero__grid {
  display: block;
  max-width: 820px;
  padding-bottom: var(--space-2xl);
}

.hero__widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-surface);
  display: block;
}

.hero-showcase-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero__widget:hover .hero-showcase-img {
  transform: scale(1.02);
}

.widget-header {
  background: var(--bg-elevated);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.widget-context-bar {
  background: var(--bg-code);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.widget-actions-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.widget-action-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.widget-action-btn--active {
  color: var(--text-primary);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.widget-model-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.widget-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-msg {
  font-size: 13px;
  line-height: 1.5;
}

.widget-msg__role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 4px;
}

.widget-msg--user p {
  color: var(--text-secondary);
}

.widget-msg--ai pre {
  background: var(--bg-code);
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 2px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  overflow-x: auto;
  margin-top: 4px;
}

.widget-footer {
  padding: 10px 16px;
  background: var(--bg-code);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.widget-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Terminal Block --- */

.terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  position: relative;
}

.terminal__prompt {
  color: var(--text-tertiary);
  user-select: none;
  flex-shrink: 0;
}

.terminal__command {
  color: var(--text-primary);
  white-space: nowrap;
  overflow-x: auto;
}

.terminal__copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.terminal__copy:hover {
  border-color: var(--text-tertiary);
  color: var(--text-secondary);
}

.terminal__copy--copied {
  border-color: var(--success);
  color: var(--success);
}

/* --- Buttons --- */

.btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.btn--primary {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #212121;
}

.btn--primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #212121;
}

.btn--small {
  font-size: 11px;
  padding: 8px 18px;
}

/* --- Feature Grid --- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-block {
  background: var(--bg-primary);
  padding: var(--space-lg);
}

.feature-block__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.feature-block__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

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

/* --- Providers Table --- */

.providers-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.providers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.providers-table th {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.providers-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.providers-table tr:last-child td {
  border-bottom: none;
}

.providers-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.provider-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.provider-name img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.provider-models {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.provider-link {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 500;
}

.provider-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* --- Section Headers --- */

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  max-width: 500px;
}

/* --- Download Cards --- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-primary);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.download-card__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.download-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.download-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.download-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: var(--space-sm);
}

.download-card .terminal {
  max-width: 100%;
  overflow-x: auto;
}

.download-card .terminal .terminal__command {
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Install Tabs --- */

.install-tabs {
  border: 1px solid var(--border);
}

.install-tabs__header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.install-tabs__tab {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.install-tabs__tab:hover {
  color: var(--text-secondary);
}

.install-tabs__tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.install-tabs__panel {
  display: none;
  padding: var(--space-lg) var(--space-md);
}

.install-tabs__panel--active {
  display: block;
  animation: tabFadeIn 0.2s ease-in-out;
}

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

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 1px 5px;
  color: #f3f4f6;
  display: inline-block;
  vertical-align: middle;
}

.install-steps {
  counter-reset: step;
}

.install-steps li {
  counter-increment: step;
  padding: 4px 0;
  padding-left: 26px;
  position: relative;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.install-steps code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 1px 5px;
  border-radius: 2px;
}

/* --- Docs Layout --- */

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px;
  border-radius: 8px;
  z-index: 1;
  background-image: linear-gradient(180deg, rgba(15, 20, 28, 0.85) 0%, rgba(10, 14, 20, 0.88) 100%), url('../assets/vertical-extra.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: local;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.docs-sidebar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
  width: 0;
  height: 0;
}

.docs-sidebar__section {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.docs-sidebar__section:last-child {
  margin-bottom: 0;
}

.docs-sidebar__heading {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.docs-sidebar__link {
  display: block;
  font-size: 13.5px;
  color: #d1d5db;
  padding: 4px 0;
  padding-left: var(--space-md);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.docs-sidebar__link:hover {
  color: #ffffff;
  border-left-color: rgba(255, 255, 255, 0.5);
}

.docs-sidebar__link--active {
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--accent);
}

.docs-sidebar__link--active {
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.docs-content p {
  margin-bottom: var(--space-md);
  font-size: 15px;
  line-height: 1.75;
}

.docs-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.docs-content ul li {
  position: relative;
  padding: 2px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.docs-content ul li::before {
  content: '-';
  position: absolute;
  left: calc(-1 * var(--space-lg));
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    border: none;
    border-bottom: none;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
}

/* --- Code Blocks --- */

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  margin-bottom: var(--space-md);
  position: relative;
}

.code-block__lang {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Settings Table --- */

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.settings-table th {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.settings-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.settings-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.settings-table td:nth-child(2) {
  color: var(--text-secondary);
}

.settings-table td:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* --- Release Timeline --- */

.release-entry {
  padding: 36px 32px;
  border: none;
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(20, 20, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.release-entry:last-child {
  margin-bottom: 0;
}

.release-entry--v122::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/v1.2.2.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: brightness(0.85) contrast(1.1) saturate(1.15);
  z-index: -1;
  pointer-events: none;
}

.release-entry--v121::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/release-v121-bg.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: brightness(0.85) contrast(1.1) saturate(1.15);
  z-index: -1;
  pointer-events: none;
}

.release-entry--v100::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/release-v100-bg.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: brightness(0.85) contrast(1.1) saturate(1.15);
  z-index: -1;
  pointer-events: none;
}

.release-header,
.release-section,
.release-download {
  position: relative;
  z-index: 2;
}

.release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.release-version {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.release-title {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.release-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-left: auto;
  text-align: right;
}

.release-section {
  margin-bottom: var(--space-lg);
}

.release-section__heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.release-section ul {
  padding-left: var(--space-lg);
}

.release-section li {
  position: relative;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.release-section li::before {
  content: '·';
  position: absolute;
  left: calc(-1 * var(--space-md));
  color: var(--text-dim);
  font-weight: 700;
}

.release-download {
  margin-top: var(--space-md);
}

/* --- Page Header (for inner pages) --- */

.page-header {
  padding: 85px 0 65px;
  min-height: 240px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.52;
  filter: brightness(1.05) contrast(1.15) saturate(1.2);
  z-index: 1;
  pointer-events: none;
}

.page-header--releases::before {
  background-image: url('../assets/header-releases.jpg');
}

.page-header--about::before {
  background-image: url('../assets/header-about.jpg');
}

.page-header--docs::before {
  background-image: url('../assets/header-docs.jpg');
}

.page-header--privacy::before {
  background-image: url('../assets/header-privacy.jpg');
}

.page-header--terms::before {
  background-image: url('../assets/header-about.jpg');
}

.page-header__title {
  font-size: clamp(38px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.page-header__description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* --- Legal / Text Pages --- */

.legal-content {
  padding: var(--space-2xl) 0;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  position: relative;
  padding: 2px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-content li::before {
  content: '-';
  position: absolute;
  left: calc(-1 * var(--space-lg));
  color: var(--text-dim);
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

/* --- About Page --- */

.about-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.about-section:last-child {
  border-bottom: none;
}

.about-section__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

/* White Box Contact Card */
.contact-box {
  background: #ffffff;
  color: #0d1117;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: var(--space-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid #e1e4e8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-box__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #24292f;
  line-height: 1.5;
}

.contact-box__item svg {
  flex-shrink: 0;
  fill: #0969da;
}

.contact-box__item strong {
  color: #0d1117;
  font-weight: 600;
}

.contact-box__item a {
  color: #0969da;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-box__item a:hover {
  text-decoration: underline;
  color: #054da7;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__link:hover {
  color: var(--text-secondary);
}

.footer__github {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-dim);
  font-size: 13px;
}

.footer__github:hover {
  color: var(--text-secondary);
}

.footer__github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__copyright {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Utilities --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-accent {
  color: var(--accent);
}

.text-mono {
  font-family: var(--font-mono);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Mobile Responsive Optimizations --- */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-md) 0 var(--space-xl);
  }

  .hero__title {
    font-size: clamp(26px, 7.5vw, 38px);
  }

  .hero__description {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .terminal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .terminal__prompt {
    flex-shrink: 0 !important;
  }

  .terminal__command {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    font-size: 11px !important;
    min-width: 0 !important;
    display: block !important;
  }

  .terminal__copy {
    flex-shrink: 0 !important;
    align-self: center !important;
  }

  .hero__widget {
    padding: var(--space-md) var(--space-sm);
    margin-top: var(--space-lg);
  }

  .widget-actions-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .widget-action-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .tentacle--top-right {
    top: -20px;
    right: -15px;
    width: 60px;
  }

  .install-tabs__header {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .install-tabs__tab {
    padding: var(--space-md);
    font-size: 11px;
    flex-shrink: 0;
  }

  .install-steps li {
    padding-left: 28px;
    font-size: 13px;
  }

  .providers-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .providers-table th,
  .providers-table td {
    padding: var(--space-md) var(--space-sm);
  }

  .download-card {
    padding: var(--space-lg) var(--space-md);
  }

  .download-card .btn {
    width: 100%;
  }
}

/* --- Universal White Box Hover States --- */

.feature-block,
.download-card,
.install-tabs__tab,
.key-card,
.history-item,
.btn,
.nav__download,
.tip,
.provider-link {
  transition: all 0.2s ease !important;
}

.feature-block:hover,
.tip:hover {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

.btn:hover,
.nav__download:hover,
#github-release-btn:hover,
#toggle-providers-btn:hover {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #1c1c1e !important;
  font-weight: 600 !important;
}

.btn--primary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #1c1c1e !important;
}

.text-accent {
  color: #ffffff !important;
}

.text-accent:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.provider-link {
  color: #38bdf8 !important;
}

.provider-link:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

.install-tabs__tab--active,
.install-tabs__tab:hover {
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* ============================================================
   OCEAN & OCTOPUS DOODLE SYSTEM
   ============================================================ */

/* Swaying Sea Grass / Kelp Animations */
@keyframes seaGrassSway {
  0%, 100% { transform: rotate(-3deg) skewX(-2deg); }
  50% { transform: rotate(4deg) skewX(3deg); }
}

@keyframes seaGrassSwaySlow {
  0%, 100% { transform: rotate(3deg) skewX(2deg); }
  50% { transform: rotate(-4deg) skewX(-2deg); }
}

@keyframes tentacleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes bubbleFloatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-120px) scale(1.1); opacity: 0; }
}

/* Ocean Doodle Container & Accents */
.ocean-doodle-wrapper {
  position: relative;
  overflow: hidden;
}

.sea-plant-doodle {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.sea-plant-doodle:hover {
  opacity: 0.8;
}

.sea-plant-doodle--left {
  left: -10px;
  animation: seaGrassSway 6s infinite ease-in-out;
  transform-origin: bottom left;
}

.sea-plant-doodle--right {
  right: -10px;
  animation: seaGrassSwaySlow 7s infinite ease-in-out;
  transform-origin: bottom right;
}

/* Octopus Tentacle Doodles Wrapping Cards */
.octopus-tentacle-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(156, 163, 175, 0.3));
  animation: tentacleFloat 5s ease-in-out infinite;
  transition: transform 0.4s ease;
}

.hero__widget:hover .octopus-tentacle-doodle {
  transform: translateY(-12px) rotate(5deg) scale(1.05);
}

.tentacle--top-right {
  top: -30px;
  right: -30px;
  width: 90px;
}

.tentacle--bottom-left {
  bottom: -35px;
  left: -35px;
  width: 100px;
}

/* Ocean Wave Doodle Section Dividers */
.ocean-wave-divider {
  width: 100%;
  height: 48px;
  display: block;
  margin: var(--space-xl) 0;
  opacity: 0.35;
}

.ocean-wave-divider path {
  stroke: #9ca3af;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  fill: none;
}

/* Ocean Doodle Showcase Badge */
.ocean-doodle-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px dashed rgba(156, 163, 175, 0.4);
  background: rgba(156, 163, 175, 0.08);
  color: #9ca3af;
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.1);
}

.ocean-doodle-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

/* Underwater Plant Frame Overlay */
.ocean-art-card {
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(7, 13, 25, 0.95) 100%);
  border-radius: 8px;
  padding: var(--space-lg);
  overflow: hidden;
}

.ocean-art-card__img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.ocean-art-card:hover .ocean-art-card__img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Card Random Grey Doodle Art Accent */
.feature-block,
.download-card {
  position: relative;
  overflow: hidden;
}

.card-doodle-art {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 56px;
  height: 46px;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.feature-block:hover .card-doodle-art,
.download-card:hover .card-doodle-art {
  opacity: 0.7;
  transform: scale(1.1) rotate(4deg);
}

/* ============================================================
   Big Detailed Grey Doodle Section Background System
   ============================================================ */

.hero,
.section {
  position: relative;
  overflow: hidden;
}

.hero > .container,
.section > .container {
  position: relative;
  z-index: 2;
}

.section-doodle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}

.section-doodle-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Individual Section Adjustments */
/* Topmost Hero Doodle - Fitted & Contained without top clipping or hover effects */
.section-doodle-bg--hero {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  opacity: 1;
  filter: saturate(1.3) brightness(1.25) contrast(1.15);
}

.section-doodle-bg--hero img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

#features {
  padding: 150px 0 170px !important;
  min-height: 850px;
  position: relative;
}

.section-doodle-bg--features {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: saturate(1.35) brightness(1.25) contrast(1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.section-doodle-bg--features img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.section-doodle-bg--providers {
  opacity: 0.16;
}

.section-doodle-bg--providers img {
  width: 90%;
  max-width: 1240px;
  object-position: center;
}

.section-doodle-bg--download {
  opacity: 0.18;
}

.section-doodle-bg--download img {
  width: 82%;
  max-width: 1140px;
  object-position: center;
}

#install {
  padding: 150px 0 170px !important;
  min-height: 850px;
  position: relative;
}

.section-doodle-bg--install {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: saturate(1.35) brightness(1.25) contrast(1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.section-doodle-bg--install img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Subtle translucency & backdrop-filter for content cards so background doodles integrate with rich visual depth */
.feature-block {
  background: rgba(28, 28, 30, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative;
  z-index: 2;
}

.download-card {
  background: rgba(36, 36, 38, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative;
  z-index: 2;
}

.providers-table-wrapper {
  background: rgba(20, 20, 22, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative;
  z-index: 2;
}

.install-tabs {
  background: rgba(36, 36, 38, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative;
  z-index: 2;
}

.hero__title,
.hero__description,
.section-header__label,
.section-header__title,
.section-header__subtitle {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
  .section-doodle-bg {
    opacity: 0.12;
  }
  .section-doodle-bg img {
    width: 120%;
    max-width: none;
    object-position: center;
  }
  .section-doodle-bg--hero img {
    transform: none;
  }
}

/* ============================================================
   NEW: Three.js 3D Canvas Container (Neutral & Subtle)
   ============================================================ */
#neural-ocean-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

#neural-ocean-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ============================================================
   NEW: Feature 2 - Multi-Agent Orchestration Flow (Theme-Aligned, No Glow)
   ============================================================ */
.pipeline-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-2xl);
}

.pipeline-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-xl);
  position: relative;
}

.pipeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 16px;
}

.pipeline-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
}

.pipeline-status-badge__dot {
  width: 7px;
  height: 7px;
  background: var(--text-primary);
  border-radius: 50%;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.agent-node {
  background: var(--bg-primary);
  padding: var(--space-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
  text-align: left;
}

.agent-node:hover {
  background: var(--bg-elevated);
}

.agent-node--active {
  background: var(--bg-elevated) !important;
  outline: 2px solid var(--text-primary);
  outline-offset: -2px;
}

.agent-node__step {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-node__icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.agent-node--active .agent-node__icon {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.agent-node__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.agent-node__role {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Pipeline Inspector Card */
.pipeline-inspector {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.inspector-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-mission {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.inspector-tools-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.inspector-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 3px;
}

/* Simulated Agent Log Window */
.inspector-terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
}

.inspector-terminal .log-line--accent {
  color: var(--text-primary);
  font-weight: 500;
}

.inspector-terminal .log-line--success {
  color: var(--text-primary);
}

/* Quality Score Gauge Card */
.score-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.score-circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.score-circle__bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.score-circle__fill {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.6s ease;
}

.score-circle__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.score-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.score-bar__header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-heading);
}

.score-bar__track {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar__progress {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.6s ease;
}

@media (max-width: 960px) {
  .pipeline-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-inspector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .pipeline-flow {
    grid-template-columns: 1fr;
  }
}



/* ============================================================
   NEW: Feature 4 - BYOK Savings Calculator (Theme-Aligned, No Glow)
   ============================================================ */
.calc-section {
  position: relative;
  padding-top: var(--space-2xl);
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-xl);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-xl);
  align-items: center;
}

.calc-slider-group {
  margin-bottom: var(--space-lg);
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.calc-slider-label {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.calc-slider-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.calc-model-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.calc-model-btn:hover {
  border-color: var(--text-tertiary);
}

.calc-model-btn--active {
  background: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
  outline: 1px solid var(--text-primary);
}

.calc-model-btn__name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.calc-model-btn__rate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Comparison Display */
.calc-comparison {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  text-align: center;
}

.calc-box--octrops {
  background: var(--bg-code);
  border-color: var(--text-secondary);
}

.calc-box__title {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.calc-box__amount {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.calc-box__sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.calc-savings-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-primary);
  border-radius: 6px;
  padding: 16px 20px;
  text-align: center;
}

.calc-savings-banner__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.calc-savings-banner__num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}



