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

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

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

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #008038;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #008038;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-header {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #444;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-nav-link {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #008038;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #008038 0%, #006b2f 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 128, 56, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 56, 0.35);
}

.btn-secondary {
    background: white;
    color: #008038;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #008038;
    background: #f0f8f4;
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(180deg, #f8fafe 0%, #ffffff 100%);
    padding: 45px 0 45px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 128, 56, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 107, 47, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 128, 56, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #008038;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.hero h1 span {
    background: linear-gradient(135deg, #008038 0%, #006b2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Accordion Styles */
.hierarchy-section {
    background: white;
    padding: 25px 0;
}

.hierarchy-intro {
    text-align: center;
    margin-bottom: 25px;
}

.hierarchy-intro h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hierarchy-intro p {
    font-size: 18px;
    color: #666;
}

/* Accordion Styles */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 2px solid #e0e0e0;
    margin-bottom: 16px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.accordion-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.accordion-item.active {
    /* border-color: #008038;
    box-shadow: 0 6px 20px rgba(0, 128, 56, 0.15); */
    border-radius: 0px;
    z-index: 10;
}

.accordion-header {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-info {
    flex: 1;
}

.accordion-title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-family: 'Ubuntu', sans-serif;
}

/* Fixed Tooltip Styles */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.2s ease;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.tooltip-icon:hover {
    background: #008038;
    color: white;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Alternative positioning for metric cards - tooltips appear below */
.metric-card .tooltip {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
}

.metric-card .tooltip::after {
    bottom: 100%;
    top: auto;
    border-top-color: transparent;
    border-bottom-color: #333;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 9999;
}

.tooltip-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

/* Ensure proper stacking */
.accordion-content {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.content-wrapper {
    position: relative;
    overflow: visible;
}

.metric-card {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.metric-card:hover {
    z-index: 20;
}

.accordion-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accordion-score-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-score {
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    font-family: 'Ubuntu', sans-serif;
}

.accordion-score span {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.6;
}

.accordion-score.score-red { color: #d32f2f; }
.accordion-score.score-amber { color: #FFC000; }
.accordion-score.score-green { color: #388e3c; }

.accordion-icon {
    color: #666;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.content-wrapper {
    padding: 0 30px 30px;
}

.details-commentary {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ededed;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-top: 10px;
}

.details-breakdown {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.breakdown-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.section-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-large {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.metric-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.metric-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: #008038;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.outlook-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.outlook-positive { background: #388e3c; }
.outlook-neutral { background: #FFC000; }
.outlook-negative { background: #d32f2f; }

.recommendations {
    background: #f8f9fa;
    padding: 25px 0;
}

.recommendations h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.rec-stack {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rec-item {
    background: white;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.rec-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.rec-item.priority-1 {
    border-color: #ffebee;
    background: linear-gradient(to right, #fff 0%, #ffebee 100%);
}

.rec-item.priority-1:hover {
    border-color: #d32f2f;
}

.rec-item.priority-2 {
    border-color: #fff3e0;
    background: linear-gradient(to right, #fff 0%, #fff3e0 100%);
}

.rec-item.priority-2:hover {
    border-color: #f57c00;
}

.rec-item.priority-3 {
    border-color: #f0f0f0;
}

.rec-item.priority-3:hover {
    border-color: #e0e0e0;
}

.rec-number {
    width: 48px;
    height: 48px;
    background: #008038;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Ubuntu', sans-serif;
}

.rec-item.priority-1 .rec-number {
    background: #d32f2f;
}

.rec-item.priority-2 .rec-number {
    background: #f57c00;
}

.rec-content {
    flex: 1;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-p1 { 
    background: #ffebee; 
    color: #d32f2f; 
}

.priority-p2 { 
    background: #fff3e0; 
    color: #f57c00; 
}

.priority-p3 { 
    background: #e8f5e9; 
    color: #388e3c; 
}

.rec-aspect {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rec-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #008038 0%, #006b2f 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 38px;
    margin-bottom: 24px;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-align: justify;
}

.btn-cta {
    background: white;
    color: #008038;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    background: #f8f8f8;
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #008038;
}

.footer-about h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-about p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    .hero { padding: 25px 0 25px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .nav-menu { display: none; }
    .cta-header { display: none; }
    .mobile-menu-toggle { display: flex; }
    .accordion-header { padding: 20px; }
    .accordion-score { font-size: 28px; }
    .accordion-score span { font-size: 16px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .rec-item { 
        flex-direction: column; 
        text-align: center;
        padding: 20px;
    }
    .rec-item:hover { transform: none; }
    .rec-content { width: 100%; }
    .rec-header { 
        flex-direction: column; 
        gap: 8px;
        align-items: center;
    }
    .cta-section { padding: 25px 0; }
    .cta-section h2 { font-size: 28px; }
    .cta-section p { font-size: 18px; }
    .footer-content { grid-template-columns: 1fr; }
    
    /* Mobile tooltip adjustments */
    .tooltip {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 50%;
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .nav-menu { gap: 24px; }
    .header-content { gap: 20px; }
}