/* Palette and type follow the nabu visual identity book 1.0 (Signal, Iskra, Tinta, Papir; Manrope). */
:root {
    --signal: #6138F5;
    --iskra: #E3FA55;
    --tinta: #202021;
    --papir: #F3F0E8;
    --white: #FFFFFF;
    --muted: #5B5A57;
    --line: #D9D5CA;

    --font: 'Manrope', Arial, sans-serif;
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--papir);
    color: var(--tinta);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3rem);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: var(--signal);
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    margin-bottom: 1.25rem;
    color: var(--signal);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow--iskra {
    color: var(--iskra);
}

.lead {
    max-width: 34rem;
    font-size: 1.1875rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    border: 0;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--dark {
    background: var(--tinta);
    color: var(--papir);
}

.button--signal {
    background: var(--signal);
    color: var(--white);
}

.button--iskra {
    background: var(--iskra);
    color: var(--tinta);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--papir);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.site-header__logo img {
    width: 180px;
}

.site-nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--tinta);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--signal);
}

/* Hero */

.hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0 var(--section);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero h1 {
    margin-bottom: 1.75rem;
}

.hero .lead {
    margin-bottom: 2.75rem;
}

.hero__visual {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: var(--tinta);
}

.hero__symbol {
    width: 48%;
}

/* Sections */

.section {
    padding: var(--section) 0;
}

.section h2 {
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.section__intro {
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.1875rem;
}

.section--dark {
    background: var(--tinta);
    color: var(--papir);
}

.section--dark .section__intro {
    color: #C9C6BE;
}

/* Services */

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.service {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: var(--white);
    border-top: 4px solid var(--signal);
    scroll-margin-top: 7rem;
}

.service:nth-child(3),
.service:nth-child(4) {
    border-top-color: var(--iskra);
}

.service h3 {
    margin-bottom: 1rem;
}

.service p:not(.eyebrow) {
    color: var(--muted);
}

.service ul {
    margin: 1.5rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.service li {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.service li + li {
    margin-top: 0.5rem;
}

.service li::before {
    content: '';
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--signal);
    transform: rotate(45deg);
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding-top: 1.5rem;
    border-top: 1px solid #45444A;
}

.steps__number {
    display: block;
    margin-bottom: 1rem;
    color: var(--iskra);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.steps h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.steps p {
    color: #C9C6BE;
}

/* About */

#o-nama {
    scroll-margin-top: 5rem;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.about__text p {
    font-size: 1.1875rem;
}

.about__text p + p {
    margin-top: 1.25rem;
    color: var(--muted);
}

/* Contact */

.contact {
    padding: var(--section) 0;
    background: var(--signal);
    color: var(--white);
    scroll-margin-top: 5rem;
}

.contact__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact p {
    max-width: 36rem;
    font-size: 1.1875rem;
}

.contact .button {
    font-size: 1.125rem;
    overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
    padding: 3rem 0;
    background: var(--tinta);
    color: #C9C6BE;
    font-size: 0.9375rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-footer a {
    color: var(--papir);
}

.site-footer img {
    width: 140px;
}

/* Blog */

.page-intro {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-intro h1 {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.page-intro .lead {
    max-width: 46rem;
    color: var(--muted);
}

.stat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    max-width: 52rem;
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--tinta);
    color: var(--papir);
    border-left: 6px solid var(--iskra);
}

.stat__number {
    color: var(--iskra);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.stat p:not(.stat__number) {
    flex: 1 1 20rem;
    font-size: 0.9875rem;
}

.stat a {
    color: var(--iskra);
    font-weight: 600;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.category-nav a {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--tinta);
    color: var(--tinta);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.category-nav a:hover {
    background: var(--tinta);
    color: var(--papir);
}

.section--tight {
    padding: clamp(2rem, 4vw, 3rem) 0;
    scroll-margin-top: 5rem;
}

.category-title {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

.post-grid--spaced {
    margin: 3rem 0 2.5rem;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border-top: 4px solid var(--signal);
    transition: transform 0.15s ease;
}

.post-card .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.post-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-card h3 a {
    color: var(--tinta);
    text-decoration: none;
}

.post-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card:hover h3 a {
    color: var(--signal);
}

.post-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.9875rem;
}

.post-card .post-card__meta {
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.post {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.post__inner {
    max-width: 52rem;
}

.post__back {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.post__back a {
    text-decoration: none;
}

.post h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 1rem;
}

.post__meta {
    margin-bottom: 2.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.post__body p {
    font-size: 1.1875rem;
    line-height: 1.7;
}

.post__body p + p {
    margin-top: 1.25rem;
}

.post__lesson {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--tinta);
    color: var(--papir);
    border-left: 6px solid var(--iskra);
}

.post__lesson .eyebrow {
    margin-bottom: 0.75rem;
    color: var(--iskra);
}

.post__lesson p:not(.eyebrow) {
    font-size: 1.125rem;
}

.post__source {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9375rem;
}

.post__source a {
    font-weight: 600;
}

/* Phishing training */

.page-intro .button {
    margin-top: 2.5rem;
}

.steps--three {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3rem;
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding: 1rem 0 1rem 2.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    font-weight: 500;
}

.checklist li:first-child {
    padding-top: 0;
}

.checklist li::before {
    content: '';
    position: absolute;
    top: 1.45rem;
    left: 0.25rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--signal);
    transform: rotate(45deg);
}

.checklist li:first-child::before {
    top: 0.45rem;
}

.callout {
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--tinta);
    color: var(--papir);
    border-left: 8px solid var(--iskra);
}

.callout h2 {
    max-width: 44rem;
}

.callout__text {
    max-width: 46rem;
}

.callout__text p {
    color: #C9C6BE;
    font-size: 1.1875rem;
}

.callout__text p + p {
    margin-top: 1.25rem;
}

.callout__text p:last-child {
    color: var(--papir);
    font-weight: 600;
}

.service__link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.service__link:hover {
    text-decoration: underline;
}

.section--dark .button {
    margin-top: 3.5rem;
}

/* Responsive */

@media (max-width: 960px) {
    .site-nav {
        display: none;
    }

    .site-header__inner {
        justify-content: space-between;
    }

    .hero__inner,
    .about {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        aspect-ratio: 16 / 10;
    }

    .hero__symbol {
        width: auto;
        height: 62%;
    }

    .steps,
    .steps--three,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header__logo img {
        width: 132px;
    }

    .button--dark {
        padding: 0.7rem 1.25rem;
    }

    .services,
    .steps,
    .steps--three,
    .post-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .post-card {
        transition: none;
    }
}
