/* ========================================
   Drop in FinOps - Central Stylesheet
   Color Palette:
   - Background: #FAF6F1 (warm cream)
   - Primary: #E07A5F (burnt orange)
   - CTA: #3D5A80 (deep teal)
   - Text: #2D3142 (charcoal)
   - Secondary text: #5A5A5A
   - Borders: #E8DFD0
   ======================================== */

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FAF6F1;
    color: #2D3142;
    overflow-x: hidden;
    line-height: 1.8;
}

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

/* ========================================
   HEADER
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 122, 95, 0.2);
}

header .container {
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: #E07A5F !important;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2D3142;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.logo-link span {
    color: #2D3142;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #2D3142;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3D5A80;
    color: white;
    box-shadow: 0 4px 20px rgba(61, 90, 128, 0.3);
}

.btn-primary:hover {
    background: #2E4459;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(61, 90, 128, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #E07A5F;
    border: 2px solid #E07A5F;
}

.btn-secondary:hover {
    background: rgba(224, 122, 95, 0.1);
    transform: translateY(-2px);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    background: rgba(224, 122, 95, 0.15);
    color: #E07A5F;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(224, 122, 95, 0.3);
}

.category-badge {
    display: inline-block;
    background: rgba(224, 122, 95, 0.2);
    color: #E07A5F;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(224, 122, 95, 0.3);
    text-transform: capitalize;
}

.article-category {
    display: inline-block;
    background: rgba(224, 122, 95, 0.2);
    color: #E07A5F;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(224, 122, 95, 0.3);
    text-transform: capitalize;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FAF6F1 0%, #F5E6D3 100%);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2D3142;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: #E07A5F;
}

.hero p {
    font-size: 1.4rem;
    color: #5A5A5A;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.resources-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #FAF6F1 0%, #F5E6D3 100%);
    position: relative;
    overflow: hidden;
}

.resources-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: pulse 6s ease-in-out infinite;
}

.resources-hero .container {
    position: relative;
    z-index: 1;
}

.resources-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D3142;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.resources-hero .highlight {
    color: #E07A5F;
}

.resources-hero p {
    font-size: 1.4rem;
    color: #5A5A5A;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2D3142;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #5A5A5A;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    padding: 60px 0;
    background: rgba(224, 122, 95, 0.05);
    border-top: 1px solid rgba(224, 122, 95, 0.2);
    border-bottom: 1px solid rgba(224, 122, 95, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #E07A5F;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #5A5A5A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CARDS & GRIDS
   ======================================== */

.problem-grid,
.features-grid,
.categories-grid,
.articles-grid {
    display: grid;
    gap: 2rem;
}

.problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.problem-card,
.feature-card,
.category-card,
.article-card {
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.category-card,
.article-card {
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.problem-card:hover,
.feature-card:hover,
.category-card:hover,
.article-card:hover {
    background: rgba(224, 122, 95, 0.05);
    border-color: #E07A5F;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(224, 122, 95, 0.15);
}

.problem-icon,
.feature-icon,
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 3rem;
    display: block;
}

.problem-card h3,
.feature-card h3,
.category-card h3,
.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.problem-card h3 {
    color: #E07A5F;
}

.feature-card h3,
.article-card h3 {
    color: #2D3142;
}

.category-card h3 {
    font-size: 1.8rem;
    color: #E07A5F;
}

.problem-card p,
.feature-card p,
.category-card p,
.article-card p {
    color: #5A5A5A;
    line-height: 1.7;
}

.category-card p,
.article-card p {
    margin-bottom: 1.5rem;
}

.category-meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #5A5A5A;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-count::before {
    content: '📄';
}

/* ========================================
   QUIZ SECTION
   ======================================== */

.quiz-section {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1) 0%, rgba(242, 166, 90, 0.1) 100%);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    margin: 50px 0;
}

.email-gate {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-gate h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2D3142;
}

.email-gate p {
    font-size: 1.2rem;
    color: #5A5A5A;
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.email-input,
.search-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(224, 122, 95, 0.3);
    border-radius: 8px;
    background: white;
    color: #2D3142;
    font-size: 1rem;
}

.email-input::placeholder,
.search-input::placeholder {
    color: rgba(45, 49, 66, 0.4);
}

