/* Distantec Apps home styles. Extracted from index.html for caching and CSP readiness. */
body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #0a0a0f;
      background-image:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(59,130,246,0.1) 0%, transparent 50%);
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      color: #e2e8f0;
      padding: 2rem;
    }

    .hero {
      text-align: center;
      margin-bottom: 4rem;
    }

    .logo {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: #818cf8;
      margin-bottom: 1.5rem;
      opacity: 0.9;
    }

    h1 {
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 800;
      background: linear-gradient(135deg, #e2e8f0 0%, #818cf8 50%, #c084fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .subtitle {
      font-size: 1.1rem;
      color: #94a3b8;
      max-width: 420px;
      margin: 0 auto;
      line-height: 1.7;
    }

    .apps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
      gap: 1.5rem;
      justify-content: center;
      width: 100%;
      max-width: 1040px;
    }

    @media (min-width: 900px) {
      .apps-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
      .app-card {
        grid-column: span 2;
      }
      .apps-grid .app-card:nth-child(4):nth-last-child(2) {
        grid-column: 2 / span 2;
      }
      .apps-grid .app-card:nth-child(5):last-child {
        grid-column: 4 / span 2;
      }
    }

    .app-card {
      display: flex;
      flex-direction: column;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 20px;
      padding: 2rem;
      text-decoration: none;
      color: inherit;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      position: relative;
      overflow: hidden;
    }

    .app-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 20px;
    }

    .app-card:hover {
      transform: translateY(-4px);
      border-color: rgba(99,102,241,0.35);
      box-shadow: 0 20px 60px rgba(99,102,241,0.15);
    }

    .app-card:hover::before { opacity: 1; }

    .app-icon {
      width: 52px;
      height: 52px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.2rem;
      box-shadow: 0 4px 20px rgba(99,102,241,0.3);
    }

    .app-icon .ui-icon {
      width: 27px;
      height: 27px;
      color: #fff;
      filter: drop-shadow(0 2px 7px rgba(0,0,0,0.22));
    }

    .app-name {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #e2e8f0;
    }

    .app-desc {
      font-size: 0.9rem;
      color: #94a3b8;
      line-height: 1.6;
      flex: 1;
    }

    .app-arrow {
      margin-top: 1.5rem;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: #818cf8;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .site-footer {
      margin-top: 5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.65rem;
      color: #94a3b8;
      font-size: 0.82rem;
      letter-spacing: 0.02em;
    }

    .footer-brand {
      color: #cbd5e1;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.74rem;
    }

    .footer-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    /* Visitor Counter */
    .counter-badge {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      padding: 0.4rem 0.8rem;
      border-radius: 10px;
      font-size: 0.75rem;
      color: #94a3b8;
      transition: all 0.3s;
    }

    .counter-badge:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(129, 140, 248, 0.2);
        color: #94a3b8;
    }

    .counter-dot {
      width: 6px;
      height: 6px;
      background: #10b981;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { opacity: 1; }
      50% { opacity: 0.4; }
      100% { opacity: 1; }
    }


/* Per-tool icon accents moved out of inline HTML for CSP readiness. */
.app-icon-timer { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.app-icon-passgen { background: linear-gradient(135deg, #10b981, #3b82f6); }
.app-icon-whois { background: linear-gradient(135deg, #f59e0b, #d97706); }
.app-icon-ssl { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.app-icon-dns { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.app-icon-http { background: linear-gradient(135deg, #22c55e, #6366f1); }
.footer-link { color: #a5b4fc; text-decoration: none; opacity: 0.86; transition: opacity 0.2s, color 0.2s; }
.footer-link:hover { opacity: 1; color: #c4b5fd; }
.app-card:focus-visible { outline: none; border-color: rgba(129,140,248,0.55); box-shadow: 0 0 0 3px rgba(129,140,248,0.18), 0 20px 60px rgba(99,102,241,0.15); }
@media (max-width: 640px) { .site-footer { margin-top: 3rem; } }
