/* Root Variables */
:root {
    --bg-dark: #0A0F1D;
    --bg-card: #131B2E;
    --bg-card-hover: #1A243B;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 180, 216, 0.3);

    --primary: #00B4D8;
    --primary-gradient: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --accent-teal: #0D9488;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-purple: #8B5CF6;

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px rgba(0, 180, 216, 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary {
    background: var(--primary-gradient);
    color: #FFF;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Navigation Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    box-shadow: var(--shadow-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    top: -100px;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.glow-2 {
    bottom: 0;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Phone Mockup Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 320px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 8px solid #1E293B;
    box-shadow: var(--shadow-subtle), var(--shadow-glow);
    padding: 20px;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.app-header-preview {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.app-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.score-display {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(19, 27, 46, 0) 70%);
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
}

.score-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1;
}

.score-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.score-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.app-body-preview {
    padding-top: 16px;
}

.card-mini {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.card-mini-title { font-size: 0.75rem; color: var(--text-muted); }
.card-mini-sub { font-size: 0.9rem; font-weight: 700; color: var(--primary); }

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* Sections Common Header */
.section-header {
    margin-bottom: 56px;
}

.section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* Interactive Demo Section */
.demo-section {
    padding: 90px 0;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-subtle);
}

.demo-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
}

.matrix-cell {
    aspect-ratio: 1;
    background: #0F172A;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
}

.matrix-cell.missing {
    border: 2px dashed var(--primary);
    background: rgba(0, 180, 216, 0.05);
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.demo-options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.options-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.option-cell {
    aspect-ratio: 1;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 12px;
}

.option-cell:hover {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.option-cell.selected {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
}

.option-cell.incorrect {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.demo-feedback {
    min-height: 50px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.demo-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.demo-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-subtle);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bg-teal { background: rgba(13, 148, 136, 0.15); color: #2DD4BF; }
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.bg-amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.bg-blue { background: rgba(0, 180, 216, 0.15); color: #38BDF8; }
.bg-emerald { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.bg-rose { background: rgba(244, 63, 94, 0.15); color: #FB7185; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Methodology Section */
.methodology {
    padding: 90px 0;
    background: rgba(255, 255, 255, 0.01);
}

.methodology-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.scale-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.scale-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    min-width: 95px;
    text-align: center;
}

.level-130 { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.level-120 { background: rgba(139, 92, 246, 0.2); color: #A78BFA; border: 1px solid #8B5CF6; }
.level-110 { background: rgba(0, 180, 216, 0.2); color: var(--primary); border: 1px solid var(--primary); }
.level-90 { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.level-70 { background: rgba(148, 163, 184, 0.2); color: #94A3B8; border: 1px solid #64748B; }

.scale-desc strong {
    display: block;
    font-size: 0.95rem;
}

.scale-desc span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.methodology-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.methodology-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    margin-bottom: 16px;
}

.methodology-card-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.formula-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.formula-box {
    background: #090D16;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
}

.formula-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Categories Grid */
.categories { padding: 90px 0; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.cat-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.category-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-section { padding: 90px 0; }

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-arrow {
    transition: var(--transition);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 200px;
}

/* Download CTA */
.cta-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #081122 100%);
    border-top: 1px solid var(--border-color);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* Footer Styling */
.footer {
    background: #060913;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 380px;
    margin-bottom: 20px;
}

.footer-credit {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .demo-card { grid-template-columns: 1fr; }
    .methodology-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }
}
