/* ================================================
   BUTTONS
================================================ */

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      font-family: var(--font-primary);
      font-weight: 600;
      border: none;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      position: relative;
      overflow: hidden;
      transition:
        transform var(--duration-fast) var(--ease-bounce),
        box-shadow var(--duration-base) var(--ease-in-out),
        background var(--duration-base) var(--ease-in-out),
        color var(--duration-base) var(--ease-in-out);
    }
    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0);
      transition: background var(--duration-fast) var(--ease-in-out);
    }
    .btn:hover::after { background: rgba(255, 255, 255, 0.06); }
    .btn:hover { transform: translateY(-2px); }
    .btn:active { transform: translateY(0); }

    /* Size: Small */
    .btn-sm { height: 38px; padding: 0 1.125rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
    /* Size: Medium (default) */
    .btn-md { height: 48px; padding: 0 1.5rem; font-size: 0.9375rem; border-radius: var(--radius-md); }
    /* Size: Large */
    .btn-lg { height: 58px; padding: 0 2rem; font-size: 1rem; border-radius: var(--radius-md); }
    /* Size: XL */
    .btn-xl { height: 68px; padding: 0 2.5rem; font-size: 1.0625rem; border-radius: var(--radius-lg); }

    /* Variant: Primary */
    .btn-primary {
      background: var(--gradient-primary);
      color: #fff;
      box-shadow: var(--shadow-glow-sm), var(--shadow-md);
    }
    .btn-primary:hover {
      box-shadow: var(--shadow-glow-md), var(--shadow-lg);
    }
    /* Shine sweep on primary */
    .btn-primary::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
      background-size: 300% 100%;
      background-position: 150% center;
      transition: background-position 500ms var(--ease-smooth);
    }
    .btn-primary:hover::before { background-position: -50% center; }

    /* Variant: Secondary */
    .btn-secondary {
      background: transparent;
      color: var(--color-blue-primary);
      border: 1.5px solid var(--color-blue-primary);
      box-shadow: 0 0 0 rgba(15,112,183,0);
    }
    .btn-secondary:hover {
      background: var(--primary-10);
      box-shadow: var(--shadow-glow-sm);
    }

    /* Variant: Ghost */
    .btn-ghost {
      background: transparent;
      color: var(--text-secondary);
      border: 1.5px solid var(--border-soft);
    }
    .btn-ghost:hover {
      background: rgba(255,255,255,0.05);
      color: var(--text-primary);
      border-color: rgba(255,255,255,0.15);
    }

    /* Variant: Glass */
    .btn-glass {
      background: var(--gradient-glass);
      color: var(--text-primary);
      border: 1px solid rgba(255,255,255,0.12);
      backdrop-filter: blur(12px);
    }
    .btn-glass:hover {
      background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    }

    /* Variant: Danger */
    .btn-danger {
      background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
      color: #fff;
      box-shadow: 0 0 20px rgba(231, 76, 60, 0.35), var(--shadow-md);
    }

    /* State: Disabled */
    .btn:disabled, .btn[aria-disabled="true"] {
      opacity: 0.38;
      pointer-events: none;
      transform: none !important;
    }

    /* Icon Button */
    .btn-icon {
      width: 48px;
      height: 48px;
      padding: 0;
      border-radius: var(--radius-md);
      flex-shrink: 0;
    }
    .btn-icon-sm { width: 36px; height: 36px; border-radius: var(--radius-sm); }
    .btn-icon-lg { width: 58px; height: 58px; border-radius: var(--radius-lg); }

    
