/* ==========================================================================
   L2 Lab (l2lab.ru) — Official Production Design System v4.6
   Brand Identity: Precision Squared (L × L = L²)
   Themes: Unified Dark (#0A0B0E Obsidian Carbon) & Light (#F5F4F0 Warm Paper)
   Accent: Signal Vermilion (#FF5520)
   Typography: Geologica + Golos Text + JetBrains Mono
   ========================================================================== */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: #0A0B0E;
  --bg-surface-1: #111318;
  --bg-surface-2: #181B22;
  --bg-surface-3: #20242E;
  --bg-nav: rgba(10, 11, 14, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.032);

  --text-primary: #F4F3EF;
  --text-secondary: #9CA3B0;
  --text-muted: #646D7D;

  --accent: #FF5520;
  --accent-hover: #FF6B3D;
  --accent-soft: rgba(255, 85, 32, 0.13);
  --accent-border: rgba(255, 85, 32, 0.38);
  --accent-note-text: #FF855E;

  --status-live: #10B981;
  --status-live-soft: rgba(16, 185, 129, 0.12);
  --status-live-text: #D1FAE5;
  --status-live-title: #34D399;

  --shadow-stage: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-chat: 0 24px 64px rgba(0, 0, 0, 0.65);

  --font-display: 'Geologica', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg-canvas: #F5F4F0;
    --bg-surface-1: #FFFFFF;
    --bg-surface-2: #EAE8E1;
    --bg-surface-3: #DCD9CF;
    --bg-nav: rgba(245, 244, 240, 0.90);

    --border-subtle: rgba(14, 16, 21, 0.09);
    --border-strong: rgba(14, 16, 21, 0.18);
    --grid-line: rgba(14, 16, 21, 0.042);

    --text-primary: #0E1015;
    --text-secondary: #4A5160;
    --text-muted: #646D7D;

    --accent: #FF5520;
    --accent-hover: #E04412;
    --accent-soft: rgba(255, 85, 32, 0.10);
    --accent-border: rgba(255, 85, 32, 0.40);
    --accent-note-text: #C93B10;

    --status-live: #059669;
    --status-live-soft: rgba(16, 185, 129, 0.11);
    --status-live-text: #064E3B;
    --status-live-title: #047857;

    --shadow-stage: 0 18px 44px rgba(14, 16, 21, 0.08);
    --shadow-chat: 0 20px 56px rgba(14, 16, 21, 0.22);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: #F5F4F0;
  --bg-surface-1: #FFFFFF;
  --bg-surface-2: #EAE8E1;
  --bg-surface-3: #DCD9CF;
  --bg-nav: rgba(245, 244, 240, 0.90);

  --border-subtle: rgba(14, 16, 21, 0.09);
  --border-strong: rgba(14, 16, 21, 0.18);
  --grid-line: rgba(14, 16, 21, 0.042);

  --text-primary: #0E1015;
  --text-secondary: #4A5160;
  --text-muted: #646D7D;

  --accent: #FF5520;
  --accent-hover: #E04412;
  --accent-soft: rgba(255, 85, 32, 0.10);
  --accent-border: rgba(255, 85, 32, 0.40);
  --accent-note-text: #C93B10;

  --status-live: #059669;
  --status-live-soft: rgba(16, 185, 129, 0.11);
  --status-live-text: #064E3B;
  --status-live-title: #047857;

  --shadow-stage: 0 18px 44px rgba(14, 16, 21, 0.08);
  --shadow-chat: 0 20px 56px rgba(14, 16, 21, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Signature Coordinate L-Brackets (L × L = L²) */
.l-frame {
  position: relative;
}

.l-frame::before,
.l-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
}

.l-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.l-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.035em;
  font-variation-settings: 'SHRP' 100, 'CRSV' 0;
  color: var(--text-primary);
}

.logo-wordmark span {
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-strong);
  padding: 16px 24px 22px;
  flex-direction: column;
  gap: 14px;
}

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

.mobile-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
}

.mobile-drawer-lk {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.mobile-drawer-lk:hover {
  border-color: var(--accent) !important;
  background: var(--bg-surface-3) !important;
}

.mobile-lk-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #FFFFFF;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.btn-nav-login {
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .btn-nav-login {
    display: none !important;
  }
}

/* Buttons — Strictly Signal Vermilion (#FF5520), never purple */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #FF5520;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 85, 32, 0.24);
}

.btn-primary:hover {
  background-color: #FF6B3D;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 85, 32, 0.34);
}

