/* ==========================================
   HackTheWeb CSS Design System
   Sleek Dark Cyberpunk Theme
   ========================================== */

:root {
    --bg-main: #0a0b10;
    --bg-card: #12131a;
    --bg-card-hover: #171922;
    --primary: #00ff66;
    --primary-glow: rgba(0, 255, 102, 0.15);
    --secondary: #00e5ff;
    --secondary-glow: rgba(0, 229, 255, 0.15);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 255, 102, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --critical: #dc3545;
    --high: #fd7e14;
    --medium: #ffc107;
    --info: #17a2b8;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.dim {
    color: var(--text-muted);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #00d455 100%);
    color: #020306;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 102, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.btn-nav:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px 0;
    background: radial-gradient(circle at 80% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(0, 255, 102, 0.04) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

.badge-container {
    margin-bottom: 20px;
}

.badge {
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-shield {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-ring {
    position: absolute;
    border: 2px dashed rgba(0, 255, 102, 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotateCW 20s linear infinite;
    border-color: rgba(0, 229, 255, 0.2);
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation: rotateCCW 15s linear infinite;
    border-color: rgba(0, 255, 102, 0.15);
}

.ring-3 {
    width: 60%;
    height: 60%;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.05);
}

.shield-icon {
    font-size: 4.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 16px var(--primary-glow));
    z-index: 10;
}

.animate-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

/* Metrics Section */
.metrics {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.metric-card {
    text-align: center;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.04);
}

.feat-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.35rem;
    border: 1px solid var(--border);
}

.feature-card:hover .feat-icon-container {
    background: var(--primary-glow);
    border-color: rgba(0, 255, 102, 0.3);
}

.icon-xss { color: #ff007f; }
.icon-sqli { color: #00ffcc; }
.icon-csrf { color: #ffcc00; }
.icon-ssrf { color: #cc00ff; }
.icon-lfi { color: #33ff33; }
.icon-rce { color: #ff3333; }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feature card glow effect specifically for high impact elements like RCE */
.feature-card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 51, 81, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Demo Terminal Section */
.demo-section {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 102, 0.02) 0%, transparent 60%);
}

.terminal-container {
    background: #07080c;
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.terminal-header {
    background: #0f111a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-terminal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-terminal.close { background: #ff5f56; }
.btn-terminal.minimize { background: #ffbd2e; }
.btn-terminal.maximize { background: #27c93f; }

.terminal-title {
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-right: 36px; /* offset the buttons */
}

.terminal-body {
    padding: 24px;
    min-height: 380px;
    max-height: 480px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a5b4fc;
}

.terminal-ascii {
    color: var(--primary);
    font-size: 0.62rem;
    line-height: 1.2;
    margin-bottom: 16px;
    white-space: pre;
}

.terminal-output {
    margin-bottom: 20px;
}

.log-line {
    margin-bottom: 8px;
    word-break: break-all;
    line-height: 1.4;
}

.log-json {
    color: #34d399;
}

.log-text {
    color: #e0e7ff;
}

.log-warning {
    color: #fbbf24;
}

.log-error {
    color: #f87171;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.terminal-prompt {
    color: var(--secondary);
    white-space: nowrap;
}

#target-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: var(--font-mono);
    flex-grow: 1;
    outline: none;
    font-size: 0.85rem;
}

#target-input:focus {
    border-color: var(--primary);
}

.btn-terminal-run {
    background: var(--primary);
    color: #000;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-terminal-run:hover {
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
}

.report-view-container {
    max-width: 800px;
    margin: 30px auto 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.report-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 255, 102, 0.02);
}

.report-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.report-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-stat-card .count {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.report-stat-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.report-stat-card.critical { border-color: rgba(220, 53, 69, 0.2); }
.report-stat-card.critical .count { color: var(--critical); }
.report-stat-card.high { border-color: rgba(253, 126, 20, 0.2); }
.report-stat-card.high .count { color: var(--high); }
.report-stat-card.medium { border-color: rgba(255, 193, 7, 0.2); }
.report-stat-card.medium .count { color: var(--medium); }
.report-stat-card.info { border-color: rgba(23, 162, 184, 0.2); }
.report-stat-card.info .count { color: var(--info); }

.report-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Installation */
.installation {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.005);
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 70px;
}

.step-num {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 32px;
    height: 32px;
    background: var(--primary-glow);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.code-box {
    background: #07080c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e0e7ff;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-copy:hover {
    color: var(--primary);
}

/* Donate Section */
.donate-section {
    padding: 80px 0;
}

.donate-card {
    background: linear-gradient(135deg, #0e1017 0%, #151824 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.donate-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.donate-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.donate-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.support-note {
    font-size: 0.85rem !important;
    margin-top: 16px !important;
    color: #6b7280 !important;
}

/* Footer */
.footer {
    background: #050609;
    border-top: 1px solid var(--border);
    padding: 60px 0 20px 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links-col h4,
.footer-social-col h4 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links-col p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-links-col a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.social-icons a:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #4b5563;
}

/* Animations */
@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px var(--primary-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 24px rgba(0, 255, 102, 0.35)); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media(max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media(max-width: 640px) {
    .nav-links {
        display: none; /* simple hidden navigation for mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-ascii {
        font-size: 0.45rem;
    }
}
