/* ==========================================================================
   TrustSentinel - Brand Stylesheet (Premium Edition)
   Direction: Calm, Enterprise-grade, Audit-ready, Spacious
   ========================================================================== */

/* --- Variables --- */
:root {
    --primary-text: #2C3E50;     /* Pehmennetty tumma harmaa, helpompi silmille */
    --primary-heading: #1A252F;  /* Syvempi, arvokas tummansininen */
    --accent-teal: #2F8F83;      /* Brändin rauhallinen tehosteväri */
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;         /* Hieman raikkaampi, viileä vaaleanharmaa */
    --border-color: #E2E8F0;
    
    --text-muted: #64748B;       /* Modernimpi, pehmeä apuharmaa */
}

/* --- Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-text);
    background-color: var(--bg-white);
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
    color: var(--primary-heading);
    font-weight: 600;
    line-height: 1.25;
}

h1 { margin-bottom: 1.5rem; }
h2 { margin-bottom: 1.2rem; }
h3 { margin-bottom: 0.8rem; }

.font-sans { font-family: 'Inter', sans-serif; }
.text-primary { color: var(--primary-heading); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.25rem; }
.uppercase { text-transform: uppercase; letter-spacing: 1.5px; }

/* --- Layout Components --- */
.container {
    max-width: 1140px; 
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 7rem 0; } 
.text-center { text-align: center; }
.text-left { text-align: left; }
.align-center { align-items: center; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.border-y {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; 
}

/* --- Section Header Center --- */
.section-header-center {
    max-width: 800px;
    margin: 0 auto 4.5rem auto;
    text-align: center;
}

.section-header-center h2 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    letter-spacing: -0.5px;
}

/* --- Navigation --- */
nav {
    padding: 1.5rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-heading);
    letter-spacing: -0.5px;
}
.nav-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Hero Section --- */
.hero { padding: 8rem 0 7rem 0; }
.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-teal);
    margin-bottom: 2rem;
    font-weight: 600;
}
.hero h1 {
    font-size: 4.2rem;
    max-width: 950px;
    margin: 0 auto 2rem auto;
    letter-spacing: -1.5px;
}
.lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.8;
}
.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn-group { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    margin-top: 3.5rem; 
}
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px; 
}
.btn-primary {
    background-color: var(--primary-heading);
    color: var(--bg-white);
    border: 1px solid var(--primary-heading);
    box-shadow: 0 4px 14px rgba(26, 37, 47, 0.15); 
}
.btn-primary:hover { 
    background-color: #111A22; 
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 37, 47, 0.2);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-heading);
    border: 1px solid var(--border-color);
}
.btn-outline:hover { 
    border-color: var(--primary-heading); 
    background-color: var(--bg-light);
}

/* --- Trust Bar & Lists --- */
.trust-bar {
    padding: 5rem 0;
}
.trust-title {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}
.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-flex;
    flex-direction: column;
    text-align: left;
}
.trust-list li {
    font-size: 1.1rem;
    color: var(--primary-text);
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}
.trust-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    opacity: 0.8;
}

/* --- Cards & Feature Blocks (PREMIUM SPACING) --- */
.card {
    background:none;
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.card-bordered {
    border: 1px solid var(--border-color);
}
.card-clean {
    padding: 3.5rem;
    background: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.feature-block {
    padding-bottom: 2.5rem;
}
.feature-block h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.feature-block p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* --- General Bullets (PREMIUM ALIGNMENT) --- */
.custom-bullets { 
    list-style: none; 
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.custom-bullets li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--primary-text);
}
.custom-bullets li::before {
    content: "";
    position: absolute;
    left: 0; 
    top: 0.55em;
    width: 6px; 
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    opacity: 0.9;
}
.custom-bullets.no-bullets li::before { display: none; }
.custom-bullets.no-bullets li { padding-left: 0; }

/* --- Kortin alaosan korostusteksti (esim. "Helping teams focus...") --- */
.card-clean .font-serif.text-primary {
    color: var(--accent-teal); 
    font-style: italic;        
    font-size: 1.35rem;        
    margin-top: 1rem;
    border-top: 1px solid var(--border-color); 
    padding-top: 1.5rem;
}

/* --- Workflow Grid (Index) --- */
.workflow-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.workflow-list {
    list-style-type: decimal;
    padding-left: 2rem;
    color: var(--primary-text);
}
.workflow-list li {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    padding-left: 1rem;
}
.workflow-list li::marker {
    color: var(--accent-teal);
    font-weight: 600;
}
.statement-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--accent-teal);
    font-style: italic;
}
.massive-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary-heading);
    max-width: 800px;
    margin: 3rem auto;
    line-height: 1.3;
}
.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}
.tag {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Markets: Comparison Grid --- */
.comparison-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    margin-top: 4rem; 
}
.comparison-card { 
    padding: 4rem; 
    border: 1px solid var(--border-color); 
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.comparison-card.negative { border-top: 4px solid #E74C3C; background: #fff; }
.comparison-card.positive { border-top: 4px solid var(--accent-teal); background: var(--bg-light); }
.comparison-item { margin-bottom: 2rem; }
.comparison-item strong { display: block; font-size: 1.15rem; color: var(--primary-heading); margin-bottom: 0.4rem; }
.comparison-item p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Markets: Market Regions --- */
.market-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 2rem; 
    margin-top: 4rem; 
}
.market-card { 
    padding: 3rem 2rem; 
    background: #fff; 
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}
.market-region { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--accent-teal); 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
}
.market-size { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.4rem; 
    color: var(--primary-heading); 
    margin-bottom: 1rem; 
}

/* --- Markets: Timeline/Growth --- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 5rem;
}
.timeline-card {
    padding: 3rem 2.5rem;
    border-left: 1px solid var(--accent-teal);
    text-align: left;
}
.timeline-card:first-child { border-left: none; }
.timeline-year { 
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    color: var(--accent-teal); 
    margin-bottom: 1rem; 
}
.timeline-title { font-weight: 600; font-size: 1.35rem; margin-bottom: 1rem; color: var(--primary-heading); }
.timeline-metrics { 
    background: #fff; 
    padding: 1.25rem; 
    margin-top: 1.5rem; 
    border: 1px solid var(--border-color); 
    font-size: 0.95rem;
    color: var(--primary-text);
    border-radius: 4px;
}

/* --- Dark Sections --- */
.section.dark { background: var(--primary-heading); color: #fff; }
.section.dark h2, .section.dark .lead { color: #fff; }
.hero-label.light { color: var(--accent-teal); }

/* --- Modals --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(26, 37, 47, 0.9); 
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show { display: block; opacity: 1; }
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 4.5rem;
    border-radius: 8px;
    max-width: 750px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal.show .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute;
    right: 2.5rem; top: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
}
.close-modal:hover { color: var(--primary-heading); }
.source-item { margin-top: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.source-item:last-child { border-bottom: none; }
.source-item strong { display: block; color: var(--primary-heading); margin-bottom: 0.6rem; font-size: 1.15rem; }
.source-item p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* --- Footer --- */
footer { padding: 5rem 0 3rem 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-teal); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .grid-2, .comparison-grid, .timeline-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .timeline-card { border-left: none; border-top: 1px solid var(--accent-teal); padding: 3rem 0; }
    .hero h1 { font-size: 3rem; }
    .section-header-center h2 { font-size: 2.5rem; }
    .hide-mobile { display: none; }
    .section { padding: 4rem 0; }
    .hero { padding: 6rem 0 4rem 0; }
}