/* ================================================
   now2sdk — Corporate SDK Site CSS
   ================================================ */

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

:root {
  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --bg-4: #222222;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #818cf8;
  --accent-2: #38bdf8;
  --accent-3: #a78bfa;
  --green: #34d399;
  --orange: #fb923c;
  --red: #f87171;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 96px 0;
}

.desktop-only {
  display: inline;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  color: var(--accent);
  background: rgba(129, 140, 248, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Announcement Bar ──────────────────────── */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  position: relative;
  background: linear-gradient(90deg, rgba(129, 140, 248, .1), rgba(52, 211, 153, .06), rgba(129, 140, 248, .1));
  border-bottom: 1px solid rgba(129, 140, 248, .18);
  font-size: 13px;
  color: var(--text-secondary);
}

.announcement-bar .badge {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.announcement-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.announcement-link:hover {
  text-decoration: underline;
}

.announcement-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.announcement-close:hover {
  color: var(--text-primary);
}

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, .96);
  box-shadow: 0 1px 40px rgba(0, 0, 0, .7);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color .15s, background .15s;
}

.nav-link:hover,
.nav-link-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .05);
}

.chevron {
  transition: transform .2s;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 24px;
  min-width: 500px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.dropdown-sm {
  min-width: 280px;
  gap: 0;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col {
  flex: 1;
  min-width: 0;
}

.dropdown-heading {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  padding: 0 8px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background .15s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, .05);
}

.di-icon {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.di-purple {
  color: var(--accent-3);
}

.di-blue {
  color: var(--accent-2);
}

.di-cyan {
  color: #22d3ee;
}

.di-green {
  color: var(--green);
}

.di-orange {
  color: var(--orange);
}

.di-red {
  color: var(--red);
}

.dropdown-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
}

.dropdown-item small {
  display: block;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-menu a {
  padding: 11px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all .15s;
}

.mobile-menu a:hover {
  background: var(--bg-3);
  color: var(--text-primary);
}

.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 700px;
  height: 600px;
  top: -250px;
  left: 50%;
  transform: translateX(-55%);
  background: rgba(129, 140, 248, .1);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: 0%;
  background: rgba(56, 189, 248, .07);
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  top: 300px;
  left: 0%;
  background: rgba(52, 211, 153, .05);
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.free-badge {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-badge-sep {
  opacity: .3;
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Hero code area */
.hero-code-wrap {
  max-width: 760px;
  margin: 0 auto 36px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
}

.hero-code-tabs {
  display: flex;
  gap: 0;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

.hct {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .15s;
  margin-bottom: -1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

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

.hct.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.hero-code-block {
  position: relative;
}

.hero-code-panel {
  display: none;
}

.hero-code-panel.active {
  display: block;
}

/* Code block shared */
.code-block,
.hero-code-block {
  background: #090909;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
}

.lang-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ldot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.ldot-r {
  background: #ff5f56;
}

.ldot-y {
  background: #ffbd2e;
}

.ldot-g {
  background: #27c93f;
}

.code-lang {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
}

.copy-btn {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 4px;
  transition: all .15s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text-primary);
}

pre {
  overflow-x: auto;
}

pre code {
  display: block;
  padding: 20px;
  line-height: 1.85;
  color: #cdd6f4;
  background: none;
  border-radius: 0;
  font-size: 13px;
}

/* mini-code inside cards */
.mini-code pre code {
  padding: 14px;
  font-size: 12px;
  line-height: 1.75;
}

.mini-code {
  margin-top: 20px;
  background: #090909;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Syntax colors */
.cm {
  color: #6c7086;
}

.kw {
  color: #cba6f7;
}

.str {
  color: #a6e3a1;
}

.fn {
  color: #89b4fa;
}

.num {
  color: #fab387;
}

.prop {
  color: #f38ba8;
}

.tmpl {
  color: #f38ba8;
}

/* Platform chips */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: all .15s;
}

.platform-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ── Stats Bar ─────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 0;
  width: fit-content;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Architecture ──────────────────────────── */
.arch-intro {
  padding-bottom: 0;
}

.arch-flow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.arch-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.arch-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  padding-left: 4px;
}

.arch-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color .2s;
}

.arch-node:hover {
  border-color: var(--border-hover);
}

.arch-node-accent {
  border-color: rgba(129, 140, 248, .25);
  background: rgba(129, 140, 248, .05);
}

.arch-sink {
  border-color: rgba(56, 189, 248, .2);
  background: rgba(56, 189, 248, .04);
}

.arch-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.arch-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-tertiary);
  margin-bottom: 4px;
  width: fit-content;
}

.arch-tag.accent {
  background: rgba(129, 140, 248, .15);
  color: var(--accent);
}

.arch-tag.sink {
  background: rgba(56, 189, 248, .12);
  color: var(--accent-2);
}

.arch-arrow {
  font-size: 24px;
  color: var(--text-tertiary);
  padding-top: 52px;
  flex-shrink: 0;
}

/* ── Bento Grid ────────────────────────────── */
.bento-section {
  padding-top: 48px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 14px;
}

/* Row 1: SDK=8 cols, Free=4 cols */
.bento-sdk {
  grid-column: 1 / 9;
  grid-row: 1;
}

.bento-free {
  grid-column: 9 / 13;
  grid-row: 1;
}

/* Row 2: Playout=6, Switch=6 */
.bento-grid>#bento-playout {
  grid-column: 1 / 7;
  grid-row: 2;
}

