:root {
    /* Cosmic Glass Palette */
    --bg-color: #0F0E1A; /* Deep indigo/purple */
    --card-bg: rgba(255, 255, 255, 0.03); /* Frosted */
    --primary: #38BDF8; /* Soft Sky Blue */
    --secondary: #F59E0B; /* Warm Amber */
    --accent: #14B8A6; /* Deep Teal */
    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.15); /* 15% white */
    --glass-blur: blur(20px);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5); /* Traditional physical shadow, not glowing */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Glassmorphism Utility (Bento Box style) */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 14, 26, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.logo-container img { height: 40px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 5% 60px;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}
.hero-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.cta-primary {
    background: var(--primary);
    color: #0F0E1A;
}
.cta-primary:hover {
    transform: translateY(-2px);
    background: #7dd3fc;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}
.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section { padding: 100px 5%; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* ==== ADMISSION PREDICTOR ==== */
.predictor-section {
    background: rgba(255,255,255,0.01);
    position: relative;
}
.predictor-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.predictor-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.predictor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media(min-width: 800px){
    .predictor-card { flex-direction: row; }
}
.predictor-form-area {
    flex: 1;
    padding: 2.5rem;
    border-right: 1px solid var(--glass-border);
}
.predictor-form-title { margin-bottom: 1.5rem; font-size: 1.3rem; }
.form-row {
    display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.form-group { flex: 1; min-width: 150px; }
.form-group label {
    display: block; font-size: 0.9rem; color: var(--text-dim); margin-bottom: 0.5rem; font-weight: 500;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    background: rgba(0,0,0,0.5);
}

.predict-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0F0E1A;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}
.predict-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2); }
.predict-button.shake { animation: shake 0.5s; }
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.btn-loader {
    width: 24px; height: 24px;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: #0F0E1A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Predictor Results */
.predictor-result-area {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.result-placeholder {
    margin: auto; text-align: center; color: var(--text-dim); opacity: 0.7;
}
.result-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

.result-content { width: 100%; }
.result-score-ring {
    width: 150px; height: 150px; margin: 0 auto 1.5rem; position: relative;
}
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 8; }
.ring-fill {
    fill: none; stroke: var(--primary); stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s;
}
.ring-label {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-percent { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.ring-sub { font-size: 0.9rem; color: var(--text-dim); }

.result-verdict { text-align: center; margin-bottom: 2rem; }
.verdict-tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.verdict-strong { background: rgba(20, 184, 166, 0.2); color: #14B8A6; border: 1px solid rgba(20, 184, 166, 0.3); }
.verdict-good { background: rgba(56, 189, 248, 0.2); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.verdict-fair { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); }
.verdict-low { background: rgba(239, 68, 68, 0.2); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.verdict-college { font-size: 0.9rem; color: var(--text-dim); }

.result-breakdown { margin-bottom: 2rem; }
.breakdown-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;}
.bar-item { margin-bottom: 0.8rem; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.3rem; }
.bar-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;}
.bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease-out; }

/* The Funnel Teaser */
.result-teaser-card {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.teaser-icon { font-size: 1.5rem; }
.teaser-text p { font-size: 0.9rem; color: var(--text-dim); margin-top: 0.5rem;}
.teaser-cta {
    background: #fff; color: #0F0E1A; text-align: center; padding: 0.8rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: var(--transition);
}
.teaser-cta:hover { background: #e2e8f0; }

.predictor-trust-row {
    display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.trust-chip { font-size: 0.85rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px;}

/* Features / Tiers */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card { padding: 2rem; transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.feature-card img { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; border: 1px solid var(--glass-border); box-shadow: 0 4px 15px rgba(0,0,0,0.3);}
.feature-card h3 { margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700;}
.feature-card p { color: var(--text-dim); }

.tier-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; font-weight: 700;}
.tier-list { list-style: none; margin: 1.5rem 0; color: var(--text-dim); }
.tier-list li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 8px;}
.tier-list li::before { content: '✓'; color: var(--primary); font-weight: bold;}
.tier-featured { transform: scale(1.05); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* FAQ Section */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; border-radius: 16px; overflow: hidden; }
.faq-question {
    padding: 1.5rem; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600; transition: var(--transition);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.05); }
.faq-answer {
    padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all 0.4s ease; color: var(--text-dim);
}
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 1000px; }
.faq-item.active .faq-question { color: var(--primary); }

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    flex-wrap: wrap; gap: 2rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap;}
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: var(--transition);}
.footer-links a:hover { color: var(--primary); }

/* Content Pages (Terms, Privacy, Support) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.content-page {
    max-width: 900px;
    margin: 140px auto 80px;
    padding: 0 5%;
}
.content-page h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -1px;
}
.content-page > p {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}
.content-page .glass {
    padding: 4rem 3rem !important;
}
.content-page h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}
.content-page h2:first-child {
    margin-top: 0;
}
.content-page p {
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 1.8rem;
    color: #CBD5E1; 
    font-size: 1.05rem;
    line-height: 1.85;
    letter-spacing: 0.2px;
}
.content-page ul {
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 2rem;
    padding-left: 1.8rem;
    color: #CBD5E1;
}
.content-page li {
    margin-bottom: 1rem;
    line-height: 1.85;
    font-size: 1.05rem;
}
.content-page li strong {
    color: #F8FAFC;
    font-weight: 600;
}
.content-page a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.content-page a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Support Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}
.contact-container .form-group {
    margin-bottom: 1.5rem;
}
.contact-container .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
    min-height: 120px;
}
.contact-container .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #0F0E1A;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}
.submit-btn:hover {
    background: #7dd3fc;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    nav { padding: 1rem 5%; }
    .predictor-card { flex-direction: column; }
    .predictor-form-area { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 1.5rem; }
    .predictor-result-area { padding: 1.5rem; }
}
