/* ===== Bpanel Website - Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .docs-sidebar {
    display: none;
  }

  .docs-layout {
    flex-direction: column;
  }

  .hero-title {
    font-size: 72px;
  }

  .section-header h2,
  .cta-section h2 {
    font-size: 34px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .container {
    padding: 0 16px;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero Mobile */
  .hero {
    padding: 130px 0 80px;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

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

  .hero-install {
    flex-direction: column;
    gap: 8px;
    text-align: left;
    width: 100%;
  }

  .hero-install code {
    font-size: 11px;
    word-break: break-all;
    white-space: normal;
  }

  /* Features Mobile */
  .features {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  /* Tech Mobile */
  .tech-section {
    padding: 80px 0;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tech-item {
    padding: 20px 12px;
  }

  .tech-name {
    font-size: 14px;
  }

  /* Preview Mobile */
  .preview-section {
    padding: 80px 0;
  }

  .preview-body {
    flex-direction: column;
  }

  .preview-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 140px;
    overflow-y: auto;
  }

  .preview-code {
    font-size: 11px;
    padding: 12px;
  }

  /* CTA Mobile */
  .cta-section {
    padding: 80px 0;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Docs Mobile */
  .docs-hero {
    padding: 110px 0 40px;
  }

  .docs-hero h1 {
    font-size: 32px;
  }

  .doc-section h2 {
    font-size: 22px;
  }

  .code-block pre {
    font-size: 12px;
    padding: 12px;
  }

  .doc-table {
    display: block;
    overflow-x: auto;
  }

  /* Install Mobile */
  .install-step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step-content h2 {
    font-size: 20px;
  }

  .step-reqs {
    grid-template-columns: 1fr;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 38px;
  }

  .section-header h2,
  .cta-section h2 {
    font-size: 24px;
  }

  .feature-card {
    padding: 20px;
  }
}