img {
    max-width: 100%;
}

/* ===== Base ===== */
.page-container{
    max-width:1100px;
    margin:80px auto;
    padding:0 40px;
}

.page-title{
    font-size:34px;
    margin-bottom:10px;
}

.page-desc{
    color:#6b7280;
    margin-bottom:40px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.contact-card{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:24px;
    transition:all .2s ease;
}

.contact-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.founder-divider{
    border:none;
    border-top:1px solid #e5e7eb;
    margin:12px 0;
}

.contact-icon{
    width:48px;
    height:48px;
    background:#f1f5f9;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
}

.contact-icon svg{
    width:24px;
    height:24px;
    stroke:#2563eb;
}

.contact-card h3{
    margin-bottom:6px;
}

.contact-card a{
    color:#2563eb;
    text-decoration:none;
}

.docs-list{
    margin:15px 0 30px 0;
    padding-left:20px;
}

.docs-list li{
    margin-bottom:8px;
}

.page-container h2{
    margin-top:40px;
}

.header {
    display: flex;
    align-items: center;   /* vertically centers text with logo */
    gap: 16px;
}

.header-text h1 {
    margin: 0;
    margin-top: 8px;   /* pushes title slightly down */
    font-size: 32px;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    margin: 0;
    color: #111827;
}

body > * {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

//* ===== Topbar ===== */

body {
    font-family: 'Inter', sans-serif;
}

.topbar {
    padding: 16px 40px;
    border-bottom: 1px solid #e5e7eb;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area img {
    height: 60px;
}


/* Menu on right */
.menu {
    display: flex;
}

.menu a {
    margin-left: 26px;
    text-decoration: none;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.menu a:hover {
    color: #2563eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    background: hwb(0 98% 2%)00% 0%;
}
.hero-inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 70px;   /* increase side spacing */

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-formats {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

.hero-right img{
    width:620px;
    max-width:100%;
}


.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-left {
    flex: 1;
    max-width: 520px;
}

.hero h1 {
    font-size: 42px;
    color: #111827;
}

.hero-desc {
    margin-top: 12px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom:18px;
    font-size:18px;
}

.hero-buttons{
    margin-top:22px;
}

/* primary */

.hero-security{
    margin-top:18px;
    font-size:14px;
    color:#6b7280;
    background: hwb(0 98% 2%)00% 0%;
    border-radius:0;
    display:inline-block;
}

.features{
    max-width:1200px;
    margin:60px auto;
    padding:0 40px;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.feature{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:12px;

    padding:26px;

    transition:all 0.25s ease;

    box-shadow:0 1px 2px rgba(0,0,0,0.04);
}

.feature:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.feature strong{
    display:block;
    margin-bottom:8px;
    font-size:16px;
}

.feature p{
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
}

.feature-icon{
    width:54px;
    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f1f5f9;
    border-radius:12px;

    margin-bottom:14px;
}

.feature-icon svg{
    width:26px;
    height:26px;
    color:#2563eb;
}

.feature:hover .feature-icon{
    background:#e0f2fe;
}

html{
    scroll-behavior:smooth;
}

#validate,
#tls{
    scroll-margin-top:90px;
}

.panel:target{
    outline:2px solid #2563eb;
    border-radius:10px;
}

.features-title{
    max-width:1200px;
    margin:70px auto 30px auto;
    padding:0 40px;

    font-size:28px;
    font-weight:600;
}

.btn{
    display:inline-block;
    padding:12px 20px;
    font-size:14px;
    font-weight:500;
    border-radius:8px;
    text-decoration:none;
    margin-right:12px;
}

.btn-primary{
    background:#2563eb;
    color:white;
}

.btn-primary:hover{
    background:#1d4ed8;
}

.btn-secondary{
    background:#e5e7eb;
    color:#111827;
}

.btn-secondary:hover{
    background:#d1d5db;
}

.hero-buttons{
    margin-top:22px;
}

/* Text block next to logo */
.brand-text {
    margin-left: 22px;
}


.menu a.active {
    color: #1d4ed8;
    font-weight: 600;
}

/* Main headline */
.brand-tagline {
    font-size: 20px;
    font-weight: 500;
    color: #1f2937;
}

/* Highlighted words */
.brand-tagline strong {
    font-weight: 700;
    color: #111827;
}

/* Supported formats line */
.brand-formats {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
}






.alias-chain {
    margin-top: 10px;
    margin-bottom: 12px;
}

.alias-title {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.example-domains {
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 14px;
    color: #666;
}

.example-domains span {
    margin-right: 10px;
    cursor: pointer;
    color: #2563eb;
}

.example-domains span:hover {
    text-decoration: underline;
}

.scan-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 10px;
    margin: 15px auto 25px auto;
}

.scan-info {
    font-size: 13px;
    color: #374151;
}

.scan-label {
    font-weight: 600;
    color: #6b7280;
    margin-right: 6px;
}

.scan-value {
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.scan-divider {
    margin: 0 8px;
    color: #9ca3af;
}

.scan-time {
    color: #6b7280;
}


/* ===== Cards ===== */

.card {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.card h2, .card h3 {
    margin-top: 0;
}

/* ===== Dashboard Grid ===== */

.dashboard {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel .card {
    width: 100%;
}



/* ===== Buttons ===== */

button {
    background: #1E3A8A;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background: #1e40af;
}

/* ===== Risk Banner ===== */

.risk-banner {
    background: #fdf2f2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 20px auto;
}

.risk-title {
    font-size: 28px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 8px;
}

.risk-badge {
    margin-left: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.risk-low {
    background: #e6f7e6;
    color: #1e7e34;
}

.risk-medium {
    background: #fff4e5;
    color: #d39e00;
}

.risk-high {
    background: #ffe6e6;
    color: #c82333;
}

.score-label {
    font-size: 16px;
    color: #374151;
    margin-bottom: 10px;
}

.score-bar {
    width: 100%;
    max-width: 500px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 6px;
    margin: auto;
    overflow: hidden;
}

.score-fill {
    height: 10px;
    background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
    border-radius: 6px;
}

.risk-banner.low {
    background: #ecfdf5;
    color: #065f46;
}

.risk-banner.medium {
    background: #fffbeb;
    color: #92400e;
}

.risk-banner.high {
    background: #fef2f2;
    color: #991b1b;
}

.risk-banner.critical {
    background: #fee2e2;
    color: #7f1d1d;
}


.cert-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cert-table th {
    text-align: left;
    padding: 8px;
    background: #f5f5f5;
}

.cert-table td {
    padding: 8px;
    border-top: 1px solid #e5e5e5;
}

.cert-table tr:hover {
    background: #fafafa;
}

/* ===== Chain ===== */

.chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.chain .node {
    min-width: 140px;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-size: 13px;
    font-weight: 600;
}

.node-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.node-label {
    font-size: 12px;
    font-weight: 600;
}

.node-cn {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.node br {
    margin-bottom: 4px;
}

.arrow {
    font-size: 22px;
    color: #9ca3af;
    margin: 0 4px;
}

/* ===== Status ===== */

.ok {
    color: #059669;
    font-weight: 600;
}

.err {
    color: #dc2626;
    font-weight: 600;
}
.err {
    margin-top: 10px;
    padding: 6px 0;
}

.business-impact {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
}

.business-impact h3 {
    color: #92400e;
}

.business-impact.secure {
    background: #ecfdf5;
    border-left: 5px solid #10b981;
}
.explanation-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.explanation-box.CRITICAL {
    border-left: 6px solid #dc2626;
    background: #fff5f5;
}
.explanation-box.HIGH { border-left: 5px solid #e67e22; }
.explanation-box.MEDIUM { border-left: 5px solid #f1c40f; }
.explanation-box.OK { border-left: 5px solid #27ae60; }

.explanation-box pre {
    white-space: pre-wrap;
    font-family: inherit;
}

/* ===== Lists ===== */

ul {
    padding-left: 18px;
    margin: 0;
}

li {
    margin-bottom: 6px;
}

/* ===== Explanation Box ===== */

.explanation-box {
    background: #f3f4f6;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
}

.scan-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.risk-banner {
    margin: 30px auto;
    padding: 28px;
    border-radius: 20px;
    max-width: 850px;
}
.card {
    padding: 18px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-area {
    padding-right: 20px;
}

.actions {
    display: flex;
    gap: 16px;
}

.actions form {
    margin: 0;
}

.actions button {
    background: #eef2ff;
    color: #1E3A8A;
    border: 1px solid #c7d2fe;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;   /* prevents height issue */
}

.actions button:hover {
    background: #e0e7ff;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.err {
    margin-top: 10px;
}

.risk-banner.secure {
    background-color: #e6f9ed;
    color: #1e7e34;
}

.info-card {
    margin-top: 20px;
    background: #f9fbff;
    border: 1px solid #e0e7ff;
}

.subtle-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.card {
    margin-bottom: 25px;
}

.node-ok {
    border: 2px solid #16a34a;
    background: #ecfdf5;
}

.node-error {
    border: 2px solid #dc2626;
    background: #fee2e2;
}

.node-warning {
    border: 2px solid #f0ad4e;
    background: #fff8e5;
}


.section-title {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 22px;
}

.input-panels {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    margin-top: 10px;
}

.upload-card {
    flex: 2;
}

.scan-card {
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid #e3e3e3;
}

.panel-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.scan-features {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
    padding-left: 18px;
}

.scan-features li {
    margin-bottom: 5px;
}   

.section-sub {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {

    .input-panels {
        flex-direction: column;
    }

    .scan-card {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e3e3e3;
        padding-top: 20px;
    }

}

/* ===== Footer ===== */

.footer {
    margin: 50px 0 30px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}