/* ================================================
   GLASS PANEL (premium-panel equivalent)
================================================ */

    .glass-panel {
      background: linear-gradient(135deg, rgba(13,19,34,0.9) 0%, rgba(10,14,26,0.95) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .glass-panel-sm {
      border-radius: var(--radius-lg);
    }

    
/* ================================================
   CARDS
================================================ */

    .card {
      background: var(--gradient-card);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-xl);
      overflow: hidden;
      transition: border-color var(--duration-base) var(--ease-in-out),
                  box-shadow var(--duration-base) var(--ease-in-out),
                  transform var(--duration-base) var(--ease-bounce);
    }
    .card:hover {
      border-color: var(--primary-40);
      box-shadow: var(--shadow-glow-sm), var(--shadow-lg);
      transform: translateY(-4px);
    }
    .card-body { padding: 2rem; }

    /* Card: Feature */
    .card-feature {
      background: var(--gradient-card);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-xl);
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: all var(--duration-base) var(--ease-smooth);
    }
    .card-feature::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--color-blue-primary), transparent);
      opacity: 0;
      transition: opacity var(--duration-base) var(--ease-in-out);
    }
    .card-feature:hover::before { opacity: 1; }
    .card-feature:hover {
      border-color: var(--primary-20);
      box-shadow: var(--shadow-glow-sm), var(--shadow-md);
      transform: translateY(-3px);
    }
    .card-icon {
      width: 52px; height: 52px;
      background: var(--primary-10);
      border: 1px solid var(--primary-20);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-blue-primary);
      margin-bottom: 1.25rem;
      transition: all var(--duration-base) var(--ease-in-out);
    }
    .card-feature:hover .card-icon {
      background: var(--primary-20);
      box-shadow: var(--shadow-glow-sm);
    }
    .card-feature h3 {
      font-size: var(--text-h6);
      font-weight: 700;
      margin-bottom: 0.625rem;
      color: var(--text-primary);
    }
    .card-feature p {
      font-size: var(--text-body-sm);
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* Card: Stat */
    .card-stat {
      background: var(--gradient-card);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-xl);
      padding: 2rem;
      text-align: center;
      transition: all var(--duration-base) var(--ease-smooth);
    }
    .card-stat:hover {
      border-color: var(--primary-40);
      box-shadow: var(--shadow-glow-sm);
    }
    .card-stat-value {
      font-size: clamp(2.5rem, 4vw, 3.5rem);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.5rem;
    }
    .card-stat-label {
      font-size: var(--text-body-sm);
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    
/* ================================================
   INPUTS
================================================ */

    .input-group { display: flex; flex-direction: column; gap: 0.375rem; }
    .input-label {
      font-size: var(--text-label);
      font-weight: 600;
      color: var(--text-secondary);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .input {
      height: 50px;
      padding: 0 1rem;
      background: rgba(255,255,255,0.04);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-family: var(--font-primary);
      font-size: var(--text-body-sm);
      outline: none;
      transition: border-color var(--duration-fast) var(--ease-in-out),
                  background var(--duration-fast) var(--ease-in-out),
                  box-shadow var(--duration-fast) var(--ease-in-out);
      width: 100%;
    }
    .input::placeholder { color: var(--text-muted); }
    .input:focus {
      border-color: var(--color-blue-primary);
      background: rgba(15,112,183,0.06);
      box-shadow: 0 0 0 3px rgba(15,112,183,0.12);
    }
    .input:hover:not(:focus) { border-color: rgba(255,255,255,0.15); }
    .input.input-error { border-color: #e74c3c; }
    .input.input-error:focus { box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
    .input-helper {
      font-size: var(--text-label);
      color: var(--text-muted);
    }
    .input-helper.error { color: #e74c3c; }

    .textarea {
      min-height: 120px;
      padding: 0.875rem 1rem;
      resize: vertical;
    }

    .select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23878786' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      padding-right: 2.5rem;
      cursor: pointer;
    }

    /* Input with Icon */
    .input-wrapper {
      position: relative;
    }
    .input-wrapper .input { padding-left: 2.75rem; }
    .input-icon {
      position: absolute;
      left: 0.875rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
      width: 18px;
      height: 18px;
    }

    
/* ================================================
   BADGES
================================================ */

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 0.25rem 0.75rem;
      border-radius: var(--radius-full);
      white-space: nowrap;
    }
    .badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .badge-primary {
      background: var(--primary-10);
      color: var(--color-blue-primary);
      border: 1px solid var(--primary-20);
    }
    .badge-success {
      background: rgba(39,174,96,0.1);
      color: #2ecc71;
      border: 1px solid rgba(39,174,96,0.2);
    }
    .badge-warning {
      background: rgba(241,196,15,0.1);
      color: #f1c40f;
      border: 1px solid rgba(241,196,15,0.2);
    }
    .badge-danger {
      background: rgba(231,76,60,0.1);
      color: #e74c3c;
      border: 1px solid rgba(231,76,60,0.2);
    }
    .badge-neutral {
      background: rgba(135,135,134,0.12);
      color: var(--color-gray-light);
      border: 1px solid rgba(135,135,134,0.2);
    }
    .badge-outline {
      background: transparent;
      color: var(--color-blue-pale);
      border: 1.5px solid var(--color-blue-pale);
    }

    
/* ================================================
   TOOLTIP
================================================ */

    .tooltip-container { position: relative; display: inline-flex; }
    .tooltip {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: rgba(13,19,34,0.98);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 0.5rem 0.875rem;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity var(--duration-fast) var(--ease-in-out),
                  transform var(--duration-fast) var(--ease-in-out);
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow-md), var(--shadow-glow-sm);
      z-index: 50;
    }
    .tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--border);
    }
    .tooltip-container:hover .tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    
