/* Cyber Investments: site styles */
/* Archivo Black has one inherently heavy face; map it to our display weight. */
@font-face {
    font-family: "Archivo Black";
    src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}
:root {
    --navy: #102B44;
    --navy-2: #183C55;
    --blue: #087F7C;
    --blue-dark: #066563;
    --cyan: #0BA7A2;
    --ink: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-alt: #F5F8FC;
    --success: #047857;
    --error: #B91C1C;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Archivo Black", "Arial Black", Arial, sans-serif;
    --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
/* Heavy display type echoes the CYBER wordmark; reading/UI text keeps --font. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -.025em;
    margin: 0 0 .65em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.125rem; letter-spacing: -.015em; }
h4, h5, h6 { font-size: 1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
    padding: 13px 22px; border-radius: 10px; border: 2px solid var(--blue);
    background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.btn-large { padding: 16px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--muted); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #E4F7F3; border-color: #E4F7F3; color: var(--navy); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 224px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--blue); }
.site-nav ul a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
    .brand img { width: 180px; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav ul a { display: block; padding: 10px 0; border-bottom: 0; }
}

/* Hero */
.hero {
    background:
        radial-gradient(800px 400px at 85% 10%, rgba(11, 167, 162, .22), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(11, 167, 162, .25), transparent 60%),
        var(--navy);
    color: #CBD5E1;
    padding: 96px 0 104px;
    overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #76E4D8; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-graphic { width: 100%; color: #fff; }
.hero-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero-line { animation: none; stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
}
@media (max-width: 860px) {
    .hero { padding: 64px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 380px; }
}

.eyebrow { font-family: var(--font-display); font-size: .78rem; font-weight: 900; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(180deg, var(--bg-alt), #fff);
    border-bottom: 1px solid var(--line);
    padding: 72px 0 56px;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-form { grid-template-columns: 1.4fr .8fr; }
@media (max-width: 860px) {
    .section { padding: 64px 0; }
    .split, .split-form { grid-template-columns: 1fr; gap: 40px; }
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(11, 167, 162, .14), rgba(11, 167, 162, .14));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-placeholder { border-style: dashed; box-shadow: none; background: var(--bg-alt); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--blue-dark); background: #DDF4F0; border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }

/* Lists */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.check-list li { position: relative; padding-left: 40px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.check-list strong { color: var(--ink); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #1E40AF 100%); color: #CBD5E1; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta p { margin: 0; }

/* Prose / legal */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .95rem; }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue); }
@media (max-width: 860px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .toc { position: static; background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; }
}
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

/* Info panel */
.info-panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.info-panel h2 { font-size: 1.3rem; }
.info-panel dl { margin: 0 0 24px; }
.info-panel dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 16px; }
.info-panel dd { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.info-panel dl + .btn { margin-top: 4px; }

/* Forms */
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #CBD5E1; border-radius: 10px; padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 167, 162, .15); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; margin: 6px 0 0; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; border: 1px solid; }
.alert p:last-child { margin: 0; }
.alert h2 { font-size: 1.15rem; margin-bottom: .3em; color: inherit; }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: var(--success); }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: var(--error); }

/* Footer */
.site-footer { background: var(--navy); color: #94A3B8; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 224px; margin-bottom: 20px; }
.footer-heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a, .site-footer .link-button { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 32px; font-size: .85rem; text-align: center; }
.footer-legal p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Cookie banner */
.cookie-banner {
    position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
    max-width: 760px; margin: 0 auto;
    background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { padding: 24px 26px; }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: .4em; }
.cookie-banner p { font-size: .95rem; margin-bottom: 16px; }
.cookie-prefs fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.toggle strong { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 11px 18px; font-size: .95rem; }
.cookie-actions [hidden] { display: none; }
@media (max-width: 600px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
    .cookie-actions .btn { flex: 1 1 45%; }
}

/* Products */
.product-list { display: grid; gap: 96px; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.product-reverse { grid-template-columns: .9fr 1.1fr; }
.product-reverse .product-shot { order: 2; }
.product-shot {
    display: block; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none;
    border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px rgba(15, 23, 42, .12);
    transition: transform .2s, box-shadow .2s;
}
.product-shot:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 32px 60px rgba(15, 23, 42, .16); }
.product-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F5F9; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.browser-bar span { margin-left: 12px; flex: 1; font-size: .78rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; }
.shot-preview {
    aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 16px;
    padding: 8% 9%; color: #fff;
}
.shot-seowebdata { background: radial-gradient(500px 300px at 90% 0%, rgba(96, 165, 250, .5), transparent 60%), linear-gradient(135deg, #1E3FAE, #2456E6); }
.shot-propertygrid { background: radial-gradient(500px 300px at 90% 0%, rgba(45, 212, 191, .45), transparent 60%), linear-gradient(135deg, #115E59, #0F766E); }
.shot-adintel { background: radial-gradient(500px 300px at 90% 0%, rgba(251, 146, 60, .5), transparent 60%), linear-gradient(135deg, #9A3412, #C2410C); }
.shot-salesbase { background: radial-gradient(500px 300px at 90% 0%, rgba(167, 139, 250, .45), transparent 60%), linear-gradient(135deg, #312E81, #4338CA); }
.shot-leadprospector { background: radial-gradient(500px 300px at 90% 0%, rgba(34, 211, 238, .45), transparent 60%), linear-gradient(135deg, #155E75, #0E7490); }
.shot-name { font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: .02em; opacity: .9; }
.shot-headline { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 18em; }
.shot-cta { align-self: flex-start; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; padding: 9px 16px; border-radius: 8px; }
.shot-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.shot-gallery .product-shot { margin: 0; }
.shot-gallery .product-shot:hover { transform: none; }
.shot-gallery figcaption { padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--ink); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .shot-gallery { grid-template-columns: 1fr; } }
.product-copy h3 { font-size: clamp(1.4rem, 2.7vw, 1.85rem); margin-bottom: .3em; }
/* Product logo beside a product title */
.title-with-logo { display: flex; align-items: center; gap: .5em; }
.title-with-logo > span { min-width: 0; overflow-wrap: anywhere; }
.title-with-logo .product-logo { flex: none; width: 1.5em; height: 1.5em; border-radius: 22%; }
.product-copy h3.title-with-logo { margin-bottom: .4em; }
.product-headline { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.check-list-compact { gap: 10px; margin: 24px 0 28px; font-size: .98rem; }
.check-list-compact li { padding-left: 32px; }
.check-list-compact li::before { width: 20px; height: 20px; top: 3px; background-size: 12px; }
@media (max-width: 900px) {
    .product-list { gap: 64px; }
    .product, .product-reverse { grid-template-columns: 1fr; gap: 32px; }
    .product-reverse .product-shot { order: 0; }
}

/* Products dropdown */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-nav {
    display: none; position: absolute; top: 100%; left: -16px; z-index: 20; min-width: 210px; flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: var(--shadow);
}
.site-nav .has-sub:hover .sub-nav, .site-nav .has-sub:focus-within .sub-nav { display: flex; }
.site-nav .sub-nav a { display: block; padding: 9px 12px; border-bottom: 0; border-radius: 6px; white-space: nowrap; }
.site-nav .sub-nav a:hover, .site-nav .sub-nav a[aria-current="page"] { background: var(--bg-alt); }
@media (max-width: 760px) {
    .site-nav .sub-nav { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
    .site-nav .has-sub > a::after { display: none; }
}

/* Product pages */
.product-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.product-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.product-links a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.product-links a:hover { border-color: var(--blue); color: var(--blue); }
