/* Reset and Root Variables */
:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --navy-deep: #0f172a;
    --navy-light: #1e293b;
    --primary: #059669; /* Compliance Green */
    --primary-light: #d1fae5;
    --primary-glow: rgba(5, 150, 105, 0.1);
    --accent: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-family);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-deep);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

.btn-accent {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
}

.btn-accent:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    font-size: 1.35rem;
    color: var(--primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

.nav-btn {
    text-decoration: none;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 90px;
    background: radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tag-bullet {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-deep);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Hero Visual: Compliance Card Mock */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--navy-deep);
    color: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

.audit-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.metric-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.metric-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.85rem;
}

.metric-item i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.text-success {
    color: var(--accent);
}

.metric-item strong {
    color: var(--bg-light);
    display: block;
    margin-bottom: 0.15rem;
}

/* Sections Global */
.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--navy-deep);
    color: var(--bg-light);
}

.card.bg-navy {
    background: var(--navy-deep);
    border-color: rgba(255, 255, 255, 0.05);
}

.bg-navy h3, .bg-navy strong {
    color: var(--bg-white) !important;
}

.section-heading {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: -0.5px;
}

.bg-navy .section-title {
    color: var(--bg-light);
}

.divider {
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards style */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem;
    transition: var(--transition-smooth);
}

/* Basics Section */
.basics-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}

@media (max-width: 800px) {
    .basics-grid {
        grid-template-columns: 1fr;
    }
}

.basics-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--navy-deep);
}

.basics-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.basics-info {
    border: none;
}

.basics-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-item {
    display: flex;
    gap: 1.25rem;
}

.pillar-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.pillar-item strong {
    color: var(--bg-white);
    display: block;
    margin-bottom: 0.25rem;
}

.pillar-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bg-navy .pillar-item p {
    color: #94a3b8;
}

/* Applicability section cards */
.pibo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pibo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
    border-color: var(--primary);
}

.pibo-card .card-icon {
    font-size: 2.25rem;
    color: var(--primary);
    background-color: var(--primary-light);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.pibo-card h3 {
    font-size: 1.25rem;
    color: var(--navy-deep);
    font-weight: 700;
}

.pibo-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-detail {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-light);
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 1rem;
}

/* Timeline/Compliance Cycle Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 17px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--border-color);
}

.timeline-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -48px;
    top: 5px;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
    z-index: 2;
}

.step-content {
    padding: 1.5rem 2rem;
}

.step-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--navy-deep);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Accordion Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-deep);
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Active FAQ Item State */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Expands dynamically */
}

/* Redirect Partner CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-container {
    max-width: 750px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.backlink-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.backlink-sub a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted var(--accent);
    transition: var(--transition-smooth);
}

.backlink-sub a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background-color: var(--bg-white);
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

.separator {
    color: var(--border-color);
}

/* Custom Grid for cycle timeline split layout */
.cycle-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.cycle-visual {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .cycle-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cycle-visual {
        position: relative;
        top: 0;
    }
}