.btn-secondary,
.btn-ink {
  background-color: var(--bg-surface-2);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-ink:hover {
  background-color: #FF5520;
  border-color: #FF5520;
  color: #FFFFFF;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* Hero Section */
.hero {
  padding: 68px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 42px;
  align-items: start;
}

.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 10px var(--status-live);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.035em;
  font-variation-settings: 'SHRP' 100, 'CRSV' 0;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Interactive Hero Demo Stage */
.demo-stage {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-stage);
}

.demo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-canvas);
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.demo-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 9px 8px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.demo-tab.active {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.niche-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.niche-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.niche-pill.active,
.niche-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-soft);
  font-weight: 600;
}

.chat-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.bubble {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.bubble-user {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  margin-left: 18px;
}

.bubble-ai {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  color: var(--text-primary);
  margin-right: 10px;
}

.bubble-tg {
  background: var(--status-live-soft);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: var(--status-live-text);
  font-size: 12.5px;
  margin-bottom: 0;
}

.bubble-tg-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--status-live-title);
  margin-bottom: 4px;
}

.demo-cta-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.demo-cta-bar span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Sections — Unified Theme across all sections */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 76px;
}

.section-header {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variation-settings: 'SHRP' 100, 'CRSV' 0;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

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

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.service-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-primary);
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--accent);
}

.idea-banner {
  margin-top: 26px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Pricing & Toggle — Unified with Page Theme */
.pricing-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg-surface-1);
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  gap: 4px;
}

.mode-btn {
  padding: 10px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn.active {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.mode-badge {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.pricing-b2b-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.pkg-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.pkg-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-surface-1) 42%);
}

.pkg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.pkg-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.pkg-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.pkg-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pkg-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pkg-market {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pkg-market s {
  opacity: 0.85;
}

.pkg-alt-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-note-text);
  margin-bottom: 18px;
}

.pkg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  margin-bottom: 24px;
  flex: 1;
  color: var(--text-primary);
}

.pkg-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.48;
}

.pkg-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Subscriptions Section */
.subs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sub-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.sub-card.highlight {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-surface-1) 45%);
}

.sub-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 10px 0 4px;
}

.sub-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sub-explain-box {
  margin-bottom: 32px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.sub-explain-box strong {
  color: var(--text-primary);
}

/* ROI Calculator */
.calc-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 22px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface-3);
  accent-color: var(--accent);
  outline: none;
  cursor: pointer;
}

.calc-result-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.calc-result-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.calc-result-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--status-live);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.calc-result-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Process 4 Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Lead Form & Contacts */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.lead-form-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 0.18s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mail-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.mail-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.mail-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.mail-card a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.mail-card a:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 60px 0 36px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   L2 Lab Embedded Anti-Bot AI Sales & Support Chat Widget (Theme-Aware)
   ========================================================================== */
.l2chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #FF5520;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 85, 32, 0.42);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.l2chat-launcher:hover {
  background: #FF6B3D;
  transform: translateY(-2px);
}

.l2chat-launcher-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
}

.l2chat-launcher.hidden-when-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.l2chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 416px;
  max-width: calc(100vw - 28px);
  height: 640px;
  max-height: calc(100dvh - 44px);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-chat);
  z-index: 9995;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.l2chat-panel.open {
  display: flex;
}

.l2chat-head {
  background: var(--bg-canvas);
  border-bottom: 2px solid #FF5520;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.l2chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.l2chat-head-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.l2chat-head-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--status-live);
  display: flex;
  align-items: center;
  gap: 6px;
}

.l2chat-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.l2chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-canvas);
}

.l2msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.l2msg-bot {
  align-self: flex-start;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #FF5520;
  color: var(--text-primary);
}

.l2msg-operator {
  align-self: flex-start;
  background: var(--status-live-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--status-live-text);
}

.l2msg-client {
  align-self: flex-end;
  background: #FF5520;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.l2msg-sys {
  align-self: center;
  max-width: 94%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-surface-1);
  border: 1px dashed var(--border-strong);
  padding: 8px 12px;
}

.l2msg-who {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.l2chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.l2chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.l2chip:hover {
  background: #FF5520;
  color: #FFFFFF;
}

/* Invoice Confirmation & Download Card inside Chat */
.l2inv-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 13px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-primary);
}

.l2inv-card-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FF5520;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.l2inv-row {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.l2inv-row strong {
  color: var(--text-primary);
}

.l2inv-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #FF5520;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.l2inv-btn:hover {
  background: #FF6B3D;
}

.l2inv-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #10B981;
  color: #052E16;
  font-weight: 700;
  font-size: 12.5px;
}

.l2chat-typing {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 4px 16px;
  display: none;
  background: var(--bg-canvas);
}

