@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hero: #0b1a3b;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-on-dark: #ffffff;
    --text-on-dark-secondary: #cbd5e1;
    --accent: #1a56db;
    --accent-hover: #1244b0;
    --accent-light: #e8eefb;
    --accent-dim: #dbe4f8;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero — deep blue to match CyberConvoy brand */
.hero {
    text-align: center;
    padding: 10rem 2rem 5rem;
    background: linear-gradient(160deg, #0b1a3b 0%, #162d6b 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-on-dark);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-on-dark-secondary);
    margin-bottom: 0.5rem;
}

.org {
    color: var(--text-on-dark-secondary);
    font-size: 1rem;
}

.org strong {
    color: var(--text-on-dark);
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 750px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-dim);
    line-height: 1;
}

.card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.card p {
    font-size: 0.95rem;
}

/* Details / Code */
.details {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.details h3 {
    margin-top: 0;
}

code {
    display: inline-block;
    background: #0b1a3b;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.875rem;
    color: #93c5fd;
    margin: 0.5rem 0 1rem;
    word-break: break-all;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.data-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.data-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.data-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Table */
table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Callout */
.callout {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    max-width: 750px;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Info Grid (scanning scope) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.info-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.info-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.info-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* IP Block / Opt-out */
.ip-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0;
    max-width: 600px;
}

.ip-block h4 {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.ip-block h4:first-child {
    margin-top: 0;
}

.code-block {
    background: #0b1a3b;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.875rem;
    color: #93c5fd;
    white-space: pre-line;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.inline-code {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: var(--accent);
    display: inline;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* Exclusion List */
.exclusion-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    max-width: 750px;
}

.exclusion-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exclusion-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Opt-out Form */
.optout-form {
    max-width: 500px;
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.optout-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.optout-form button:hover {
    background: var(--accent-hover);
}

.optout-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-result.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-result.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    max-width: 750px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

footer p + p {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}