/* ================================================
   MODAL
================================================ */

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(6px);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--duration-base) var(--ease-in-out);
    }
    .modal-overlay.open {
      opacity: 1;
      pointer-events: all;
    }
    .modal {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-glow-md), var(--shadow-lg);
      width: 100%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
      transform: scale(0.94) translateY(20px);
      transition: transform var(--duration-base) var(--ease-bounce);
    }
    .modal-overlay.open .modal {
      transform: scale(1) translateY(0);
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem 2rem;
      border-bottom: 1px solid var(--border-soft);
    }
    .modal-title {
      font-size: 1.125rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .modal-body { padding: 2rem; }
    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
      padding: 1.25rem 2rem;
      border-top: 1px solid var(--border-soft);
    }

    
/* ================================================
   TYPOGRAPHY SHOWCASE STYLES
================================================ */

    .type-sample { margin-bottom: 2.5rem; }
    .type-meta {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      font-family: var(--font-mono);
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
      margin-top: 0.625rem;
      padding-top: 0.625rem;
      border-top: 1px solid var(--border-soft);
    }
    .type-meta span { color: var(--color-blue-primary); }

    
/* ================================================
   COLOR SWATCH
================================================ */

    .color-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 1rem;
    }
    .color-swatch {
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border-soft);
      transition: transform var(--duration-base) var(--ease-bounce);
    }
    .color-swatch:hover { transform: translateY(-3px); }
    .swatch-preview {
      height: 90px;
      position: relative;
    }
    .swatch-preview.animated::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
      animation: shimmer 2s infinite;
    }
    @keyframes shimmer {
      0%, 100% { opacity: 0; }
      50% { opacity: 1; }
    }
    .swatch-info {
      background: var(--surface-2);
      padding: 0.875rem;
    }
    .swatch-name { font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
    .swatch-values { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); line-height: 1.6; }

    
/* ================================================
   ICON GRID
================================================ */

    .icon-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 0.75rem;
    }
    .icon-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding: 1.125rem 0.5rem;
      background: var(--surface-2);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: all var(--duration-base) var(--ease-bounce);
      text-align: center;
    }
    .icon-item:hover {
      border-color: var(--primary-40);
      background: var(--primary-10);
      transform: translateY(-2px);
      box-shadow: var(--shadow-glow-sm);
      color: var(--color-blue-primary);
    }
    .icon-item svg { width: 22px; height: 22px; transition: transform var(--duration-base) var(--ease-bounce); }
    .icon-item:hover svg { transform: scale(1.15); }
    .icon-item span { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }

    