.l2chat-typing.on {
  display: block;
}

.l2chat-err {
  font-size: 12px;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.14);
  padding: 6px 14px;
  display: none;
}

.l2chat-err.on {
  display: block;
}

.l2chat-foot {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.l2chat-file-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
}

.l2chat-file-bar.on {
  display: flex;
}

.l2chat-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2chat-file-remove {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.l2chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.l2chat-attach {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.l2chat-attach:hover {
  border-color: #FF5520;
  color: var(--accent);
}

.l2msg-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.l2chat-textarea {
  flex: 1;
  height: 44px;
  min-height: 44px;
  max-height: 104px;
  resize: none;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.38;
  overflow-y: auto;
}

.l2chat-textarea:focus {
  outline: none;
  border-color: #FF5520;
}

.l2chat-send {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: #FF5520;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  flex-shrink: 0;
}

.l2chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ==========================================================================
   Responsive Layout: Tablet & Mobile Perfection
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .services-grid,
  .packages-grid,
  .subs-grid,
  .calc-grid,
  .lead-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links,
  .btn-nav-login {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .idea-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .btn-nav-login {
    display: none !important;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    height: 64px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-actions .btn-nav-cta {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .theme-toggle-btn,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-title {
    font-size: 31px;
    line-height: 1.13;
  }

  .hero-subtitle {
    font-size: 15.5px;
  }

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

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demo-stage {
    padding: 14px;
  }

  .demo-tabs {
    grid-template-columns: 1fr;
  }

  .demo-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 56px 0;
  }

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

  .service-card,
  .pkg-card,
  .sub-card,
  .calc-card,
  .lead-form-box,
  .idea-banner {
    padding: 22px 18px;
  }

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

  .mode-btn {
    width: 100%;
    text-align: center;
  }

  .steps-grid,
  .mail-cards {
    grid-template-columns: 1fr;
  }

  .calc-label {
    flex-direction: column;
    gap: 4px;
  }

  .calc-result-val {
    font-size: 30px;
  }

  /* Full-screen native feel chat sheet on mobile — synced to visualViewport when keyboard opens */
  .l2chat-launcher {
    right: 14px;
    bottom: 14px;
    height: 50px;
    padding: 0 16px 0 14px;
    font-size: 13px;
  }

  .l2chat-panel {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

/* Attachments belong below their own message caption. */
.l2msg-body{display:block}.l2msg .l2msg-file-badge{display:flex;max-width:100%;width:fit-content;white-space:normal;overflow-wrap:anywhere;color:inherit;border:1px solid rgba(255,255,255,.12);text-align:left;cursor:pointer}.l2msg-image{display:block;border:0;background:transparent;padding:0;margin:10px 0 0;cursor:zoom-in;max-width:100%}.l2msg-image img{display:block;max-width:100%;width:auto;max-height:220px;min-height:48px;border-radius:10px;object-fit:contain}.l2chat-file-preview{width:64px;height:64px;object-fit:contain;border-radius:6px;background:#111318;flex-shrink:0}.l2chat-file-preview[hidden]{display:none}.l2chat-image-view{border:1px solid #394151;border-radius:14px;padding:38px 12px 12px;background:#111318;max-width:94vw;max-height:92dvh;overflow:auto}.l2chat-image-view::backdrop{background:rgba(0,0,0,.8)}.l2chat-image-view img{display:block;max-width:86vw;max-height:78dvh;object-fit:contain}.l2chat-image-view button{position:absolute;right:8px;top:5px;background:transparent;color:#fff;border:0;font-size:28px;cursor:pointer}

/* Chat media must never displace the composer or introduce horizontal scrolling. */
#l2chat-panel .l2chat-head,#l2chat-panel .l2chat-foot{flex-shrink:0;min-width:0;max-width:100%;box-sizing:border-box}
#l2chat-panel .l2chat-messages{min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto}
#l2chat-panel .l2msg{flex:0 0 auto;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
#l2chat-panel .l2chat-input-row,#l2chat-panel .l2chat-textarea{min-width:0;max-width:100%;box-sizing:border-box}
#l2chat-panel .l2msg-image{display:block;width:fit-content;min-width:0;max-width:100%;overflow:hidden}
#l2chat-panel .l2msg-image img{display:block;max-width:100%;max-height:180px;object-fit:contain}
#l2chat-panel .l2chat-file-bar{max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}
#l2chat-panel #l2chat-file-preview{width:64px;height:64px;max-width:64px;max-height:64px;object-fit:contain;flex:0 0 64px}
#l2chat-panel .l2chat-file-name{flex:1;min-width:0}
