:root {
    --bg-color: #020617;
    /* Midnight Slate - Professional & Deep */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-serif: 'Instrument Serif', serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

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

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Force visible text in mobile menu */
.mobile-nav-overlay .portal-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 600;
    min-height: 50px;
}

.mobile-nav-overlay .portal-cta span {
    display: inline-block;
    color: #000000 !important;
    z-index: 10;
}

/* --- Scroll Margins (Custom Offsets) --- */

/* Hero & Process */
#startettarende,
#processen {
    scroll-margin-top: -100px;
}

/* Services */
#tjanster {
    scroll-margin-top: -100px;
}

/* About Us */
#om-oss {
    scroll-margin-top: -50px;
}

/* Contact (Deep scroll to form) */
#kontakt {
    scroll-margin-top: -100px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* 4K Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    /* Subtle noise */
    opacity: 0.03;
    z-index: 1000;
    pointer-events: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Background Glows */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow-top {
    position: absolute;
    top: -5%;
    left: 15%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    filter: blur(60px);
    /* Sharper than before */
}

.glow-bottom {
    position: absolute;
    bottom: -5%;
    right: 5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    filter: blur(80px);
    /* Sharper than before */
}

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1001;
    /* Above stardust overlay */
    mix-blend-mode: screen;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

/* Stealth Mode - Follows but invisible */
/* Permanent Sticky Pill Mode (No Stealth) */
.navbar.scrolled {
    padding: 0.8rem 0;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    display: flex;
    justify-content: center;
}

.navbar.scrolled .container {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    padding: 0.6rem 2.5rem;
    width: auto;
    min-width: 720px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    /* Float effect */
    transform: translateY(15px);
}

/* Hover effect for the pill */
.navbar.scrolled .container:hover {
    transform: translateY(15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Smart Scroll: Hide when scrolling down */
.navbar.scrolled.nav-hidden {
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    /* Increased from 2.5rem for more breathing room */
    align-items: center;
}

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

@media (hover: hover) {
    .nav-menu a:hover {
        color: #fff;
    }
}

/* Mobile Nav & Utilities */
.mobile-only {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-links a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-serif);
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 968px) {

    .nav-menu,
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    /* Reduced from 0.6/1.2 */
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.8rem;
    /* Reduced from 0.85 */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
}

/* Hero 1 Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.hero p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 1.1rem 2.4rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
    }
}

.btn-text {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .btn-text:hover {
        border-bottom-color: #fff;
    }
}

/* Premium Floating Cards Visual */
.premium-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
}

.floating-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: float 6s ease-in-out infinite;
    width: fit-content;
}

.floating-card.c1 {
    align-self: flex-start;
    animation-delay: 0s;
}

.floating-card.c2 {
    align-self: center;
    animation-delay: -2s;
    margin-left: 2rem;
}

