:root {
    --bg: #050712;
    --bg-alt: #0b1020;
    --bg-accent: #11182b;
    --card-bg: #151b2c;
    --border-subtle: #252c3f;
    --primary: #4cc2ff;
    --primary-soft: rgba(76, 194, 255, 0.16);
    --text-main: #f5f7ff;
    --text-muted: #a4acc4;
    --accent-good: #5ee6a8;
    --danger: #ff6978;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #18243f 0, #050712 40%, #03040a 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(5, 7, 18, 0.96), rgba(5, 7, 18, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 1rem;
}

.logo-tagline {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.main-nav a {
    margin-left: 1.25rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    transition: all 0.18s ease-out;
}

/* Hover: light, subtle */
.main-nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* Active: your soft blue pill */
.main-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    border: 1px solid rgba(76, 194, 255, 0.4);
    text-decoration: none;
    font-weight: 600;
}



/* Hero */
.hero {
    padding: 3.5rem 0 2.75rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin: 0 0 0.75rem;
}

.hero-text p {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-panel {
    background: radial-gradient(circle at top left, #27375f 0, #101526 40%, #050712 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(94, 230, 168, 0.12);
    color: var(--accent-good);
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-panel h2 {
    font-size: 1.1rem;
    margin: 0 0 0.6rem;
}

.hero-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-panel li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.15rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.hero-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
}

/* Sections */
.section {
    padding: 2.5rem 0;
}

.section-accent {
    background: radial-gradient(circle at top, #171f3a 0, #060814 40%, #02030a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.three-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

.card h3,
.card h2 {
    margin-top: 0;
}

/* Lists */
.check-list,
.service-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.check-list li,
.service-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-good);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0.17rem;
    top: 0;
    font-size: 1rem;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease-out;
    border: 1px solid transparent;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), #7be0ff);
    color: #021019;
    box-shadow: 0 12px 30px rgba(76, 194, 255, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(76, 194, 255, 0.55);
}

.btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-main);
}

.btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
}

/* Page hero */
.page-hero {
    padding: 2.4rem 0 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-hero h1 {
    margin: 0 0 0.5rem;
}

.page-hero p {
    max-width: 36rem;
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    align-items: flex-start;
}

.contact-line {
    margin: 0.5rem 0 0.75rem;
}

.note {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Callout */
.callout {
    text-align: center;
    max-width: 40rem;
}

.callout p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.4rem 0 1.2rem;
    background: #040613;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    margin-right: 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .three-cols {
        grid-template-columns: minmax(0, 1fr);
    }
    .two-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .main-nav {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        gap: 0.25rem;
        flex-wrap: wrap;
    }

main a:hover {
    text-decoration: underline;
}

.main-nav a:active,
.main-nav a:focus {
    background-color: #2b3a4a; /* same as your normal nav hover color */
    color: #ffffff;
    outline: none;
}


/* Mini tool box inside service cards */
.mini-scan-box {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-scan-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.mini-scan-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.mini-scan-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mini-scan-row input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.9rem;
}

.mini-scan-row input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mini-scan-row input:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 1px rgba(76,194,255,0.35);
}

.mini-scan-button {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease-out;
}

.mini-scan-button:hover {
    filter: brightness(1.05);
}

.mini-scan-result {
    margin-top: 0.75rem;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(76,194,255,0.4);
    font-size: 0.85rem;
}

.mini-scan-result strong {
    color: var(--primary-soft);
}

.mini-scan-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.mini-scan-result .pw-label {
    color: #ffffff;
    font-weight: 700;
}

/* Default: strong text in result stays white */
.mini-scan-result strong {
    color: #ffffff;
    font-weight: 700;
}

/* Override: "Warning:" and "Suggestions:" should be red */
.mini-scan-result .pw-warn,
.mini-scan-result .pw-suggest {
    color: #ff4d4d !important;  /* bright red */
    font-weight: 700;
}

/* Wrapper to control width on desktop */
.drc-incident-wrapper {
    width: 100%;
    max-width: 720px;       /* adjust tighter/wider as you like */
    margin: 30px auto;
    padding: 0 16px;        /* nice side padding on mobile */
}

/* Incident card styling */
.drc-card.drc-incident-card {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.drc-card.drc-incident-card h2 {
    color: #3b82f6;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 6px;
}

.drc-card.drc-incident-card .tagline {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

/* Incident list */
.drc-incident-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Incident title buttons */
.drc-incident-toggle {
    width: 100%;
    text-align: left;
    background: #0b1220;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.drc-incident-toggle:hover {
    background: #111827;
    border-color: #3b82f6;
}

.drc-incident-toggle.active {
    background: #1d293b;
    border-color: #3b82f6;
    color: #bfdbfe;
}

/* Incident body (summary) */
.drc-card.drc-incident-card .drc-incident-body {
    display: none !important;          /* force hidden by default */
    padding: 10px 12px 14px 12px;
    border-left: 2px solid #1f2937;
    margin-bottom: 4px;
    background: #020617;
    border-radius: 0 0 8px 8px;
}

.drc-card.drc-incident-card .drc-incident-body.open {
    display: block !important;         /* only open when JS adds .open */
}

.drc-card.drc-incident-card .drc-incident-body p {
    margin-bottom: 8px;
    line-height: 1.55;
}

/* Keep the password analyzer card tight and centered */
.pw-wrapper {
    width: 100%;
    max-width: 600px;   /* adjust to taste: 550–700px */
    margin: 0 auto;     /* center inside .container */
}

/* Make sure the card doesn't try to grow past its wrapper */
.pw-card {
    width: 100%;
    margin: 0 auto;
}
