/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1e1e1e;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #C62E2E;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #1e1e1e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #C62E2E;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #C62E2E 0%, #a02525 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #C1E172;
    color: #1e1e1e;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b0d060;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 225, 114, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: #6c757d;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #C62E2E;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #C62E2E;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #C62E2E;
    color: #fff;
    transform: translateY(-2px);
}

.btn-add {
    background-color: #C1E172;
    color: #1e1e1e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-add:hover {
    background-color: #b0d060;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.tool-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e1e1e;
}

.tool-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Form Styles */
.subscription-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e1e1e;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #C62E2E;
}

/* Subscription List */
.subscription-list {
    margin-bottom: 1.5rem;
}

.subscription-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subscription-item:hover {
    background: #e9ecef;
}

.subscription-info {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.subscription-name {
    font-weight: 600;
    color: #1e1e1e;
}

.subscription-category {
    color: #6c757d;
    font-size: 0.9rem;
}

.subscription-cost {
    font-weight: bold;
    color: #C62E2E;
    font-size: 1.1rem;
}

.subscription-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.results-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1e1e1e;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item.highlight {
    box-shadow: 0 4px 12px rgba(198, 46, 46, 0.1);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 2rem;
    color: #C62E2E;
    margin-bottom: 0.75rem;
}

.result-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: #C62E2E;
}

/* Category Breakdown */
.category-breakdown {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-breakdown h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    font-weight: 600;
    color: #1e1e1e;
}

.category-amount {
    font-weight: bold;
    color: #C62E2E;
}

/* Insight Box */
.insight-box {
    background: linear-gradient(135deg, #C1E172 0%, #a8c862 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: start;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.insight-box i {
    font-size: 2rem;
    color: #1e1e1e;
}

.insight-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #1e1e1e;
}

.insight-box p {
    color: #1e1e1e;
    margin: 0;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e1e1e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #C62E2E;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.feature-card p {
    color: #6c757d;
}

/* How to Use Section */
.how-to-use {
    padding: 4rem 0;
    background: #f8f9fa;
}

.how-to-use h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e1e1e;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.step-number {
    background: #C62E2E;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.step p {
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #C62E2E 0%, #a02525 100%);
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cta-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e1e1e;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1e1e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.8;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.content-section article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1e1e1e;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #1e1e1e;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #C62E2E;
    text-decoration: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #C1E172;
}

.footer-column a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-column a:hover {
    color: #C1E172;
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
    
    .subscription-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}