/**
 * Domen Hub — Public Landing Page & SEO Stylesheet (Wave 5B)
 * Pure Vanilla CSS consuming Domen Hub Brand Tokens
 */

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

body {
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    background-color: var(--brand-bg, #F6F8FA);
    color: var(--brand-text, #1B2430);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Container & Utilities --- */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header / Navigation --- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-border, #E1E6ED);
    transition: all 0.2s ease;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.landing-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-logo-img {
    height: 32px;
    width: auto;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-text-secondary, #475569);
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--brand-primary, #0B1D33);
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--brand-secondary, #147DF5);
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 125, 245, 0.25);
}

.btn-primary:hover {
    background-color: var(--brand-secondary-hover, #0F6AD3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 125, 245, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFFFFF;
    color: var(--brand-primary, #0B1D33) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--brand-border, #E1E6ED);
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--brand-card-hover, #F8FAFC);
    border-color: #CBD5E1;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 64px 0 48px;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-secondary-light, #EBF4FE);
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-secondary, #147DF5);
    margin-bottom: 24px;
}

.hero-pill i {
    font-size: 11px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--brand-primary, #0B1D33);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto 20px;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #147DF5 0%, #00C896 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--brand-text-secondary, #475569);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

/* --- Interactive Visual Product Demo --- */
.demo-preview-wrap {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(11, 29, 51, 0.08);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.demo-header {
    background: #F8FAFC;
    border-bottom: 1px solid var(--brand-border, #E1E6ED);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #CBD5E1;
}

.demo-title-tab {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-text-muted, #64748B);
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-domain-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr 1.5fr;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s ease;
}

.demo-domain-card:hover {
    border-color: #CBD5E1;
}

.demo-domain-card.is-incident {
    border-left: 4px solid var(--state-danger, #EF4444);
    background: #FFFAF9;
}

.demo-domain-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-primary, #0B1D33);
}

.demo-domain-sub {
    font-size: 11px;
    color: var(--brand-text-muted, #64748B);
    margin-top: 2px;
}

.demo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.demo-status-up {
    background: var(--state-success-bg, #E6F9F4);
    color: var(--state-success-text, #057A5D);
    border: 1px solid var(--state-success-border, #A3ECD9);
}

.demo-status-down {
    background: var(--state-danger-bg, #FEE2E2);
    color: var(--state-danger-text, #991B1B);
    border: 1px solid var(--state-danger-border, #FCA5A5);
}

.demo-metric-label {
    font-size: 11px;
    color: var(--brand-text-muted, #64748B);
}

.demo-metric-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-text, #1B2430);
}

.demo-timeline-mini {
    display: flex;
    gap: 2px;
    height: 16px;
    align-items: center;
}

.demo-timeline-slot {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: var(--state-success, #00C896);
}

.demo-timeline-slot.down {
    background: var(--state-danger, #EF4444);
}

/* --- Section Title --- */
.section-wrap {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-secondary, #147DF5);
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-primary, #0B1D33);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--brand-text-secondary, #475569);
    line-height: 1.6;
}

/* --- Value Pillars Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 29, 51, 0.06);
    border-color: #CBD5E1;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.icon-blue { background: #EBF4FE; color: #147DF5; }
.icon-emerald { background: #E6F9F4; color: #00C896; }
.icon-amber { background: #FEF3C7; color: #D97706; }
.icon-purple { background: #F3E8FF; color: #9333EA; }
.icon-red { background: #FEE2E2; color: #EF4444; }
.icon-cyan { background: #E0F2FE; color: #0284C7; }

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary, #0B1D33);
    margin-bottom: 10px;
}

.feature-card-desc {
    font-size: 14px;
    color: var(--brand-text-secondary, #475569);
    line-height: 1.6;
}

/* --- Trust & Transparency Block --- */
.trust-block {
    background: linear-gradient(135deg, #0B1D33 0%, #162E4E 100%);
    border-radius: 16px;
    padding: 48px;
    color: #FFFFFF;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 48px 0;
}

.trust-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.trust-text {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.trust-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(20, 125, 245, 0.25);
    border: 1px solid #147DF5;
    color: #60A5FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.trust-step-content {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.5;
}

.trust-step-content strong {
    color: #FFFFFF;
}

/* --- Public Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tool-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.tool-card:hover {
    border-color: var(--brand-secondary, #147DF5);
    box-shadow: 0 4px 16px rgba(20, 125, 245, 0.08);
}

.tool-card-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--brand-secondary, #147DF5);
}

.tool-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary, #0B1D33);
    margin-bottom: 6px;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--brand-text-muted, #64748B);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tool-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-secondary, #147DF5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-card-link:hover {
    color: var(--brand-secondary-hover, #0F6AD3);
}

/* --- CTA Bottom Banner --- */
.cta-banner {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin: 48px 0;
    box-shadow: 0 8px 32px rgba(11, 29, 51, 0.04);
}

.cta-banner-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-primary, #0B1D33);
    margin-bottom: 12px;
}

.cta-banner-sub {
    font-size: 16px;
    color: var(--brand-text-secondary, #475569);
    max-width: 580px;
    margin: 0 auto 28px;
}

/* --- Footer --- */
.landing-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--brand-border, #E1E6ED);
    padding: 48px 0 32px;
    font-size: 13px;
    color: var(--brand-text-muted, #64748B);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col-title {
    font-weight: 700;
    color: var(--brand-primary, #0B1D33);
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-list a:hover {
    color: var(--brand-secondary, #147DF5);
}

.footer-bottom {
    border-top: 1px solid #F1F5F9;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* --- 404 Page Styles --- */
.error-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.error-container {
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.error-logo-wrap {
    margin-bottom: 24px;
}

.error-logo-img {
    height: 36px;
}

.error-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border, #E1E6ED);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 12px 36px rgba(11, 29, 51, 0.05);
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    color: var(--brand-secondary, #147DF5);
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--font-mono, monospace);
}

.error-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary, #0B1D33);
    margin-bottom: 12px;
}

.error-desc {
    font-size: 14px;
    color: var(--brand-text-secondary, #475569);
    line-height: 1.6;
    margin-bottom: 28px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.error-quick-tools {
    border-top: 1px solid #F1F5F9;
    padding-top: 20px;
    font-size: 12px;
    color: var(--brand-text-muted, #64748B);
}

.quick-tools-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.quick-tools-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.quick-tools-links a {
    color: var(--brand-secondary, #147DF5);
    font-weight: 500;
}

.quick-tools-links a:hover {
    text-decoration: underline;
}

/* --- Mobile Viewports (768px, 390px, 320px) --- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-block {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
    }
    .hero-title {
        font-size: 36px;
    }
    .demo-domain-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .nav-links-desktop {
        display: none;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
    .demo-body {
        padding: 16px;
    }
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    .footer-links-group {
        gap: 24px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 360px) {
    .landing-container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 24px;
    }
}
