/* =========================================================
   NORDPAIR – Hovedstilark
   ========================================================= */

:root {
    --bg-primary: #04060d;
    --bg-secondary: #0a0d1a;
    --bg-card: rgba(15, 19, 32, 0.5);
    --bg-card-hover: rgba(20, 26, 44, 0.6);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    --accent: #5b8cff;
    --accent-glow: rgba(91, 140, 255, 0.5);
    --accent-soft: rgba(91, 140, 255, 0.1);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   BAKGRUNNS-EFFEKTER
   ========================================================= */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.15), transparent),
        linear-gradient(180deg, #04060d 0%, #06091a 50%, #04060d 100%);
    z-index: -3;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(91, 140, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 140, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(91, 140, 255, 0.3);
    top: 10%;
    right: -10%;
    animation: glow-drift 18s ease-in-out infinite;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(60, 100, 200, 0.2);
    bottom: 0;
    left: -10%;
    animation: glow-drift 22s ease-in-out infinite reverse;
}

@keyframes glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding-top: 120px;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 60px;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 80px;
}

.hero__content {
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.hero__title-accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, #5b8cff, #7ba2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 44px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn--primary {
    background: linear-gradient(135deg, #5b8cff, #4170e8);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.5),
        0 8px 32px rgba(91, 140, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7ba2ff, #5b8cff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn--primary > * {
    position: relative;
    z-index: 1;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.6),
        0 12px 40px rgba(91, 140, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* =========================================================
   HERO-BILDE
   – Smelter sømløst inn i bakgrunnen via maske + glød
   ========================================================= */
.hero__visual {
    position: relative;
    animation: fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Stor, myk glød BAK bildet (matcher fargen til hovedbakgrunnen) */
.hero__visual-glow {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(circle at 50% 50%, rgba(91, 140, 255, 0.28), transparent 55%),
        radial-gradient(circle at 30% 70%, rgba(91, 140, 255, 0.18), transparent 50%);
    filter: blur(50px);
    z-index: 0;
    animation: glow-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Wrapper rundt bildet – holder maske + float-animasjon */
.hero__image-wrap {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;

    /* Maske som fader bildet ut mot kantene slik at det ikke ser ut
       som et rektangulært bilde "limt på" bakgrunnen */
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at center,
                                        rgba(0,0,0,1) 50%,
                                        rgba(0,0,0,0.92) 70%,
                                        rgba(0,0,0,0.5) 88%,
                                        rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 88% 82% at center,
                                        rgba(0,0,0,1) 50%,
                                        rgba(0,0,0,0.92) 70%,
                                        rgba(0,0,0,0.5) 88%,
                                        rgba(0,0,0,0) 100%);

    /* Screen blend gjør at mørke områder i bildet smelter sammen
       med den mørke bakgrunnen */
    mix-blend-mode: screen;

    /* Glød som forsterker den blå auraen rundt enhetene */
    filter: drop-shadow(0 30px 60px rgba(91, 140, 255, 0.35));
}

/* =========================================================
   LOGO-BAR
   ========================================================= */
.logo-bar {
    margin: 20px 0 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.logo-bar__inner {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 28px 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.logo-bar__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo-bar__logos {
    display: flex;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.logo-bar__logo {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-bar__logo:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.logo-bar__logo--arkiv {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.logo-bar__logo--momentum {
    font-family: 'Manrope', sans-serif;
    font-style: italic;
    font-weight: 600;
}

.logo-bar__logo--bakeriet {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 2px;
}

.logo-bar__logo--bakeriet small {
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.2em;
}

.logo-bar__logo--flowplan {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-style: italic;
}

.logo-bar__logo--finansiell {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.logo-bar__logo--finansiell svg {
    color: var(--accent);
}

.logo-bar__logo--nordic {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 2px;
}

.logo-bar__logo--nordic small {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* =========================================================
   STATISTIKK-KORT
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 28px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(91, 140, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(91, 140, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(91, 140, 255, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(91, 140, 255, 0.08);
    border: 1px solid rgba(91, 140, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-card__number {
    font-family: 'Manrope', sans-serif;
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stat-card__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.stat-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-tertiary);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* =========================================================
   SCROLL-INDIKATOR
   ========================================================= */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 56px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 300;
    animation: fade-up 1s ease 1s both;
}

.scroll-indicator__mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator__wheel {
    width: 2px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.5; }
    100% { top: 6px; opacity: 1; }
}

/* =========================================================
   SEKSJONER (Tjenester, Prosess osv.)
   ========================================================= */
.section {
    padding: 140px 48px;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, transparent, rgba(91, 140, 255, 0.03), transparent);
}

.section__container {
    max-width: 1400px;
    margin: 0 auto;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section__eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section__title-accent {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, #5b8cff, #7ba2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section__description {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Tjenester-grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(91, 140, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(91, 140, 255, 0.12);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card__number {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.service-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Prosess */
.process {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.process__line {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

.process__step {
    position: relative;
    padding-bottom: 56px;
}

.process__step:last-child {
    padding-bottom: 0;
}

.process__dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15), 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.process__step:hover .process__dot {
    background: var(--accent);
    transform: scale(1.15);
}

.process__label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.process__title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* =========================================================
   SCROLL-AVSLØRING (reveal-animasjoner)
   ========================================================= */
.reveal {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="fade-up"] {
    transform: translateY(40px);
}

.reveal[data-reveal="fade-right"] {
    transform: translateX(-40px);
}

.reveal[data-reveal="fade-left"] {
    transform: translateX(40px);
}

.reveal[data-reveal="zoom-in"] {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* =========================================================
   GRUNNLEGGENDE ANIMASJONER
   ========================================================= */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIV
   ========================================================= */
@media (max-width: 1200px) {
    .hero {
        padding-left: 32px;
        padding-right: 32px;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-bar__logos {
        gap: 36px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .section {
        padding: 100px 32px;
    }
}

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 40px;
    }

    .hero__visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .logo-bar__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .logo-bar__logos {
        justify-content: center;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
    }

    .hero__container {
        padding: 24px 0 48px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .logo-bar__logos {
        gap: 24px;
    }

    .logo-bar__logo {
        font-size: 16px;
    }

    .section {
        padding: 80px 20px;
    }

    .section__header {
        margin-bottom: 50px;
    }
}

/* =========================================================
   TILGJENGELIGHET – respekter prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none !important;
    }
}