* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: #f1f5f9;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #4ade80, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-weight: 500;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    resize: none;
    font-size: 15px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #22c55e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.chip {
    background: #334155;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.chip:hover {
    background: #475569;
}

.detect-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #22c55e;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
    transition: transform 0.2s, background 0.3s;
}

.detect-btn:hover {
    transform: translateY(-2px);
    background: #16a34a;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px dashed #334155;
}

.stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.stat-item {
    background: #1e293b;
    padding: 8px 15px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}

/* GitHub Section */
.github-connect {
    margin-top: 40px;
    text-align: center;
}

.github-connect p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.gh-link {
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: #1e293b;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #334155;
    transition: 0.3s;
}

.gh-link:hover {
    background: #334155;
}

/* Footer Section */
.main-footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #334155, transparent);
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    color: #94a3b8;
}

.dot { margin: 0 10px; }