/* ================================================
   DS SECTION HEADERS
================================================ */

    .ds-section-header {
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      margin-bottom: 3rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border-soft);
    }
    .ds-section-number {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--color-blue-primary);
      background: var(--primary-10);
      border: 1px solid var(--primary-20);
      border-radius: var(--radius-sm);
      padding: 0.375rem 0.625rem;
      letter-spacing: 0.08em;
      flex-shrink: 0;
      margin-top: 0.5rem;
    }
    .ds-section-title {
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text-primary);
    }
    .ds-section-desc {
      font-size: var(--text-body);
      color: var(--text-muted);
      margin-top: 0.5rem;
      line-height: 1.65;
    }

    
/* ================================================
   COMPONENT TOKEN TABLE
================================================ */

    .token-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8125rem;
    }
    .token-table th {
      text-align: left;
      padding: 0.75rem 1rem;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-soft);
    }
    .token-table td {
      padding: 0.875rem 1rem;
      border-bottom: 1px solid var(--border-soft);
      color: var(--text-secondary);
      vertical-align: top;
    }
    .token-table td:first-child {
      font-family: var(--font-mono);
      color: var(--color-blue-primary);
      font-size: 0.8rem;
    }
    .token-table tr:last-child td { border-bottom: none; }
    .token-table tr:hover td { background: rgba(255,255,255,0.02); }

    