.floating-card.c3 {
    align-self: flex-end;
    animation-delay: -4s;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card-icon-box.blue {
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.card-icon-box.green {
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.card-icon-box.orange {
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bar-sm {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.card-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-label.blue {
    color: #3b82f6;
}

.card-label.green {
    color: #10b981;
}

.card-label.orange {
    color: #f59e0b;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg);
    }

    50% {
        transform: translateY(-15px) rotateX(-2deg);
    }
}

@media (hover: hover) {
    .floating-card:hover {
        transform: scale(1.05) translateY(-5px);
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(15, 23, 42, 0.95);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        z-index: 10;
    }
}

/* Hero 2 (Contact Section) */
.hero-2 {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.hero-2 p {
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 520px;
}

.checklist {
    list-style: none;
    margin-top: 3.5rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 500;
}

.checklist li svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    flex-shrink: 0;
}

/* Form Card */
.form-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    padding: 2rem 2rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.form-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: #fff;
}

.form-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group textarea,
.form-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group textarea:focus,
.form-row input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

@media (hover: hover) {
    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
        filter: brightness(1.1);
    }
}

.form-footer {
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>*,
.contact-content>*,
.form-card,
.mockup-card,
.service-card,
.process-item,
.about-content>*,
.bio-card {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-content {
    animation-delay: 0.1s;
}

.mockup-card {
    animation-delay: 0.2s;
}

.contact-content {
    animation-delay: 0.1s;
}

.form-card {
    animation-delay: 0.2s;
}

/* Mobile optimization */
@media (max-width: 968px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Fixed Mobile Header - DISABLED (User requested static) */
    /* Mobile Header - Smart Scroll Enabled */
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 1.5rem 0;
    }

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(20px);
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Smart Scroll Hidden State */
    .navbar.scrolled.nav-hidden {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .navbar .container {
        padding: 0 1.5rem;
        /* Ensure padding exists */
    }

    /* Reset Desktop Pill Styles for Mobile */
    .navbar.scrolled .container {
        min-width: 0;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 1.5rem;
        transform: none;
    }

    .navbar.scrolled .container:hover {
        transform: none;
        box-shadow: none;
    }

    .hero,
    .services,
    .about,
    .process,
    .hero-2 {
        min-height: auto;
        padding: 6rem 0;
    }

    .hero {
        padding-bottom: 2rem;
        /* Drastically reduced */
        margin-bottom: 0;
        padding-top: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .badge {
        display: inline-block;
        margin-bottom: 1.5rem;
        align-self: center;
    }

    .btn-text {
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.8rem 1.5rem;
        border-radius: 99px;
        margin-top: 0.5rem;
    }

    .services {
        margin-top: 0;
        padding-top: 2rem;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero p,
    .hero-2 p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .checklist li {
        justify-content: center;
    }

    .hero-visual,
    .contact-visual {
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .premium-visual {
        display: none !important;
        /* Hide cards on mobile per user request */
    }

    /* Floating card styles removed for mobile as container is hidden */

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card h3,
    .form-desc {
        text-align: center;
    }

    .container {
        padding: 0 1.25rem;
        /* Padding-right removed to fix overflow */
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* Sections Common */
/* Sections Common */
/* scroll-margin-top removed */


.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Services Section */
.services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Process Section */
.process {
    padding: 8rem 0;
}

.process-list {
    max-width: 900px;
    margin: 5rem auto 0;
    position: relative;
}

.process-list::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.2) 20%, rgba(59, 130, 246, 0.2) 80%, transparent);
}

.process-item {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.process-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #0f172a;
    /* Sharp Midnight Navy */
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #fff;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.process-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    flex-grow: 1;
    cursor: default;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .process-card:hover {
        border-color: rgba(59, 130, 246, 0.3);
        background: rgba(30, 41, 59, 0.6);
    }
}

.process-card h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.process-card p {
    color: #94a3b8;
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-card-container {
    display: flex;
    justify-content: center;
}

.trust-hub-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-hub-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.trust-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.trust-hub-card .card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.zark-badge {
    position: relative;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.zark-badge svg {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    border-radius: 16px;
    opacity: 0.2;
    filter: blur(8px);
    z-index: 1;
}

.trust-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.badge-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
}

.trust-status {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
}

.commitment-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon svg {
    width: 16px;
    height: 16px;
}

.item-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.item-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.item-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
}

.item-text {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.item-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.card-footer-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-stat {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-dot.active {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
    animation: pulse 2s infinite;
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.faq-item summary {
    list-style: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item summary span::before,
.faq-item summary span::after {
    content: '';
    position: absolute;
    background: var(--accent-blue);
    transition: all 0.3s ease;
}

.faq-item summary span::before {
    width: 12px;
    height: 2px;
}

.faq-item summary span::after {
    width: 2px;
    height: 12px;
}

.faq-item[open] summary span::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-content {
    padding-top: 1.5rem;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 5rem;
    padding-bottom: 3rem;
    align-items: start;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 360px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-socials a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
}

.link-group h4 {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
}

.link-group a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #fff;
}

.muted-small {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 2rem;
}

.footer-bottom {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.8rem;
    text-align: center;
}

/* Animations (Global) */
.hero-content>*,
.contact-content>*,
.form-card,
.mockup-card,
.service-card,
.process-item,
.about-content>*,
.bio-card {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.services .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.services .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.services .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.process-item:nth-child(1) {
    animation-delay: 0.1s;
}

.process-item:nth-child(2) {
    animation-delay: 0.2s;
}

.process-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 968px) {

    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 4rem 0 2rem;
        overflow-x: hidden;
        /* Prevent overflow */
    }

    .footer p,
    .footer a {
        word-break: break-word;
        /* Prevent text from sticking out */
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-left: 0;
        text-align: left;
    }

    .process-item {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .process-list::before {
        display: none;
        /* Hide vertical line on mobile */
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        order: 1;
    }

    .about-card-container {
        order: 2;
        padding: 0 1rem;
    }

    /* 4. Global Section Spacing Reduction */
    .services,
    .about,
    .process,
    .hero-2 {
        padding: 4rem 0 !important;
        /* Reduced from 6rem/8rem */
    }

    /* 5. Service Cards Compactness */
    .service-card {
        padding: 2rem !important;
        /* Reduced from 3rem */
        border-radius: 20px !important;
        height: auto;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* 6. Process Section Optimization */
    .process-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .process-card {
        padding: 2rem !important;
        border-radius: 20px !important;
    }

    .process-card h3 {
        font-size: 1.6rem;
    }

    /* 7. FAQ Compactness */
    .faq-list {
        margin-top: 3rem;
        gap: 1rem;
    }

    .faq-item {
        padding: 1.2rem 1.5rem !important;
    }

    .faq-item summary {
        font-size: 1rem;
        gap: 1rem;
    }

    /* 8. Contact Form Optimization */
    .contact-grid {
        gap: 3rem;
    }

    .form-card {
        padding: 2rem 1.5rem !important;
        border-radius: 24px !important;
    }

    .form-card h3 {
        font-size: 1.8rem;
    }

    .form-group textarea,
    .form-row input {
        padding: 0.9rem 1rem !important;
        font-size: 16px !important;
        /* Prevent zoom */
    }

    /* 9. Footer Compactness */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        gap: 3rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 columns */
        gap: 2rem 1rem;
        /* Tighter gap */
        text-align: center;
        /* Center links */
    }

    .link-group h4 {
        font-size: 0.8rem;
    }
}

/* Glass Shine Effect */
.service-card,
.process-card,
.trust-hub-card,
.form-card,
.faq-item {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.process-card::after,
.trust-hub-card::after,
.form-card::after,
.faq-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    /* Start further out */
    width: 20%;
    /* Wider for more flash impact */
    height: 200%;
    background: linear-gradient(to right,
            transparent 0%,
            var(--accent-blue) 40%,
            #fff 50%,
            /* White core for lightning effect */
            var(--accent-blue) 60%,
            transparent 100%);
    transform: rotate(35deg);
    transition: 0s;
    pointer-events: none;
    opacity: 0;
    filter: blur(2px) brightness(2);
    /* Intense glow */
}

.service-card:hover::after,
.process-card:hover::after,
.trust-hub-card:hover::after,
.form-card:hover::after,
.faq-item:hover::after {
    left: 120%;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mobile Optimization --- */
@media (max-width: 968px) {

    /* 1. Scroll Margins */
    /* Standard Sections: Keep title visible */
    #startettarende,
    #processen,
    #tjanster,
    #om-oss,
    #kontakt {
        scroll-margin-top: -100px;
        /* Standardized to clear header */
    }

    /* 2. Fix Messy Hero Visuals */
    .premium-visual {
        height: auto;
        /* Allow flexible height */
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
        transform: scale(0.95);
        /* Slight scale down */
    }

    .floating-card {
        /* Reset absolute positioning behavior */
        align-self: center !important;
        margin-left: 0 !important;
        /* Smaller cards */
        width: 100%;
        max-width: 340px;
        padding: 1rem;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        animation: none;
        /* Disable floating animation on mobile to reduce messiness */
    }

    .floating-card .card-icon-box {
        width: 40px;
        height: 40px;
    }

    .floating-card .card-label {
        font-size: 1rem;
    }


    /* 3. Typography & Spacing */
    .hero {
        padding-top: 100px;
        /* Compact top padding */
        padding-bottom: 2rem;
        min-height: auto;
        text-align: center;
        /* Enforce centering */
    }

    /* Prevent iOS zoom on inputs */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .hero-grid {
        gap: 2rem;
        /* Reduced from 3rem */
    }

    .hero h1 {
        font-size: 2rem;
        /* slightly smaller for better fit */
        margin-bottom: 1rem;
        line-height: 1.1;
        /* Compact line height */
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        /* Reduced from 2rem */
        padding: 0 0.5rem;
    }

    .hero-actions {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-text {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .hero-actions .btn-text {
        margin-top: 0;
        /* Remove top margin to control with gap */
    }

}

/* --- Message View Improvements --- */
.clean-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
}

.clean-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.label-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.cookie-text a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.btn-cookie-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    #cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.25rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-cookie-primary {
        width: 100%;
    }
}
