:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --heading-color: #f0f6fc;
    --primary-color: #58a6ff;
    --accent-color: #79c0ff;
    --card-bg: rgba(22, 27, 34, 0.6);
    --border-color: rgba(48, 54, 61, 0.5);
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Apply reset to elements inside wrapper without increasing specificity */
:where(.finance-app-wrapper) div,
:where(.finance-app-wrapper) span,
:where(.finance-app-wrapper) header,
:where(.finance-app-wrapper) main,
:where(.finance-app-wrapper) section,
:where(.finance-app-wrapper) article,
:where(.finance-app-wrapper) h1,
:where(.finance-app-wrapper) h2,
:where(.finance-app-wrapper) h3,
:where(.finance-app-wrapper) h4,
:where(.finance-app-wrapper) p,
:where(.finance-app-wrapper) a,
:where(.finance-app-wrapper) ul,
:where(.finance-app-wrapper) li,
:where(.finance-app-wrapper) nav,
:where(.finance-app-wrapper) footer,
:where(.finance-app-wrapper) strong,
:where(.finance-app-wrapper) em {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.finance-app-wrapper {
    box-sizing: border-box;
}

.finance-app-wrapper {
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #bc8cff);
    width: 0%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
    font-weight: 400;
    margin-left: 5px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--heading-color);
    font-weight: 800;
    background: -webkit-linear-gradient(0deg, #f0f6fc, #58a6ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #8b949e;
    max-width: 650px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color), #2f81f7);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(88, 166, 255, 0.35);
}

/* Article */
.main-article {
    padding-bottom: 80px;
}

.article-meta {
    text-align: center;
    font-size: 0.95rem;
    color: #8b949e;
    margin-bottom: 60px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.content-section {
    margin-bottom: 70px;
}

.content-section h2 {
    color: var(--heading-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.content-section p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section p strong {
    color: var(--heading-color);
}

/* Mockup */
.image-placeholder {
    display: flex;
    justify-content: center;
    margin: 80px 0;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(188, 140, 255, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: 1;
}

.mockup {
    width: 320px;
    height: 660px;
    background: #000;
    border-radius: 45px;
    padding: 14px;
    box-shadow: 0 35px 60px -15px rgba(88, 166, 255, 0.3);
    border: 1px solid rgba(88, 166, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.mockup:hover {
    transform: translateY(-10px);
}

.mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 3;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1c2128 0%, #0d1117 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 45px 20px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    background: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--heading-color);
}

.app-body {
    padding: 25px;
    flex-grow: 1;
}

.portfolio-card {
    background: linear-gradient(135deg, var(--primary-color), #2f81f7);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.5;
    box-shadow: 0 12px 24px rgba(88, 166, 255, 0.25);
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--heading-color);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(48, 54, 61, 0.5);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 18px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.feature-card h3 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: #8b949e;
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(13, 17, 23, 0));
    border-left: 5px solid var(--primary-color);
    padding: 45px;
    border-radius: 0 20px 20px 0;
    margin: 80px 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    background: var(--card-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info {
    max-width: 450px;
}

.footer-info h3 {
    color: var(--heading-color);
    margin-bottom: 18px;
    font-size: 1.5rem;
}

.footer-info p {
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column h4 {
    color: var(--heading-color);
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #8b949e;
}

.footer-bottom a {
    color: #8b949e;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 85%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .header .nav a {
        display: none;
    }

    .footer-content {
        flex-direction: column;
    }

    .highlight-box {
        padding: 30px;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(88, 166, 255, 0.25);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #8b949e;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.modal-section {
    flex: 1;
    min-width: 200px;
}

.modal-section h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-section p {
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 10px;
}

.modal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.modal-section a:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
    margin-top: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.05em;
}

.comparison-table th {
    background: rgba(88, 166, 255, 0.1);
    color: var(--heading-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table strong {
    color: var(--primary-color);
}