/* Base Reset & Variables */
:root {
    --primary-color: #E08D4C; /* Campfire Orange */
    --primary-hover: #c9793f;
    --text-main: #d1d5db; /* Softer text for dark theme */
    --text-muted: #9ca3af;
    --bg-main: #0F1811; /* Deep Pine Green */
    --bg-light: rgba(22, 36, 26, 0.6); /* Translucent lighter pine */
    --border-color: rgba(224, 141, 76, 0.2); /* Faint orange border */
    --card-bg: #142117; /* Deep green card */
    --heading-color: #F5F5F0; /* Creamy white */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .headline {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--heading-color);
}

.price span, .badge, .feature-list li, .subpage-container ul, .faq-item p {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--heading-color);
}

/* Base z-index positioning for particles */
section, .navbar, .footer, .subpage-container {
    position: relative;
    z-index: 2;
}

/* Sparks Animation */
.spark {
    position: absolute;
    bottom: -10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(224, 141, 76, 0.8);
    animation: rise linear infinite;
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-120vh) scale(0); opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    min-height: 44px;
    min-width: 44px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #111; /* dark text for contrast on orange */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #000;
    box-shadow: 0 0 15px rgba(224, 141, 76, 0.6);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    background-color: rgba(15, 24, 17, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(224, 141, 76, 0.4);
}

/* Hero Section */
.hero {
    padding: 5rem 0 6rem;
}

.headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Grids */
.grid-3, .grid-2 {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Cards (Warm Hover) */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 141, 76, 0.7);
    box-shadow: 0 12px 30px -5px rgba(224, 141, 76, 0.35); /* Warm campfire glow */
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* Sections General */
section {
    padding: 4rem 0;
}

/* Pricing */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(224, 141, 76, 0.15);
}

.pricing-card.popular:hover {
    box-shadow: 0 12px 35px rgba(224, 141, 76, 0.45);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #111;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: var(--heading-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* User Reviews */
.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.review-author {
    font-weight: 600;
    color: var(--heading-color);
    text-align: right;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(224, 141, 76, 0.5);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #0a110c;
    color: var(--text-muted);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
    color: var(--heading-color);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* Subpages Content Styles */
.subpage-container {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
    max-width: 800px;
}
.subpage-container h1 {
    font-size: 2.5rem;
}
.subpage-container h3 {
    margin-top: 2rem; 
    margin-bottom: 1rem;
}
.subpage-container p {
    color: var(--text-muted); 
    margin-bottom: 1.5rem;
}
.subpage-container ul {
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    line-height: 1.8; 
    padding-left: 20px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-2px);
    }

    .headline {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 0;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    /* Ensure buttons span full width on mobile for easy tapping */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Keep navbar button small */
    .navbar .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
}


/* A11y & Layout Fixes */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}
section, .subpage-container, #main-content {
    scroll-margin-top: 80px;
}
details.faq-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}
details.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    outline: none;
}
details.faq-item p {
    margin-top: 1rem;
    margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
