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

/* === Custom properties === */
:root {
    --cyber1: #0056B3;
    --cyber2: #00A0E9;
    --cyber1-light: rgba(0, 86, 179, .08);
    --cyber2-light: rgba(0, 160, 233, .08);
    --bg: #f0f2f5;
    --bg-warm: #f7f8fb;
    --bg-card: #ffffff;
    --text: #374151;
    --text-muted: #5a6370;
    --heading: #0d1b2a;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 4px rgba(0, 56, 179, .06), 0 4px 12px rgba(0, 0, 0, .05);
    --shadow-hover: 0 8px 24px rgba(0, 56, 179, .1), 0 4px 8px rgba(0, 0, 0, .06);
    --shadow-glow: 0 0 20px rgba(0, 86, 179, .12);
    --gradient-brand: linear-gradient(135deg, var(--cyber1), var(--cyber2));
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
}

/* === Matrix background === */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .06;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* === Base === */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyber1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyber2); }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* === Branding === */
.cyber1 { color: var(--cyber1); }
.cyber2 { color: var(--cyber2); }

/* === Header === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 56, 179, .08), 0 1px 4px rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .96);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.logo-img {
    height: 2rem;
    width: auto;
}

/* === Hero === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 6rem 0 3rem;
    background: linear-gradient(170deg, #f7f9fc, #e8eef6, #f0f2f5);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 56, 179, .04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
}
.tagline {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: .04em;
}
.divider {
    width: 4.5rem;
    height: 3px;
    margin: 1.5rem auto;
    background: var(--gradient-brand);
    border-radius: 2px;
}
.subtitle {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 36rem;
    margin: 0 auto .5rem;
}
.subtitle.punch {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.75rem;
}
.cta {
    display: inline-block;
    padding: .85rem 2.25rem;
    background: var(--gradient-brand);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .04em;
    box-shadow: 0 4px 14px rgba(0, 86, 179, .25);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.cta:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 86, 179, .35);
}

/* === Section headers === */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: .5rem;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* === Features === */
.features {
    padding: 5rem 0 6rem;
    background: var(--bg-warm);
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}
.card {
    position: relative;
    background: linear-gradient(180deg, #fff, #f8fafd);
    border: 1px solid var(--border);
    border-left: 4px solid var(--cyber1);
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity .3s;
}
.card:hover {
    box-shadow: var(--shadow-hover), var(--shadow-glow);
    transform: translateY(-4px);
    border-color: var(--cyber2);
}
.card:hover::before {
    opacity: 1;
}
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--cyber1-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--cyber1);
}
.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--cyber1);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card h3 {
    color: var(--heading);
    font-size: 1.15rem;
    margin-bottom: .5rem;
}
.card p {
    font-size: .925rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Waarom CYBERCYBER === */
.waarom {
    padding: 5rem 0;
    background: var(--bg);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.trust-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gradient-brand);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 86, 179, .2);
}
.trust-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trust-item h3 {
    color: var(--heading);
    font-size: 1.05rem;
    margin-bottom: .35rem;
}
.trust-item p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === Onze aanpak === */
.aanpak {
    padding: 5rem 0;
    background: var(--bg-warm);
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    counter-reset: step;
}
.step {
    counter-increment: step;
    background: var(--white);
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}
.step h3 {
    color: var(--heading);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}
.step p {
    font-size: .925rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Compliance frameworks === */
.frameworks {
    padding: 5rem 0;
    background: var(--bg);
}
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.framework-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.framework-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--cyber2);
}
.framework-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyber1);
    margin-bottom: .35rem;
    letter-spacing: .02em;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.framework-item p {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}
.framework-note {
    text-align: center;
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Footer === */
footer {
    margin-top: auto;
    background: var(--heading);
    color: rgba(255, 255, 255, .7);
    border-top: 3px solid transparent;
    border-image: var(--gradient-brand) 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}
.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    margin-top: .75rem;
    color: rgba(255, 255, 255, .55);
}
.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: .75rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: .4rem;
}
.footer-col a {
    color: rgba(255, 255, 255, .6);
    font-size: .875rem;
    transition: color .2s;
}
.footer-col a:hover {
    color: var(--cyber2);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

/* === Animations === */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1,
.hero .tagline,
.hero .divider,
.hero .subtitle,
.hero .cta {
    opacity: 0;
    animation: fade-up .6s var(--ease-out) forwards;
}
.hero .tagline  { animation-delay: .15s; }
.hero .divider  { animation-delay: .3s; }
.hero .subtitle       { animation-delay: .4s; }
.hero .subtitle.punch { animation-delay: .55s; }
.hero .cta            { animation-delay: .7s; }

.card.visible,
.trust-item.visible,
.step.visible,
.framework-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* === Responsive === */
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .framework-grid { grid-template-columns: 1fr; }
    .hero { padding: 5rem 0 3rem; min-height: 70vh; }
    .hero h1 { font-size: 2.5rem; }
}
