/**
 * CyberSec Shield v2.0 — Responsive Styles
 * Mobile-first media queries with defined breakpoints.
 *
 * Breakpoints:
 *   - sm:  max-width 480px  (small mobile)
 *   - md:  max-width 768px  (tablet / large mobile)
 *   - lg:  max-width 1024px (small desktop)
 *
 * @author Sebastián Vargas Yañez — TTPSEC SpA
 * @version 2.0.0
 */

/* ===== TABLET & LARGE MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Grid */
  .sections-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* CTA */
  .cta__button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.85rem;
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .cta__button--compact {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.8rem;
  }

  /* Stats */
  .stats {
    gap: 1.2rem;
  }

  /* Navigation */
  .nav__tabs {
    display: none;
  }

  .nav {
    height: 56px;
  }

  .embedded__frame {
    height: calc(100vh - 56px);
  }

  /* Hero */
  .hero {
    padding: var(--spacing-lg);
  }

  .hero__shield {
    width: 160px;
    height: 192px;
  }

  .hero__ring {
    width: 300px;
    height: 300px;
  }

  .hero__ring--secondary {
    width: 380px;
    height: 380px;
  }

  .hero__orbital {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
  }

  /* Terminal */
  .terminal {
    max-width: 100%;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* CTA */
  .cta__button {
    padding: 0.9rem var(--spacing-lg);
    font-size: 0.75rem;
  }

  .cta__button--compact {
    padding: 0.7rem var(--spacing-md);
    font-size: 0.7rem;
  }

  .cta__icon {
    font-size: 1.4rem;
  }

  /* Hero */
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__shield {
    width: 130px;
    height: 156px;
  }

  .hero__description {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
  }

  /* Card */
  .card__header {
    padding: var(--spacing-lg) 1.2rem var(--spacing-md);
  }

  .card__features {
    padding: 0 1.2rem var(--spacing-md);
  }

  .card__action {
    padding: var(--spacing-md) 1.2rem var(--spacing-lg);
  }

  /* Stats */
  .stats {
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }

  .stats__number {
    font-size: 1.4rem;
  }

  /* Sections area */
  .sections {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-2xl);
  }

  /* HUD corners — smaller on mobile */
  .hud-corner {
    width: 40px;
    height: 40px;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bg-layer--matrix {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .bg-layer,
  .hud-corner,
  .nav,
  .embedded,
  .cta__glow,
  .cta__particles,
  .hero__ring,
  .hero__orbital,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .text--gradient {
    -webkit-text-fill-color: #111;
    background: none;
  }
}