.bento-grid>#bento-switch {
  grid-column: 7 / 13;
  grid-row: 2;
}

/* Row 3: Record=6, CG=6 */
.bento-grid>#bento-rec {
  grid-column: 1 / 7;
  grid-row: 3;
}

.bento-grid>#bento-cg {
  grid-column: 7 / 13;
  grid-row: 3;
}

/* Row 4: Linux full-width */
.bento-linux {
  grid-column: 1 / -1;
  grid-row: 4;
}

.bento-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color .3s, transform .25s;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-content {
  padding: 28px 32px;
  position: relative;
  z-index: 1;
}

.bento-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bento-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(129, 140, 248, .1);
  border: 1px solid rgba(129, 140, 248, .2);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

/* when inside bento-top-row, remove bottom margin */
.bento-top-row .bento-badge {
  margin-bottom: 0;
}

.free-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .2);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.bento-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.bento-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .4s;
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

/* Free card specifics */
.big-free-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.big-free-badge span {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modules-split-container {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.modules-column {
  display: flex;
  flex-direction: column;
}

.column-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.free-modules-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fm-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.fm-item code {
  font-size: 10px;
}

.fm-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.fm-paid {
  opacity: .7;
}

.fm-paid-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(167, 139, 250, .12);
  border: 1px solid rgba(167, 139, 250, .25);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-3);
}

/* Feature pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.fpill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* SDK card — back to single column */
.bento-sdk .bento-content {
  padding: 28px 32px;
  display: block;
}

.bento-sdk-left,
.bento-sdk-right {
  display: none;
}

/* LPreview arch node */
.arch-preview {
  border-color: rgba(167, 139, 250, .35);
  background: rgba(167, 139, 250, .07);
}

.arch-tag.preview {
  background: rgba(167, 139, 250, .15);
  color: var(--accent-3);
}

.arch-note {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.arch-note-inner {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.arch-note-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.arch-tag-sm {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .05em;
  background: rgba(129, 140, 248, .12);
  color: var(--accent);
  flex-shrink: 0;
}

/* Linux card */
.bento-linux .bento-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.linux-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}

.linux-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
}

.linux-logo-item small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.linux-logo-bright {
  color: #60a5fa;
}

.linux-info {}

.distro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dchip {
  padding: 4px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Tech Stack Grid ───────────────────────── */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .2s, background .2s;
}

.tech-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-3);
}

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-info {
  flex: 1;
  min-width: 0;
}

