:root {
    --primary-blue: #9ebffc;
    --primary-blue-hover: #8daeeb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f6f9fc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.max-w { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header Navbar */
.app-header {
    background: transparent;
    padding: 24px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 8px;
}
.nav-links a:hover { color: #2563eb; }
.nav-links a.active { color: #2563eb; }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
    background: #2563eb; border-radius: 2px;
}
.has-dropdown { display: flex; align-items: center; gap: 4px; }

/* Hero Section */
.hero-section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 600px;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04); /* Softer, lighter shadow for less weight */
    text-align: center;
}
.main-card h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.main-card .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Input Group */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}
.input-wrapper input:focus {
    border-color: #9ebffc;
    box-shadow: 0 0 0 3px rgba(158, 191, 252, 0.2);
}

/* Mini Platform Select */
.platform-selector-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}
.platform-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}
.platform-btn:hover { background: #e2e8f0; }
.platform-btn.selected {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Hero Button */
.btn-check {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-check:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}
.disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 25px;
    line-height: 1.5;
}

/* Results Card in Hero */
.results-card {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
    text-align: left;
}
.results-card.hidden { display: none; }
.results-card h3 { font-size: 1.1rem; text-align: center; margin-bottom: 15px; }
.score-display { text-align: center; }
.score-value { font-size: 4.5rem; font-weight: 800; color: #3b82f6; line-height: 1; }
.score-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: #94a3b8; font-weight: 500; margin: 10px 0 30px; }
.metric { margin-bottom: 15px; }
.metric-header { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.metric-value { color: #3b82f6; }
.progress-bar-container { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: #9ebffc; width: 0%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Hero Description */
.hero-description {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Pastel Grid Section */
.pastel-grid-section { padding: 80px 20px; text-align: center; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; }

.pastel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    text-align: left;
}

.pastel-card {
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pastel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pastel-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.pastel-card p { font-size: 0.95rem; color: #475569; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.card-icon { font-size: 2.2rem; margin-bottom: 20px; }
.card-link { font-size: 0.95rem; font-weight: 600; color: #3b82f6; }

/* Colors for Grid */
.card-blue { background: #eef2ff; }
.card-light-blue { background: #f0f9ff; }
.card-pink { background: #fdf2f8; }
.card-peach { background: #fff7ed; }
.card-green { background: #ecfdf5; }
.card-purple { background: #faf5ff; }
.card-yellow { background: #fefce8; }
.card-light-pink { background: #fff1f2; }

/* Badges */
.badge { position: absolute; top: 20px; right: 20px; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* Clean Text Layout */
.clean-text-section { margin-top: 60px; margin-bottom: 60px; }
.clean-text-section .section-title { text-align: center; }
.clean-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.clean-card p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.clean-card p:last-child { margin-bottom: 0; }

/* Clean Lists */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-col h2 { font-size: 1.5rem; margin-bottom: 24px; color: #0f172a; }
.clean-list { list-style: none; }
.clean-list li { margin-bottom: 15px; padding-left: 24px; position: relative; color: var(--text-muted); font-size: 1.05rem; }
.clean-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; }
.clean-list strong { color: var(--text-dark); }

/* Platform Rows */
.platforms-list { display: flex; flex-direction: column; gap: 15px; }
.platform-row {
    background: white; padding: 20px; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center;
}
.platform-name { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.supported { font-size: 0.85rem; background: #ecfdf5; color: #10b981; padding: 4px 10px; border-radius: 12px; }
.platform-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Community Results Style */
.community-results-style {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.score-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px; border-bottom: 1px solid var(--border-color);
}
.score-row:last-child { border-bottom: none; }
.score-user { display: flex; align-items: center; gap: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 1.2rem; }
.bg-blue { background: #3b82f6; } .bg-green { background: #10b981; } .bg-purple { background: #8b5cf6; } .bg-pink { background: #ec4899; }
.naming strong { display: block; font-size: 1.05rem; color: #0f172a; }
.naming span { display: block; font-size: 0.9rem; color: var(--text-muted); }
.score-points { font-size: 1.4rem; font-weight: 800; color: #3b82f6; background: #eff6ff; padding: 8px 16px; border-radius: var(--radius-md); }

/* FAQ Clean */
.faq-container { padding: 10px 40px; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
    width: 100%; text-align: left; padding: 24px 0; background: none; border: none;
    font-size: 1.1rem; font-weight: 600; color: var(--text-dark); cursor: pointer;
    font-family: inherit; position: relative;
}
.accordion-header::after {
    content: '+'; position: absolute; right: 0; font-size: 1.5rem; color: #94a3b8; font-weight: 400; transition: transform 0.3s;
}
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content p { padding: 0 0 24px 0; font-size: 0.95rem; }

/* Footer */
.app-footer { background: #ffffff; padding: 60px 0 40px; margin-top: 80px; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.app-footer .logo { font-size: 1.4rem; font-weight: 800; color: #2563eb; margin-bottom: 10px; }
.app-footer p { color: var(--text-muted); margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; font-weight: 500; font-size: 0.95rem; }
.footer-links a:hover { color: #2563eb; }
.disclaimer-text { font-size: 0.8rem; color: #94a3b8; text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; }

/* Responsive Grid */
@media (max-width: 768px) {
    .nav-links a:not(.active) { display: none; } /* Mobile nav simplification */
    .split-layout { grid-template-columns: 1fr; }
    .platform-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .score-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .score-points { align-self: flex-start; }
    .main-card { padding: 30px 20px; }
}