/* ================================================
   MISC HELPERS
================================================ */

    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    @media (max-width: 900px) {
      .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
      .nav-links { display: none; }
    }

    .divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 2.5rem 0;
    }

    .tag {
      display: inline-block;
      background: var(--primary-10);
      border: 1px solid var(--primary-20);
      border-radius: var(--radius-sm);
      padding: 0.2rem 0.5rem;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--color-blue-primary);
    }

    /* Glow line above sections */
    .glow-line {
      height: 1px;
      width: 100%;
      background: linear-gradient(90deg, transparent, var(--color-blue-primary), transparent);
      opacity: 0.5;
      margin-bottom: 0;
    }

    /* component spec box */
    .spec-box {
      background: var(--surface-2);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-lg);
      padding: 1.5rem 2rem;
    }
    .spec-title {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
  

    /* Custom Additions for the Hero */
    /* Curved Flying Elements */
    .curve-anim {
      stroke-linecap: round;
      animation: flyCurve linear infinite;
    }
    /* Total cycle = dash + gap. We animate from total cycle to 0 for a seamless loop */
    .curve-1 { stroke-dasharray: 2 120; animation-duration: 18s; animation-name: flyCurve122; }
    .curve-2 { stroke-dasharray: 1 140; animation-duration: 22s; animation-delay: -5s; animation-name: flyCurve141; }
    .curve-3 { stroke-dasharray: 1.5 150; animation-duration: 25s; animation-delay: -12s; animation-name: flyCurve151; }
    .curve-4 { stroke-dasharray: 2.5 130; animation-duration: 20s; animation-delay: -3s; animation-name: flyCurve132; }
    .curve-5 { stroke-dasharray: 1 160; animation-duration: 28s; animation-delay: -15s; animation-name: flyCurve161; }
    .curve-6 { stroke-dasharray: 2 110; animation-duration: 16s; animation-delay: -8s; animation-name: flyCurve112; }

    @keyframes flyCurve122 { from { stroke-dashoffset: 122; } to { stroke-dashoffset: 0; } }
    @keyframes flyCurve141 { from { stroke-dashoffset: 141; } to { stroke-dashoffset: 0; } }
    @keyframes flyCurve151 { from { stroke-dashoffset: 151.5; } to { stroke-dashoffset: 0; } }
    @keyframes flyCurve132 { from { stroke-dashoffset: 132.5; } to { stroke-dashoffset: 0; } }
    @keyframes flyCurve161 { from { stroke-dashoffset: 161; } to { stroke-dashoffset: 0; } }
    @keyframes flyCurve112 { from { stroke-dashoffset: 112; } to { stroke-dashoffset: 0; } }

    .hero-anim {
      opacity: 0;
      animation: heroFadeIn 0.5s var(--ease-smooth) forwards;
    }
    .hero-anim-1 { animation-delay: 0.05s; }
    .hero-anim-2 { animation-delay: 0.1s; }
    .hero-anim-3 { animation-delay: 0.15s; }
    .hero-anim-4 { animation-delay: 0.2s; }
    .hero-anim-5 { animation-delay: 0.25s; }
    
    @keyframes heroFadeIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    
    @media (max-width: 1024px) {
      .hero-split {
        grid-template-columns: 1fr;
        text-align: left;
      }
    }

    /* Left Side Adjustments (Reference Style) */
    .hero-metrics-ref {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-soft);
    }
    .metric-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      white-space: nowrap;
    }
    .metric-icon {
      color: var(--text-muted);
      margin-top: 2px;
    }
    .metric-content {
      display: flex;
      flex-direction: column;
    }
    .metric-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      font-weight: 500;
      margin-bottom: 0.125rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .metric-value {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1.2;
    }

    /* Right Side: Locker Matrix Interactive Concept */
    .locker-grid-wrapper {
      position: relative;
      width: 100%;
      height: 600px;
      display: flex;
      align-items: center;
      justify-content: center;
      perspective: 1200px;
    }
    .locker-matrix {
      display: grid;
      grid-template-columns: repeat(3, 130px);
      grid-template-rows: repeat(4, 130px);
      gap: 16px;
      transform: rotateY(-20deg) rotateX(10deg);
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      z-index: 10;
    }
    .locker-grid-wrapper:hover .locker-matrix {
      transform: rotateY(-10deg) rotateX(5deg);
    }
    .locker-compartment {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      position: relative;
      transform-style: preserve-3d;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 20px 20px 40px rgba(0,0,0,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.5s ease;
    }
    .locker-compartment::before {
      /* Front Door */
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      transform-origin: left center;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      backdrop-filter: blur(8px);
      z-index: 2;
    }
    /* Door Handle */
    .locker-compartment::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 12px;
      width: 4px;
      height: 16px;
      background: var(--border-soft);
      border-radius: 2px;
      transform: translateY(-50%);
      z-index: 3;
      transition: opacity 0.3s;
    }
    
    /* Status LED */
    .status-led {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--text-muted);
      z-index: 3;
      transition: all 0.3s ease;
    }

    .status-available .status-led { background: var(--color-blue-primary); box-shadow: 0 0 10px var(--color-blue-primary); }
    .status-delivered .status-led { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
    .status-in-use .status-led { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

    /* Open State */
    .locker-compartment.is-open::before {
      transform: rotateY(-105deg);
      background: rgba(255,255,255,0.02);
      border-color: rgba(255,255,255,0.05);
    }
    .locker-compartment.is-open::after {
      opacity: 0;
    }
    
    .package-inside {
      opacity: 0;
      visibility: hidden;
      transform: scale(0.5) translateZ(-40px);
      transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .locker-compartment.status-in-use.is-open .package-inside {
      opacity: 1;
      visibility: visible;
      transform: scale(1) translateZ(0);
      color: #e74c3c;
    }
    .locker-compartment.status-delivered.is-open .package-inside {
      opacity: 1;
      visibility: visible;
      transform: scale(1) translateZ(0);
      color: #2ecc71;
    }

    /* Central Screen */
    .locker-screen {
      grid-column: 2;
      grid-row: 2 / span 2;
      background: var(--surface-3);
      border: 1px solid var(--primary-40);
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 30px rgba(15,112,183,0.2), inset 0 0 20px rgba(0,0,0,0.8);
      z-index: 5;
    }
    .locker-screen::after {
      content: '';
      position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: conic-gradient(from 0deg, transparent 0%, rgba(15,112,183,0.3) 30%, transparent 60%);
      animation: spin-slow 4s linear infinite;
      z-index: 0;
    }
    .screen-ui {
      position: relative;
      z-index: 1;
      background: rgba(10, 14, 26, 0.95);
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      border-radius: calc(var(--radius-md) - 2px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      padding: 1rem;
      text-align: center;
    }
    .screen-qr {
      width: 48px;
      height: 48px;
      border: 2px dashed var(--primary-60);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-blue-primary);
      animation: pulse-glow 3s infinite;
    }
    .screen-qr i {
      width: 24px;
      height: 24px;
    }
    .screen-text-1 {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-primary);
      letter-spacing: 0.05em;
    }
    .screen-divider {
      width: 30px;
      height: 2px;
      background: var(--primary-40);
      margin: 4px 0;
    }
    .screen-text-2 {
      font-size: 0.65rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    /* Connecting logic lines in background */
    .logic-lines {
      position: absolute;
      inset: -100px;
      background-image: 
        linear-gradient(rgba(15,112,183,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,112,183,0.1) 1px, transparent 1px);
      background-size: 40px 40px;
      transform: rotateY(-20deg) rotateX(10deg) translateZ(-100px);
      opacity: 0.5;
      mask-image: radial-gradient(circle at center, black 20%, transparent 60%);
    }

    /* ==========================================
       MOBILE RESPONSIVE AJUSTES HERO
       ========================================== */
    @media (max-width: 768px) {
      /* Fix Buttons wrapping */
      .hero-cta {
        flex-direction: column !important;
        width: 100%;
      }
      .hero-cta .btn {
        width: 100%;
        justify-content: center;
      }
      
      /* Fix text cut-off */
      .hero-title {
        font-size: 2.25rem !important;
        word-break: break-word;
        hyphens: auto;
      }

      /* Make features fit (lado a lado no mobile) */
      .hero-metrics-ref {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.25rem !important;
        padding-top: 1rem;
      }
      .hero-metrics-ref > div[style*="width: 1px"] {
        display: block !important;
        height: 24px !important;
        background: rgba(255, 255, 255, 0.1) !important;
      }
      .metric-item {
        white-space: normal !important;
        background: transparent;
        padding: 0;
        border: none;
        flex: 1;
        text-align: left;
        gap: 0.35rem !important;
        align-items: center;
      }
      .metric-icon {
        margin-top: 0 !important;
      }
      .metric-icon svg, .metric-icon i {
        width: 18px !important;
        height: 18px !important;
      }
      .metric-content {
        flex-direction: column-reverse !important;
        justify-content: center;
      }
      .metric-value {
        font-size: 0.75rem !important;
        line-height: 1.1;
        margin-top: 2px;
        white-space: nowrap !important;
      }
      .metric-label {
        font-size: 0.45rem !important;
        line-height: 1.1;
        margin-bottom: 0 !important;
        text-align: left;
      }

      /* Make illustration smaller */
      .locker-grid-wrapper {
        height: 380px !important;
        overflow: hidden;
      }
      .locker-matrix {
        grid-template-columns: repeat(3, 90px) !important;
        grid-template-rows: repeat(4, 90px) !important;
        gap: 10px !important;
        transform: scale(0.85) rotateY(-20deg) rotateX(10deg) !important;
      }
      .locker-grid-wrapper:hover .locker-matrix {
        transform: scale(0.85) rotateY(-10deg) rotateX(5deg) !important;
      }
      .screen-qr {
        width: 36px !important;
        height: 36px !important;
      }
      .screen-text-1 { font-size: 0.65rem !important; }
      .screen-text-2 { font-size: 0.55rem !important; }
    } /* Fim do media query principal de 768px */

/* ==========================================
   MOBILE CAROUSEL (GLOBAL CARDS)
   Regras globais (Desktop + Mobile)
========================================== */
.mobile-carousel-wrapper {
  min-width: 0;
  width: 100%;
}
.carousel-dots {
  display: none;
}

/* Regras exclusivas para celular (transformar em slider) */
@media (max-width: 768px) {
  .mobile-carousel-wrapper {
    position: relative;
    width: auto;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-bottom: 2rem; /* espaço para os dots */
    margin-bottom: 1.5rem; /* afasta o elemento de baixo */
  }
  .mobile-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1.5rem;
    gap: 1rem !important;
    padding: 0 1.5rem 1rem 1.5rem !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    grid-template-columns: none !important;
  }
  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-carousel > * {
    flex: 0 0 85% !important; 
    max-width: 85% !important;
    scroll-snap-align: center;
    /* Ensure elements don't get squished */
    min-width: 0; 
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .carousel-dot.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.3);
  }
}