.tech-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.tech-desc {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.tech-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Module Table ──────────────────────────── */
.modules-section {
  border-top: 1px solid var(--border);
}

.modules-table {
  margin-top: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.mt-header {
  display: grid;
  grid-template-columns: 160px 90px 1fr 100px;
  padding: 12px 24px;
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}

.mt-row {
  display: grid;
  grid-template-columns: 160px 90px 1fr 100px;
  padding: 14px 24px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.mt-row:last-child {
  border-bottom: none;
}

.mt-row:hover {
  background: rgba(255, 255, 255, .02);
}

.mt-row-paid {
  background: rgba(167, 139, 250, .03);
}

.mt-class {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.mt-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  width: fit-content;
}

.mt-type.source {
  background: rgba(129, 140, 248, .1);
  color: var(--accent);
  border: 1px solid rgba(129, 140, 248, .2);
}

.mt-type.router {
  background: rgba(251, 146, 60, .1);
  color: var(--orange);
  border: 1px solid rgba(251, 146, 60, .2);
}

.mt-type.sink {
  background: rgba(56, 189, 248, .1);
  color: var(--accent-2);
  border: 1px solid rgba(56, 189, 248, .2);
}

.mt-type.paid-t {
  background: rgba(167, 139, 250, .1);
  color: var(--accent-3);
  border: 1px solid rgba(167, 139, 250, .2);
}

.mt-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mt-lic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-lic {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(52, 211, 153, .1);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, .2);
}

.paid-lic {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(167, 139, 250, .1);
  color: var(--accent-3);
  border: 1px solid rgba(167, 139, 250, .2);
  white-space: nowrap;
}

/* ── Pricing ───────────────────────────────── */
.pricing-section {
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 36px;
  position: relative;
  transition: border-color .3s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-popular {
  border-color: rgba(129, 140, 248, .35);
  background: linear-gradient(160deg, rgba(129, 140, 248, .06), var(--bg-1));
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .15);
}

.plan-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.plan-price {
  margin-bottom: 10px;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.plan-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pf-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pf-dim {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ── CTA ───────────────────────────────────── */
.cta-section {
  padding: 40px 0 96px;
}

.cta-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid rgba(129, 140, 248, .2);
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(129, 140, 248, .13), transparent);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-card>.cta-content>p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cta-install {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.install-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.install-cmd code {
  font-size: 13px;
  color: var(--accent-2);
  background: none;
  padding: 0;
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer-tagline code {
  font-size: 12px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all .15s;
}

.social-link:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-col h5 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .15s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tech-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-chip {
  padding: 3px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .bento-sdk {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bento-free {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bento-grid>#bento-playout {
    grid-column: 1 / 7;
    grid-row: 3;
  }

  .bento-grid>#bento-switch {
    grid-column: 7 / 13;
    grid-row: 3;
  }

  .bento-grid>#bento-rec {
    grid-column: 1 / 7;
    grid-row: 4;
  }

  .bento-grid>#bento-cg {
    grid-column: 7 / 13;
    grid-row: 4;
  }

  .bento-linux {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .bento-linux .bento-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .linux-logos {
    justify-content: flex-start;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-flow {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    padding-left: 100px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .hero-badge {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .desktop-only {
    display: none;
  }

  .bento-grid>#bento-playout,
  .bento-grid>#bento-switch,
  .bento-grid>#bento-rec,
  .bento-grid>#bento-cg {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .stats-inner {
    flex-direction: column;
    padding: 24px;
    width: 100%;
  }

  .stat-div {
    width: 60px;
    height: 1px;
  }

  .mt-header {
    display: none;
  }

  .mt-row {
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 14px 16px;
  }

  .mt-class {
    grid-column: 1;
    grid-row: 1;
  }

  .mt-type {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
  }

  .mt-desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mt-lic {
    display: none;
  }

  .cta-card {
    padding: 48px 20px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-inner {
    width: 100%;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }

  .hero-platforms {
    gap: 6px;
  }

  .platform-chip {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ── Animations ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}    /* ── Module page layout ─── */
    .mod-page {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 0;
      min-height: calc(100vh - 58px);
    }

    /* Sidebar */
    .mod-sidebar {
      position: sticky;
      top: 58px;
      height: calc(100vh - 58px);
      overflow-y: auto;
      border-right: 1px solid var(--border);
      background: var(--bg-1);
      padding: 32px 0;
    }

    .mod-sidebar::-webkit-scrollbar { width: 4px; }
    .mod-sidebar::-webkit-scrollbar-track { background: transparent; }
    .mod-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .sb-section {
      margin-bottom: 28px;
      padding: 0 20px;
    }

    .sb-heading {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--text-tertiary);
      margin-bottom: 8px;
      padding-left: 8px;
    }

    .sb-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 8px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-secondary);
      text-decoration: none;
      transition: all .15s;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
      cursor: pointer;
    }

    .sb-link:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
    .sb-link.active { background: rgba(129,140,248,.1); color: var(--accent); }

    .sb-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .sb-paid-badge {
      margin-left: auto;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(167,139,250,.12);
      border: 1px solid rgba(167,139,250,.2);
      color: var(--accent-3);
      font-family: 'Inter', sans-serif;
    }

    /* Main content */
    .mod-main {
      padding: 56px 64px;
      max-width: 1200px;
      line-height: 1.8;
      color: var(--text-secondary);
    }
    
    .mod-main h1 {
      font-size: 40px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 24px;
      letter-spacing: -0.02em;
    }
    
    .mod-main h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      margin-top: 48px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    
    .mod-main h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-top: 32px;
      margin-bottom: 12px;
    }
    
    .mod-main a {
      color: var(--accent);
      text-decoration: none;
      transition: color 0.15s, border-color 0.15s;
      border-bottom: 1px solid rgba(129, 140, 248, 0.25);
    }
    
    .mod-main a:hover {
      color: #a5b4fc;
      border-bottom-color: #a5b4fc;
    }

    .mod-main h1 a,
    .mod-main h2 a,
    .mod-main h3 a,
    .mod-main h4 a,
    .mod-main h5 a,
    .mod-main h6 a {
      color: inherit;
      border-bottom: none;
    }
    
    .mod-main h1 a:hover,
    .mod-main h2 a:hover,
    .mod-main h3 a:hover,
    .mod-main h4 a:hover,
    .mod-main h5 a:hover,
    .mod-main h6 a:hover {
      color: var(--accent);
      text-decoration: underline;
    }
    
    .mod-main p {
      margin-bottom: 16px;
      font-size: 15px;
    }
    
    .mod-main ul {
      margin-left: 20px;
      margin-bottom: 24px;
    }
    
    .mod-main li {
      margin-bottom: 8px;
      font-size: 15px;
    }
    
    .mod-main code {
      font-family: 'JetBrains Mono', monospace;
      background: rgba(255,255,255,0.06);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 13px;
      color: var(--text-primary);
    }

    .mod-main pre {
      background: var(--bg-1) !important;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 16px !important;
      overflow-x: auto;
      margin-top: 16px;
      margin-bottom: 24px;
    }

    .mod-main pre code {
      background: transparent;
      padding: 0;
      color: inherit;
    }

    .mod-main table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
      font-size: 14px;
      text-align: left;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    
    .mod-main th {
      background: var(--bg-2);
      color: var(--text-primary);
      font-weight: 600;
      padding: 10px 16px;
      border-bottom: 1px solid var(--border);
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.05em;
    }
    
    .mod-main td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      color: var(--text-secondary);
    }
    
    .mod-main table td:first-child,
    .mod-main table th:first-child {
      white-space: nowrap;
      font-weight: 700;
      width: 1%; /* Shrink column to fit contents without wrapping */
    }

    .mod-main table a {
      display: inline-block;
      padding: 6px 14px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-primary) !important;
      text-decoration: none;
      font-weight: 600;
      font-size: 13px;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .mod-main table a:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--accent);
      color: var(--text-primary) !important;
      box-shadow: 0 0 12px rgba(129, 140, 248, 0.15);
    }
    
    .mod-main tr:last-child td {
      border-bottom: none;
    }
    
    .mod-main tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @media (max-width: 900px) {
      .mod-page { grid-template-columns: 1fr; }
      .mod-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
      .mod-main { padding: 32px 24px; }
      .mod-main h1 { font-size: 32px; }
    }
    /* ── Module page layout ─── */
    .mod-page {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 0;
      min-height: calc(100vh - 58px);
    }

    /* Sidebar */
    .mod-sidebar {
      position: sticky;
      top: 58px;
      height: calc(100vh - 58px);
      overflow-y: auto;
      border-right: 1px solid var(--border);
      background: var(--bg-1);
      padding: 32px 0;
    }

    .mod-sidebar::-webkit-scrollbar { width: 4px; }
    .mod-sidebar::-webkit-scrollbar-track { background: transparent; }
    .mod-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .sb-section {
      margin-bottom: 28px;
      padding: 0 20px;
    }

    .sb-heading {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--text-tertiary);
      margin-bottom: 8px;
      padding-left: 8px;
    }

    .sb-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 8px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-secondary);
      text-decoration: none;
      transition: all .15s;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
    }

    .sb-link:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
    .sb-link.active { background: rgba(129,140,248,.1); color: var(--accent); }

    .sb-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .sb-paid-badge {
      margin-left: auto;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(167,139,250,.12);
      border: 1px solid rgba(167,139,250,.2);
      color: var(--accent-3);
      font-family: 'Inter', sans-serif;
    }

    /* Main content */
    .mod-main {
      padding: 56px 64px;
      max-width: 1200px;
    }

    .mod-hero {
      margin-bottom: 64px;
    }

    .mod-hero h1 {
      font-size: 48px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.05;
      margin-bottom: 16px;
    }

    .mod-hero p {
      font-size: 17px;
      color: var(--text-secondary);
      line-height: 1.75;
      max-width: 560px;
    }

    /* Module card */
    .mod-card {
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      overflow: hidden;
      margin-bottom: 24px;
      background: var(--bg-1);
      transition: border-color .2s;
      scroll-margin-top: 80px;
    }

    .mod-card:hover { border-color: var(--border-hover); }

    .mod-card-paid {
      border-color: rgba(167,139,250,.2);
      background: linear-gradient(160deg, rgba(167,139,250,.04), var(--bg-1));
    }

    .mod-card-header {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 24px 28px;
      border-bottom: 1px solid var(--border);
      background: rgba(255,255,255,.015);
    }

    .mod-icon {
      width: 48px; height: 48px;
      border-radius: var(--radius-md);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
      border: 1px solid;
    }

    .mod-title-group { flex: 1; }

    .mod-class-name {
      font-family: 'JetBrains Mono', monospace;
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.02em;
    }

    .mod-subtitle {
      font-size: 13px;
      color: var(--text-tertiary);
      margin-top: 2px;
    }

    .mod-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

    .mod-type-badge {
      display: inline-flex; align-items: center;
      padding: 4px 12px; border-radius: 100px;
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .06em;
      border: 1px solid;
    }

    .mod-lic-badge {
      display: inline-flex; align-items: center;
      padding: 4px 12px; border-radius: 100px;
      font-size: 11px; font-weight: 700;
      letter-spacing: .05em;
      border: 1px solid;
    }

    .badge-source { background: rgba(129,140,248,.1); color: var(--accent); border-color: rgba(129,140,248,.2); }
    .badge-router { background: rgba(251,146,60,.1); color: var(--orange); border-color: rgba(251,146,60,.2); }
    .badge-sink   { background: rgba(56,189,248,.1);  color: var(--accent-2); border-color: rgba(56,189,248,.2); }
    .badge-preview{ background: rgba(167,139,250,.1); color: var(--accent-3); border-color: rgba(167,139,250,.2); }
    .badge-free   { background: rgba(52,211,153,.1);  color: var(--green); border-color: rgba(52,211,153,.2); }
    .badge-paid   { background: rgba(167,139,250,.1); color: var(--accent-3); border-color: rgba(167,139,250,.2); }

    .mod-card-body { padding: 24px 28px; }

    .mod-desc {
      font-size: 14.5px;
      color: var(--text-secondary);
      line-height: 1.8;
      margin-bottom: 20px;
    }

    .mod-props {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .mod-prop {
      padding: 4px 12px;
      background: rgba(255,255,255,.04);
      border: 1px solid var(--border);
      border-radius: 100px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .mod-code-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-tertiary);
      margin-bottom: 8px;
    }

    /* Section separator */
    .mod-section-title {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-tertiary);
      margin: 48px 0 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    @media (max-width: 900px) {
      .mod-page { grid-template-columns: 1fr; }
      .mod-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
      .mod-main { padding: 32px 24px; }
      .mod-hero h1 { font-size: 32px; }
    }
    .dl-page {
      min-height: calc(100vh - 58px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px 24px;
      background: var(--bg-0);
      position: relative;
      overflow: hidden;
    }

    /* Background glow */
    .dl-glow {
      position: absolute;
      border-radius: 50%;
      filter: blur(120px);
      pointer-events: none;
    }

    .dl-glow-1 {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
      top: -150px;
      left: 50%;
      transform: translateX(-50%);
    }

    .dl-glow-2 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
      bottom: -100px;
      right: 0;
    }

    .dl-card {
      position: relative;
      z-index: 1;
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 64px 72px;
      max-width: 680px;
      width: 100%;
      text-align: center;
      box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .dl-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(129, 140, 248, 0.1);
      border: 1px solid rgba(129, 140, 248, 0.2);
      border-radius: 999px;
      padding: 6px 16px;
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 32px;
    }

    .dl-badge-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse-dot 2s ease-in-out infinite;
    }

    @keyframes pulse-dot {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.4;
        transform: scale(0.8);
      }
    }

    .dl-logo {
      display: block;
      margin: 0 auto 28px;
      height: 52px;
      width: auto;
    }

    .dl-title {
      font-size: 36px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      margin-bottom: 12px;
      line-height: 1.1;
    }

    .dl-title span {
      background: linear-gradient(135deg, #818cf8, #38bdf8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .dl-subtitle {
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 40px;
    }

    /* Version info row */
    .dl-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .dl-meta-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-tertiary);
    }

    .dl-meta-item strong {
      color: var(--text-secondary);
      font-weight: 600;
    }

    .dl-meta-sep {
      width: 1px;
      height: 16px;
      background: var(--border);
    }

    /* Download button */
    .dl-btn {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
      color: #fff;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      padding: 16px 40px;
      border-radius: 12px;
      transition: all 0.2s;
      box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
      letter-spacing: -0.01em;
      margin-bottom: 20px;
    }

    .dl-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    .dl-btn:active {
      transform: translateY(0);
    }

    .dl-btn svg {
      flex-shrink: 0;
    }

    .dl-note {
      font-size: 12px;
      color: var(--text-tertiary);
      margin-bottom: 48px;
    }

    /* Requirements */
    .dl-req {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 24px;
      text-align: left;
    }

    .dl-req-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-tertiary);
      margin-bottom: 16px;
    }

    .dl-req-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .dl-req-list li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .dl-req-list li::before {
      content: '';
      width: 5px;
      height: 5px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
    }

    @media (max-width: 640px) {
      .dl-card {
        padding: 40px 24px;
      }

      .dl-title {
        font-size: 28px;
      }

      .dl-req-list {
        grid-template-columns: 1fr;
      }

      .dl-meta-sep {
        display: none;
      }
    }
    .contact-page {
      min-height: calc(100vh - 58px);
      padding: 80px 24px;
      background: var(--bg-0);
      position: relative;
      overflow: hidden;
    }

    .contact-glow {
      position: absolute;
      border-radius: 50%;
      filter: blur(140px);
      pointer-events: none;
    }
    .contact-glow-1 {
      width: 700px; height: 500px;
      background: radial-gradient(circle, rgba(129,140,248,0.1) 0%, transparent 70%);
      top: -100px; left: 50%;
      transform: translateX(-60%);
    }
    .contact-glow-2 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, transparent 70%);
      bottom: 0; right: -100px;
    }

    .contact-container {
      position: relative;
      z-index: 1;
      max-width: 1000px;
      margin: 0 auto;
    }

    .contact-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .contact-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(129,140,248,0.1);
      border: 1px solid rgba(129,140,248,0.2);
      border-radius: 999px;
      padding: 6px 16px;
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 24px;
    }

    .contact-title {
      font-size: 48px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 16px;
    }

    .contact-title span {
      background: linear-gradient(135deg, #818cf8, #38bdf8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .contact-subtitle {
      font-size: 17px;
      color: var(--text-secondary);
      line-height: 1.6;
      max-width: 500px;
      margin: 0 auto;
    }

    /* Layout */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 40px;
      align-items: start;
    }

    /* Info cards */
    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .info-card {
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      transition: border-color 0.2s;
    }

    .info-card:hover {
      border-color: rgba(129,140,248,0.3);
    }

    .info-card-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      font-size: 18px;
    }

    .info-card-icon.purple { background: rgba(129,140,248,0.12); }
    .info-card-icon.cyan   { background: rgba(56,189,248,0.12); }
    .info-card-icon.green  { background: rgba(16,185,129,0.12); }

    .info-card h4 {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .info-card p {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0;
    }

    .info-card a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }

    .info-card a:hover { text-decoration: underline; }

    /* Form */
    .contact-form-wrap {
      background: var(--bg-1);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 40px;
    }

    .form-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 28px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 8px;
    }

    .form-input,
    .form-select,
    .form-textarea {
      width: 100%;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      color: var(--text-primary);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
      box-sizing: border-box;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
      color: var(--text-tertiary);
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(129,140,248,0.12);
    }

    .form-select {
      appearance: none;
      cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M12.06 6.75L8 10.5 3.94 6.75z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
    }

    .form-select option {
      background: #1e1e2e;
      color: var(--text-primary);
    }

    .form-textarea {
      resize: vertical;
      min-height: 130px;
      line-height: 1.6;
    }

    .form-submit {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 14px 32px;
      font-size: 15px;
      font-weight: 700;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 8px 24px rgba(99,102,241,0.3);
      letter-spacing: -0.01em;
      margin-top: 8px;
    }

    .form-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 36px rgba(99,102,241,0.45);
    }

    .form-submit:active { transform: translateY(0); }

    /* Success state */
    .form-success {
      display: none;
      text-align: center;
      padding: 48px 24px;
    }

    .form-success-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .form-success h3 {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .form-success p {
      font-size: 14px;
      color: var(--text-secondary);
    }

    @media (max-width: 768px) {
      .contact-grid { grid-template-columns: 1fr; }
      .contact-title { font-size: 36px; }
      .form-row { grid-template-columns: 1fr; }
      .contact-form-wrap { padding: 28px 20px; }
    }
    /* ── Mail Modal ── */
    .mail-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s;
    }
    .mail-modal-overlay.open {
      opacity: 1;
      pointer-events: all;
    }
    .mail-modal {
      background: #1a1a2e;
      border: 1px solid rgba(129,140,248,0.25);
      border-radius: 24px;
      padding: 48px 40px;
      max-width: 480px;
      width: 100%;
      text-align: center;
      box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
      transform: scale(0.92) translateY(20px);
      transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    }
    .mail-modal-overlay.open .mail-modal {
      transform: scale(1) translateY(0);
    }
    .mail-modal-icon {
      width: 72px; height: 72px;
      background: linear-gradient(135deg, rgba(129,140,248,0.15), rgba(56,189,248,0.1));
      border: 1px solid rgba(129,140,248,0.3);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 24px;
      color: #818cf8;
      animation: float 3s ease-in-out infinite;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    .mail-modal-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }
    .mail-modal-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 28px;
    }
    .mail-modal-desc strong { color: var(--accent); }
    .mail-modal-info {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 20px;
      margin-bottom: 28px;
      text-align: left;
    }
    .mail-modal-info-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mail-modal-info-row:last-child { border-bottom: none; }
    .mail-modal-info-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-tertiary);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .mail-modal-info-value {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-primary);
      font-family: 'JetBrains Mono', monospace;
      text-align: right;
      word-break: break-word;
    }
    .mail-modal-close {
      width: 100%;
      background: linear-gradient(135deg, #818cf8, #6366f1);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 14px 32px;
      font-size: 15px;
      font-weight: 700;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    }
    .mail-modal-close:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 36px rgba(99,102,241,0.45);
    }

/* ================================================
   COMPARISON & ONE PATTERN SECTIONS
   ================================================ */

.comparison-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--border);
}

.comparison-table-wrapper {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.comp-table th, .comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--bg-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

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

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

.comp-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 35%;
}

.comp-table th:not(:first-child), .comp-table td:not(:first-child) {
  text-align: center;
}

/* Highlight now2sdk column */
.comp-table .now2sdk-col {
  background: rgba(129, 140, 248, 0.04);
  border-left: 1px solid rgba(129, 140, 248, 0.15);
  border-right: 1px solid rgba(129, 140, 248, 0.15);
  font-weight: 700;
  color: var(--text-primary);
}

.comp-table th.now2sdk-col {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent);
}

/* Icons */
.comp-check {
  color: var(--green);
  font-weight: 800;
}

.comp-cross {
  color: var(--text-tertiary);
  font-weight: 400;
  opacity: 0.6;
}

.comp-dash {
  color: var(--orange);
  font-weight: 700;
}

/* One Pattern Section */
.one-pattern-section {
  padding: 80px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.one-pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.one-pattern-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.one-pattern-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.one-pattern-code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.one-pattern-code .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.one-pattern-code pre {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .one-pattern-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

