/* =============================================
   ICSN & M5GOV - CLEAN START v13.0.2
   Improved Subtitle Line-Height for Better Flow
   WHITE TEXT ON DARK BACKGROUNDS RULE ENFORCED
   ============================================= */

/* LIGHT SECTIONS - BLACK TEXT */
.section-light {
    background: #F9FAFB;
    padding: 72px 0;
}

.section-light * {
    color: #000000;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light p,
.section-light li,
.section-light span,
.section-light strong {
    color: #000000;
}

/* DARK SECTIONS - WHITE TEXT */
.section-principles {
    background: linear-gradient(135deg, #1A2332 0%, #2A3442 100%);
    padding: 72px 0;
}

.section-principles * {
    color: #FFFFFF;
}

.section-principles h1,
.section-principles h2,
.section-principles h3,
.section-principles h4,
.section-principles p,
.section-principles li {
    color: #FFFFFF;
}

/* Hero */
.hero-icsn {
    background: linear-gradient(135deg, #1A2332 0%, #2A3442 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content-icsn {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content-icsn h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.hero-content-icsn .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.version-badge,
.status-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.version-badge {
    background: rgba(201, 168, 84, 0.15);
    color: #C9A854;
    border: 1px solid rgba(201, 168, 84, 0.3);
}

.status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Section Headers */
.text-center-section {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    color: #C9A854;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    color: #1A2332;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title-white {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #6B7280;
    font-size: 1.125rem;
    max-width: 800px !important;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    padding: 0 2rem;
    display: block;
}

.section-subtitle-white {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 800px !important;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    padding: 0 2rem;
    display: block;
}

/* Grids */
.principles-grid,
.design-principles-grid,
.monetary-grid,
.sbaas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* Cards on Light Background */
.principle-card,
.monetary-card,
.sbaas-feature,
.arch-layer {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
}

.principle-card h3,
.monetary-card h3,
.sbaas-feature h3,
.arch-layer h3 {
    color: #1A2332;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.principle-card p,
.monetary-card p,
.sbaas-feature p,
.arch-layer p,
.arch-layer li {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}
}

/* Cards on Dark Background */
.design-principle-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.design-principle-item h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.design-principle-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary-icsn {
    display: inline-block;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.btn-secondary-icsn {
    display: inline-block;
    background: transparent;
    color: #C9A854;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid #C9A854;
    font-weight: 700;
    text-decoration: none;
}

/* Code */
code,
.chain-badge {
    color: #00BCD4;
    font-family: 'Courier New', monospace;
}

/* NYCP Structure */
.nycp-foundation,
.nycp-structure {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.nycp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.nycp-card h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-list-white {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-white li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.feature-list-white li::before {
    content: '→';
    color: #00BCD4;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.feature-list-white li strong {
    color: #FFFFFF;
    font-weight: 600;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    font-size: 0.875rem;
    font-weight: 800;
    border-radius: 8px;
    flex-shrink: 0;
}

.step-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.nycp-launch {
    margin-top: 48px;
    text-align: center;
    background: linear-gradient(135deg, rgba(201, 168, 84, 0.1), rgba(212, 183, 106, 0.1));
    border: 1px solid rgba(201, 168, 84, 0.3);
    border-radius: 16px;
    padding: 32px;
}

.launch-badge {
    display: inline-block;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.nycp-launch h3 {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.nycp-launch p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.nycp-launch code {
    background: rgba(0, 188, 212, 0.15);
    color: #00BCD4;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Pilot Timeline */
.pilot-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.pilot-phase {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.phase-badge {
    display: inline-block;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pilot-phase h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.phase-chains {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.active-chain,
.reserved-chain {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.active-chain {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.reserved-chain {
    background: rgba(0, 188, 212, 0.15);
    color: #00BCD4;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.pilot-phase p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Chain Registry */
.registry-section {
    margin-bottom: 48px;
}

.registry-section h3 {
    color: #1A2332;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.chain-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chain-item {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chain-item.active {
    border-left: 4px solid #10B981;
}

.chain-item.reserved {
    border-left: 4px solid #00BCD4;
}

.chain-item.launch {
    border-left: 4px solid #C9A854;
}

.chain-item strong {
    color: #1A2332;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.chain-meta {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Intelligent Ledger Section */
.intelligent-ledger-section {
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intelligent-ledger-section h3 {
    color: #1A2332;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
}

.ledger-intro {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.ledger-architecture {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.ledger-layer {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #C9A854;
    border-radius: 12px;
    padding: 24px 32px;
}

.ledger-layer h4 {
    color: #1A2332;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ledger-layer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ledger-layer li {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.ledger-layer li::before {
    content: '→';
    color: #C9A854;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.ledger-layer li strong {
    color: #1A2332;
    font-weight: 600;
}

.ledger-flow {
    background: linear-gradient(135deg, rgba(201, 168, 84, 0.05), rgba(212, 183, 106, 0.05));
    border: 1px solid rgba(201, 168, 84, 0.2);
    border-radius: 16px;
    padding: 32px;
}

.ledger-flow h4 {
    color: #1A2332;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.flow-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.flow-step-item .flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C9A854, #d4b76a);
    color: #1A2332;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 10px;
    flex-shrink: 0;
}

.flow-content {
    flex: 1;
}

.flow-content strong {
    display: block;
    color: #1A2332;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-content p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Technical Note Block */
.tech-note {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(124, 77, 255, 0.05));
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.tech-note h4 {
    color: #1A2332;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.tech-note .code-block {
    background: #1A2332;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.tech-note .code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #FFFFFF !important;
}

.tech-note .code-block code {
    color: #FFFFFF !important;
}

/* TCID Styling - Bold Blue */
code.tcid-code,
.tcid-code {
    color: #00BCD4 !important;
    font-weight: 900 !important;
    font-size: 1.15em !important;
}

.tcid-breakdown strong {
    color: #00BCD4 !important;
    font-weight: 900 !important;
}

/* Make all TCID references in code blocks bold and blue */
.code-block code span[style*="color: #00BCD4"] {
    font-weight: 900 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .principles-grid,
    .design-principles-grid,
    .monetary-grid,
    .sbaas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content-icsn h1 {
        font-size: 2.5rem;
    }
    
    .principles-grid,
    .design-principles-grid,
    .monetary-grid,
    .sbaas-grid {
        grid-template-columns: 1fr;
    }
}
