:root {
    --bg: #0d1117;
    --card-bg: #161b22;
    --border: #30363d;
    --accent: #2f81f7;
    --text-main: #f0f6fc;
    --text-dim: #8b949e;
    --max-width: 1280px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% -20%, #1e293b 0%, var(--bg) 80%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hero-header {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 20px 30px 30px 30px;
}
.hero-header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: 10px;
}
.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 80px 40px;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    flex: 1;
}
@media (min-width: 1024px) {
    .wrapper { grid-template-columns: 1fr 300px; }
}
.main-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.section-header .line {
    height: 1px;
    background: var(--border);
    flex-grow: 1;
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.nav-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
}
.nav-card:hover {
    border-color: var(--accent);
    background: #1c2128;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.nav-card .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.nav-card .content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-card .name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.nav-card .desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.side-bar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.panel-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}
.panel-box h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 12px;
}
.panel-box p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.feedback-cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    width: 100%;
    font-size: 1.25rem;
}
.feedback-cta strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}
.feedback-cta span {
    display: block;
    font-size: 1rem;
    opacity: 0.95;
}
.feedback-cta:hover {
    transform: translateY(-4px) scale(1.04);
    filter: brightness(1.15);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 28px;
    position: relative;
    color: var(--text-main);
}
.close {
    position: absolute;
    right: 20px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dim);
}
.close:hover { color: white; }

#feedback-form label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 500;
}
#feedback-form textarea,
#feedback-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 4px 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d1117;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}
#feedback-form textarea {
    min-height: 110px;
    resize: vertical;
}
#char-count {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: right;
}
.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 16px;
    transition: 0.2s;
}
.submit-btn:hover {
    background: #1e40af;
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 1rem;
}

footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #444;
    font-size: 0.85rem;
}
@media (max-width: 640px) {
    .hero-header { padding: 40px 25px 30px 25px; }
    .hero-header h1 { font-size: 1.8rem; }
    .wrapper { padding: 0 25px 40px 25px; }
    .nav-grid { 
        grid-template-columns: 1fr; 
        gap: 12px;
    }
    .nav-card {
        padding: 12px 14px;
        gap: 12px;
        min-height: 64px;
    }
    .nav-card .icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .nav-card .name {
        font-size: 0.9rem;
    }
    .nav-card .desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
    }
}
