@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --recon: #00d1b2;        /* Teal */
  --access: #ff3860;       /* Red */
  --ad: #3273dc;           /* Blue */
  --privesc: #ffdd57;      /* Yellow */
  --creds: #da57e7;        /* Purple */
  --reveng: #ff8c00;       /* Orange */
  --bg: #0a0a0a;
  --fg: #f0f0f0;
  --border: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 66, 93, 0.1) 0%, transparent 50%), 
                    radial-gradient(circle at 75% 75%, rgba(50, 115, 220, 0.1) 0%, transparent 50%);
}

/* LOADER */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  padding: 40px;
  background: #111;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 66, 93, 0.5);
  border: 1px solid #333;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #ff3860;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-content h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #ff3860, #3273dc, #00d1b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.loader-content p {
  color: #ccc;
  font-size: 1.1rem;
}

/* APP */
.app {
  display: none;
}

/* Header */
.header {
  padding: 30px 40px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #ff3860;
  text-align: center;
}

.header h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--recon), var(--access), var(--ad), var(--privesc), var(--creds), var(--reveng));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Tools Container */
.tools-container {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Phase */
.phase {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.phase-header {
  padding: 24px 30px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.phase-header::before {
  content: "▶";
  margin-right: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.phase.open .phase-header::before {
  transform: rotate(90deg);
}

/* Color each phase */
.phase:nth-child(1) .phase-header { background: var(--recon); }
.phase:nth-child(2) .phase-header { background: var(--access); }
.phase:nth-child(3) .phase-header { background: var(--ad); }
.phase:nth-child(4) .phase-header { background: var(--privesc); color: #000; text-shadow: none; }
.phase:nth-child(5) .phase-header { background: var(--creds); }
.phase:nth-child(6) .phase-header { background: var(--reveng); }

.phase-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
  background: #141414;
}

.phase.open .phase-content {
  padding: 30px 30px 40px;
  max-height: 5000px;
}

/* Category */
.category {
  margin: 30px 0;
}

.category-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  font-size: 1.1rem;
  user-select: none;
  font-family: 'JetBrains Mono', monospace;
}

.category-header::before {
  content: "▶";
  margin-right: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.category.open .category-header::before {
  transform: rotate(90deg);
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 24px;
  margin-top: 14px;
}

/* Color category borders by phase */
.phase:nth-child(1) .category-content { border-left: 4px solid var(--recon); }
.phase:nth-child(2) .category-content { border-left: 4px solid var(--access); }
.phase:nth-child(3) .category-content { border-left: 4px solid var(--ad); }
.phase:nth-child(4) .category-content { border-left: 4px solid var(--privesc); }
.phase:nth-child(5) .category-content { border-left: 4px solid var(--creds); }
.phase:nth-child(6) .category-content { border-left: 4px solid var(--reveng); }

.category.open .category-content {
  max-height: 2000px;
  padding-top: 14px;
}

/* Tool */
.tool {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #333;
  position: relative;
  transition: background 0.2s ease;
}

.tool:last-child {
  border-bottom: none;
}

.tool:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.tool-info {
  flex: 1;
}

.tool-name {
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Color tool names by phase */
.phase:nth-child(1) .tool-name { color: var(--recon); }
.phase:nth-child(2) .tool-name { color: var(--access); }
.phase:nth-child(3) .tool-name { color: var(--ad); }
.phase:nth-child(4) .tool-name { color: var(--privesc); }
.phase:nth-child(5) .tool-name { color: var(--creds); }
.phase:nth-child(6) .tool-name { color: var(--reveng); }

.dup {
  color: #ff6b6b;
  font-weight: 700;
  margin-left: 12px;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.desc {
  color: #bbb;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.tool-actions {
  display: flex;
  gap: 14px;
  margin-left: 24px;
  flex-shrink: 0;
  align-self: center;
}

.btn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Color buttons by phase */
.phase:nth-child(1) .btn { border-color: var(--recon); color: var(--recon); }
.phase:nth-child(1) .btn:hover { background: var(--recon); color: #000; }

.phase:nth-child(2) .btn { border-color: var(--access); color: var(--access); }
.phase:nth-child(2) .btn:hover { background: var(--access); color: #fff; }

.phase:nth-child(3) .btn { border-color: var(--ad); color: var(--ad); }
.phase:nth-child(3) .btn:hover { background: var(--ad); color: #fff; }

.phase:nth-child(4) .btn { border-color: var(--privesc); color: var(--privesc); }
.phase:nth-child(4) .btn:hover { background: var(--privesc); color: #000; }

.phase:nth-child(5) .btn { border-color: var(--creds); color: var(--creds); }
.phase:nth-child(5) .btn:hover { background: var(--creds); color: #fff; }

.phase:nth-child(6) .btn { border-color: var(--reveng); color: var(--reveng); }
.phase:nth-child(6) .btn:hover { background: var(--reveng); color: #000; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-content {
  background: #1a1a1a;
  margin: auto;
  padding: 50px;
  border-radius: 20px;
  max-width: 900px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid #444;
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ff6b6b;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 2.2rem;
  margin: 0 0 30px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  background: linear-gradient(90deg, #ff3860, #3273dc, #00d1b2, #ffdd57, #da57e7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-desc {
  margin: 30px 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.modal-desc h3 {
  margin: 20px 0 10px;
}

.modal-desc ul {
  margin-left: 20px;
  line-height: 1.6;
}

.modal-desc pre {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  color: #ffcb6b;
  font-family: 'JetBrains Mono', monospace;
  margin: 10px 0;
  border-left: 4px solid #00d1b2;
}

.modal-desc code {
  background: #2a2a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1rem;
  border-top: 1px solid #333;
  margin-top: 60px;
  font-family: 'Manrope', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .tools-container {
    padding: 20px;
  }
  
  .phase-header {
    font-size: 1.1rem;
    padding: 20px;
  }
  
  .tool-actions {
    flex-direction: column;
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-bottom: 8px;
  }
  
  .modal-content {
    padding: 30px 20px;
    margin: 10px;
  }
}
