:root {
      --bg: #0a0a0a;
      --surface: #121212;
      --surface-2: #1a1a1a;
      --text: #f3f4f6;
      --muted: #9ca3af;
      --brand: #6366f1;
      --brand-2: #06b6d4;
      --accent: #8b5cf6;
      --success: #10b981;
      --danger: #ef4444;
      --radius: 12px;
    }
    html { scroll-behavior: smooth; scroll-padding-top: 100px; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
    body { 
      margin: 0; 
      font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
      background-color: var(--bg); 
      color: var(--text); 
      line-height: 1.6;
      background-image:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.12), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.08), transparent 35%),
        radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.10), transparent 40%);
      background-attachment: fixed;
    }
    a { color: inherit; text-decoration: none; transition: color 0.2s; }
    .container { 
      max-width: 1100px; 
      margin: 0 auto; 
      padding: 0 20px; 
    }
    .flex { display: flex; }
    .center { align-items: center; justify-content: center; }
    .between { align-items: center; justify-content: space-between; }
    
    header { 
      background: rgba(10, 10, 10, 0.85); 
      border-bottom: 1px solid rgba(255,255,255,0.08); 
      position: sticky; 
      top: 0; 
      z-index: 1000; 
    }
    nav { 
      height: 80px; 
      display: flex; 
      align-items: center; 
      justify-content: space-between; 
    }
    .logo { 
      font-weight: 800; 
      font-size: 24px; 
      display: flex; 
      align-items: center; 
      gap: 12px; 
      color: #fff; 
      letter-spacing: -0.5px;
    }
    .logo svg { width: 35px; height: 35px; }
    
    .nav-links { 
      display: flex; 
      gap: 8px; 
      align-items: center; 
      height: 100%;
    }
    .nav-item { 
      padding: 8px 16px; 
      color: var(--muted); 
      font-size: 14px; 
      font-weight: 500; 
      transition: all 0.2s ease; 
      border-radius: 6px;
      position: relative;
    }
    .nav-item::after {
      content: '';
      position: absolute;
      bottom: 2px; left: 16px; right: 16px;
      height: 2px; border-radius: 2px;
      background: var(--brand);
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }
    .nav-item:hover { 
      color: var(--text); 
      background: rgba(255,255,255,0.05); 
    }
    .nav-item:hover::after { transform: scaleX(1); }
    
    .nav-auth { 
      display: flex; 
      align-items: center; 
      margin-left: 20px; 
    }
    .btn-nav-primary { 
      background: #4f46e5;
      color: white !important; 
      padding: 10px 20px; 
      border-radius: 8px; 
      font-weight: 600; 
      font-size: 14px; 
      transition: all 0.2s ease;
      box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }
    .btn-nav-primary:hover { 
      background: #4338ca; 
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    }
    .lang-select {
      background: transparent;
      color: inherit;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 6px;
      padding: 8px 10px;
      font-size: 14px;
      margin-left: 12px;
      cursor: pointer;
    }
    .lang-select option { background: var(--surface); color: var(--text); }

    .menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 6px;
      margin-left: 10px;
    }
    .menu-toggle span {
      display: block;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: 0.2s;
    }

    .btn {
      padding: 12px 24px; 
      border-radius: 8px; 
      font-weight: 600; 
      cursor: pointer; 
      border: none; 
      transition: all 0.2s; 
      display: inline-flex; 
      align-items: center; 
      justify-content: center; 
      gap: 8px; 
      font-size: 15px;
    }
    .btn-primary { background: #4f46e5; color: white; }
    .btn-primary:hover { background: #4338ca; }
    .btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
    .btn-secondary:hover { background: #252525; }

    .hero { padding: 100px 0; text-align: center; }
    .hero-title { 
      font-size: 48px; 
      margin: 0 0 20px; 
      line-height: 1.1; 
      font-weight: 800;
    }
    .gradient-text { 
      background: linear-gradient(90deg, var(--brand), var(--brand-2)); 
      -webkit-background-clip: text; 
      -webkit-text-fill-color: transparent; 
    }
    .hero-subtitle { 
      font-size: 20px; 
      color: var(--muted); 
      max-width: 800px; 
      margin: 0 auto 40px; 
    }
    .hero-actions { display: flex; justify-content: center; gap: 15px; }
    
    .mockup { 
      margin: 60px auto 0; 
      max-width: 800px; 
      background: rgba(18, 18, 18, 0.75); 
      border: 1px solid rgba(255,255,255,0.12); 
      border-radius: 16px; 
      padding: 20px; 
      box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.08) inset; 
      position: relative;
      overflow: hidden;
    }
    .mockup::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08), transparent 60%);
      pointer-events: none;
      z-index: 0;
    }
    .mockup > * { position: relative; z-index: 1; }
    .mock-row { 
      display: flex; 
      padding: 15px; 
      border-bottom: 1px solid rgba(255,255,255,0.05); 
      align-items: center; 
      gap: 15px; 
      font-size: 14px; 
    }
    .mock-status { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
    .mock-status.off { background: var(--danger); }
    .mock-name { font-weight: 600; flex: 1; }
    .mock-meta { color: var(--muted); font-size: 12px; }

    .section { padding: 80px 0; }
    .section-title { text-align: center; margin-bottom: 50px; }
    .section-title h2 { font-size: 36px; margin: 0 0 10px; }
    .section-title p { color: var(--muted); font-size: 18px; }
    
    .features-grid { 
      display: flex; 
      flex-wrap: wrap; 
      gap: 20px; 
      justify-content: center; 
    }
    .feature-card { 
      background: var(--surface); 
      border: 1px solid rgba(255,255,255,0.05); 
      border-radius: var(--radius); 
      padding: 30px; 
      width: 320px; 
      transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s ease; 
    }
    .feature-card:hover { 
      border-color: var(--brand); 
      transform: translateY(-6px);
      box-shadow: 0 18px 40px rgba(99, 102, 241, 0.18);
    }
    .feature-card h3 { margin: 0 0 10px; font-size: 20px; }
    .feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

    .pricing-grid { 
      display: flex; 
      flex-wrap: wrap; 
      gap: 20px; 
      justify-content: center; 
    }
    .price-card { 
      background: var(--surface); 
      border: 1px solid rgba(255,255,255,0.1); 
      border-radius: var(--radius); 
      padding: 40px 30px; 
      width: 300px; 
      text-align: center;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(99, 102, 241, 0.14); }
    .price-card.popular { border: 2px solid var(--brand); }
    .price-card h3 { font-size: 24px; margin: 0 0 10px; }
    .price { font-size: 36px; font-weight: 800; margin: 20px 0; }
    .price span { font-size: 16px; color: var(--muted); }
    .price-list { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; }
    .price-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--muted); font-size: 15px; }
    .price-list li::before { content: "✓ "; color: var(--success); font-weight: bold; }

    .faq-container { max-width: 800px; margin: 0 auto; }
    .faq-item { 
      background: var(--surface); 
      border: 1px solid rgba(255,255,255,0.05); 
      border-radius: 8px; 
      margin-bottom: 10px; 
      overflow: hidden; 
    }
    .faq-q { padding: 15px 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; }
    .faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--muted); }
    details.faq-item .faq-q { list-style: none; }
