/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY ================= */
body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(139,92,246,0.15), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(236,72,153,0.12), transparent 40%),
        linear-gradient(135deg, #0B0F1A, #05070D);
    color: #ffffff;
    overflow-x: hidden;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
}

.subtitle {
    color: #A0A3BD;
    margin-top: 10px;
}

.desc {
    max-width: 600px;
    margin: 15px auto;
    color: #A0A3BD;
    font-size: 14px;
}

/* animated glow */
.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 60%);
    top: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes float {
    0% { transform: translate(0,0); }
    100% { transform: translate(80px, 60px); }
}

/* ================= DASHBOARD ================= */
.dashboard {
    display: flex;
    gap: 32px;
    padding: 40px 60px;
}

/* ================= GLASS ================= */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition: all 0.3s ease;
}

.glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.75);
}

/* ================= LEFT PANEL ================= */
.panel {
    width: 320px;
    padding: 28px;
}

/* ================= INPUT ================= */
.field {
    margin-bottom: 20px;
}

label {
    font-size: 13px;
    color: #A0A3BD;
    margin-bottom: 6px;
    display: block;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.06);
    color: white;
    outline: none;

    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

input:focus {
    border: 1px solid #8b5cf6;
    box-shadow:
        0 0 0 2px rgba(139,92,246,0.4),
        inset 0 2px 6px rgba(0,0,0,0.5);
}

/* ================= BUTTON ================= */
.analyze-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;

    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;

    box-shadow: 0 10px 30px rgba(139,92,246,0.4);
    transition: all 0.25s ease;
}

.analyze-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(139,92,246,0.7);
}

.analyze-btn:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

/* ================= RIGHT PANEL ================= */
.graph-section {
    flex: 1;
    padding: 28px;
    position: relative;
}

/* glow */
.graph-section::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    z-index: -1;
}

/* ================= TABS ================= */
.tabs {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px;
}

.tab {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #A0A3BD;
    cursor: pointer;
    transition: 0.2s;
}

.tab:hover {
    color: white;
}

.tab.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
}

/* ================= GRAPH ================= */
#graph {
    width: 100%;
    height: 420px;
    margin-top: 10px;
}

.graph-note {
    margin-top: 10px;
    font-size: 12px;
    color: #A0A3BD;
    opacity: 0.8;
}

/* ================= EXPLANATION ================= */
#explanation {
    margin-top: 24px;
    color: #A0A3BD;
    font-size: 14px;
    line-height: 1.7;
}

/* ================= FEATURES ================= */
.features {
    display: flex;
    gap: 20px;
    padding: 40px 60px;
}

.feature-card {
    flex: 1;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* ================= EDUCATION ================= */
.education {
    padding: 60px;
}

.education h2 {
    margin-bottom: 20px;
}

.edu-grid {
    display: flex;
    gap: 20px;
}

.edu-card {
    flex: 1;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);

    transition: 0.3s;
}

.edu-card:hover {
    transform: translateY(-5px);
}

/* ================= LOADER ================= */
.hidden {
    display: none;
}