.email-input:focus,
.search-input:focus {
    outline: none;
    border-color: #E07A5F;
    background: white;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quiz-container {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-container.active {
    display: block;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h2 {
    font-size: 2rem;
    color: #2D3142;
    margin-bottom: 0.5rem;
}

.quiz-header p {
    color: #5A5A5A;
    font-size: 1.1rem;
}

.progress-bar {
    background: rgba(224, 122, 95, 0.15);
    height: 8px;
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    background: #E07A5F;
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-card {
    display: none;
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    padding: 3rem;
    animation: slideIn 0.5s ease;
}

.question-card.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    color: #E07A5F;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.5rem;
    color: #2D3142;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    background: rgba(224, 122, 95, 0.05);
    border: 2px solid rgba(224, 122, 95, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2D3142;
    font-size: 1.1rem;
}

.option:hover {
    background: rgba(224, 122, 95, 0.1);
    border-color: #E07A5F;
    transform: translateX(5px);
}

.option.selected {
    background: rgba(224, 122, 95, 0.2);
    border-color: #E07A5F;
}

.quiz-complete {
    display: none;
    text-align: center;
    padding: 3rem;
}

.quiz-complete.active {
    display: block;
    animation: slideIn 0.5s ease;
}

.quiz-complete h2 {
    font-size: 2.5rem;
    color: #2D3142;
    margin-bottom: 1rem;
}

.quiz-complete p {
    font-size: 1.2rem;
    color: #5A5A5A;
    margin-bottom: 2rem;
}

/* ========================================
   ARTICLE-SPECIFIC STYLES
   ======================================== */

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.breadcrumb-section {
    padding: 120px 0 40px;
}

.breadcrumb {
    color: #5A5A5A;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #E07A5F;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.article-header,
.category-header {
    margin-bottom: 3rem;
}

.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-title,
.category-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D3142;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.category-header p {
    font-size: 1.4rem;
    color: #5A5A5A;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-body {
    color: #2D3142;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #2D3142;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-body h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid rgba(224, 122, 95, 0.3);
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 2rem;
    color: #E07A5F;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #2D3142;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: #2D3142;
}

.article-body a {
    color: #E07A5F;
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 122, 95, 0.3);
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #E07A5F;
}

.article-body strong {
    color: #2D3142;
    font-weight: 600;
}

.article-body code {
    background: rgba(224, 122, 95, 0.1);
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #E07A5F;
}

.article-body pre {
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: #2D3142;
    font-size: 0.95rem;
}

.article-body blockquote {
    border-left: 4px solid #E07A5F;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #5A5A5A;
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E8DFD0;
}

.article-body th {
    background: rgba(224, 122, 95, 0.1);
    color: #E07A5F;
    font-weight: 600;
}

/* ========================================
   ANOMALY EXAMPLE & CODE BLOCKS
   ======================================== */

.anomaly-example {
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5A5A5A;
}

.anomaly-example strong {
    color: #E07A5F;
}

.anomaly-example ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.anomaly-title {
    color: #E07A5F;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========================================
   CTA SECTIONS
   ======================================== */

.cta-section,
.cta-box {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1) 0%, rgba(242, 166, 90, 0.1) 100%);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
}

.cta-section {
    margin: 80px 0;
}

.cta-box {
    margin: 3rem 0;
}

.cta-section h2,
.cta-box h3 {
    font-size: 2.5rem;
    color: #2D3142;
    margin-bottom: 1rem;
}

.cta-box h3 {
    color: #E07A5F;
    font-size: 1.5rem;
}

.cta-section p,
.cta-box p {
    font-size: 1.2rem;
    color: #5A5A5A;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-container {
    background: white;
    border: 1px solid #E8DFD0;
    border-radius: 16px;
    padding: 3rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #E8DFD0;
}

.comparison-table th {
    color: #E07A5F;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    color: #5A5A5A;
}

.check {
    color: #27ae60;
    font-size: 1.5rem;
}

.cross {
    color: #e74c3c;
    font-size: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(224, 122, 95, 0.05);
    border-top: 1px solid rgba(224, 122, 95, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #E07A5F;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #5A5A5A;
    font-size: 0.95rem;
    line-height: 1.7;
    text-decoration: none;
}

.footer-section a:hover {
    color: #E07A5F;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(224, 122, 95, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #5A5A5A;
    font-size: 0.9rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background: #FAF6F1;
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #5A5A5A;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #E07A5F;
}

.modal-content h2 {
    color: #E07A5F;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: #2D3142;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.modal-content p,
.modal-content ul {
    color: #5A5A5A;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul {
    margin-left: 2rem;
}

.modal-content strong {
    color: #2D3142;
}

.modal-content a {
    color: #E07A5F;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero h1,
    .resources-hero h1,
    .article-title,
    .category-header h1 {
        font-size: 2.5rem;
    }