details.faq-item .faq-q::-webkit-details-marker { display: none; }
details.faq-item .faq-q span { display: inline-block; transition: transform 0.2s ease; }
details.faq-item[open] .faq-q span { transform: rotate(90deg); }
details.faq-item[open] .faq-a { padding: 0 20px 20px; max-height: 300px; }

    .modal { 
      position: fixed; inset: 0; background: rgba(0,0,0,0.8); 
      display: none; place-items: center; z-index: 1000; 
    }
    .modal.open { display: grid; }
    .modal-card { 
      background: var(--surface); 
      padding: 30px; 
      border-radius: 16px; 
      width: 100%; 
      max-width: 400px; 
      border: 1px solid rgba(255,255,255,0.1); 
    }
    .modal-card h3 { margin-top: 0; }
    .modal-card input { 
      width: 100%; padding: 12px; margin: 10px 0 20px; 
      background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1); 
      color: white; border-radius: 6px; 
    }
    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

    footer { 
      padding: 40px 0; 
      border-top: 1px solid rgba(255,255,255,0.1); 
      text-align: center; 
      color: var(--muted); 
      font-size: 14px; 
    }

    code {
      background: rgba(99,102,241,0.12);
      color: #c7d2fe;
      padding: 2px 6px;
      border-radius: 5px;
      font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
      font-size: 0.9em;
    }
    .tab-bar {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 24px;
    }
    .tab-btn {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
      color: var(--muted);
      padding: 10px 22px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s;
    }
    .tab-btn.active,
    .tab-btn:hover {
      background: rgba(99,102,241,0.2);
      border-color: rgba(99,102,241,0.4);
      color: #fff;
    }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    ol.steps {
      padding-left: 20px;
      margin: 0 0 20px 0;
      color: var(--text);
    }
    ol.steps li { margin-bottom: 10px; }
    .copy-block {
      position: relative;
      background: var(--surface-2);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 16px;
      overflow-x: auto;
    }
    .copy-block pre {
      margin: 0;
      color: #c7d2fe;
      font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
      font-size: 13px;
      line-height: 1.6;
    }
    .copy-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--muted);
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .copy-btn:hover { color: #fff; background: rgba(99,102,241,0.25); border-color: rgba(99,102,241,0.4); }
    .tab-hint {
      margin-top: 16px;
      color: var(--muted);
      font-size: 14px;
    }

    .screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
    .screenshot-card { text-align: center; }
    .screenshot-card h3 { margin: 18px 0 8px; font-size: 20px; }
    .screenshot-card p { margin: 0; color: var(--muted); font-size: 15px; }
    .screenshot-frame { background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 16px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .ui-window { display: flex; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: var(--surface-2); font-size: 12px; text-align: left; }
    .ui-sidebar { width: 26%; background: rgba(255,255,255,0.04); padding: 14px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255,255,255,0.08); }
    .ui-logo { font-weight: 800; color: #fff; margin-bottom: 12px; font-size: 13px; }
    .ui-nav { padding: 6px 10px; border-radius: 5px; color: var(--muted); }
    .ui-nav.active { background: rgba(99,102,241,0.25); color: #fff; }
    .ui-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
    .ui-header { font-weight: 700; color: var(--text); margin-bottom: 4px; }
    .ui-cards { display: flex; flex-direction: column; gap: 8px; }
    .ui-card { background: rgba(255,255,255,0.05); padding: 8px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
    .ui-card span { margin-left: auto; color: var(--muted); font-size: 11px; }
    .ui-dot { width: 8px; height: 8px; border-radius: 50%; }
    .ui-dot.green { background: var(--success); box-shadow: 0 0 8px var(--success); }
    .ui-dot.yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
    .ui-dot.red { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

    .ui-modal { background: var(--surface); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 18px; width: 85%; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
    .ui-modal h4 { margin: 0 0 14px; font-size: 16px; }
    .ui-field { margin-bottom: 12px; }
    .ui-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
    .ui-field input { width: 100%; padding: 7px 10px; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; color: var(--text); font-size: 13px; }
    .ui-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
    .ui-btn { padding: 6px 12px; border-radius: 5px; font-size: 12px; font-weight: 600; }
    .ui-btn.ghost { color: var(--muted); }
    .ui-btn.primary { background: var(--brand); color: #fff; }

    .ui-console { width: 100%; height: 100%; background: #0c0c0c; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; text-align: left; font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
    .ui-console-header { padding: 10px 12px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: var(--muted); }
    .ui-console-body { padding: 12px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
    .ui-console-body .line { color: #a5b4fc; }
    .ui-console-body .line.warn { color: #fbbf24; }
    .ui-console-body .line.input { color: #34d399; }
    .ui-console-body .prompt { color: var(--brand-2); margin-right: 6px; }

    .newsletter-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 24px; }
    .newsletter-form { display: flex; gap: 12px; }
    .newsletter-form input { flex: 1; padding: 14px 16px; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text); font-size: 15px; }
    .newsletter-form input:focus { outline: none; border-color: var(--brand); }
    .newsletter-form button { padding: 14px 24px; border: none; border-radius: 8px; cursor: pointer; white-space: nowrap; }
    .newsletter-hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
    .newsletter-result { margin-top: 14px; text-align: center; font-size: 14px; }
    .newsletter-result.success { color: var(--success); }
    .newsletter-result.error { color: var(--danger); }

    .contact-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
    .contact-hint { font-size: 14px; color: var(--muted); }

    .cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 24px; z-index: 9999; transform: translateY(100%); transition: transform 0.3s ease; }
    .cookie-banner.show { transform: translateY(0); }
    .cookie-banner-inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .cookie-banner-inner p { margin: 0; font-size: 14px; color: var(--text); }
    .cookie-banner-inner a { color: var(--primary); text-decoration: underline; }

    @media (max-width: 768px) {
      .hero-title { font-size: 32px; }
      .nav-links { display: none; }
      .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }
      .nav-links.open .nav-auth { margin-left: 0; margin-top: 12px; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
      .nav-auth { margin-left: auto; margin-top: 0; }
      .menu-toggle { display: flex; }
      .hero-actions { flex-direction: column; }
      .mock-row { flex-wrap: wrap; }
      .screenshots-grid { grid-template-columns: 1fr; }
      .newsletter-form { flex-direction: column; }
      .newsletter-form button { width: 100%; }
}

/* ── Background-tab performance: pause effects when landing page is hidden ── */
body.page-hidden * {
  transition: none !important;
  animation: none !important;
}
body.page-hidden .mockup {
  contain: layout style paint;
}