﻿:root {
    --bg: #EFF1F9;
    --card: #ffffff;
    --text: #0f1a2b;
    --muted: #4a5568;
    --nav: #303B48;
    --brand: #61c1f0;
    --brand-2: #64c78d;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.footer {
    background: #0b0d12;
    color: #eaf0ff;
}

    .footer a.footer-link {
        color: #cfe6df;
        text-decoration: none;
    }

        .footer a.footer-link:hover {
            text-decoration: underline;
        }

/* Branded button på toppen af Bootstrap's .btn */
.btn-nt {
    color: #0b1020;
    border: 0;
    background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
}

    .btn-nt:hover {
        filter: brightness(0.95);
        color: #0b1020;
    }

/* Hero-visual */
.hero-gradient {
    position: absolute;
    inset: auto -40% -20% -40%;
    height: 280px;
    background: radial-gradient(50% 60% at 50% 100%, rgba(97,193,240,.18), rgba(100,199,141,.10) 40%, rgba(0,0,0,0) 70%);
    filter: blur(20px);
    pointer-events: none;
}

.hero-art {
    display: flex;
    justify-content: center;
}

/* ---------- Tablet (landskab) mock + 16:9 screen ---------- */
.tablet-mock {
    --bezel: 22px; /* ramme-tykkelse */
    width: clamp(320px, 90vw, 1040px);
    padding: var(--bezel); /* skaber rammen omkring skærmen */
    position: relative;
    border-radius: 34px;
    background: linear-gradient(180deg,#1a2530,#0f141c);
    border: 1px solid rgba(0,0,0,.25);
    box-shadow: 0 30px 100px rgba(0,0,0,.25);
}

    /* “kamera”-strip for tablet-look */
    .tablet-mock .camera {
        position: absolute;
        top: calc(var(--bezel) - 10px);
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 6px;
        border-radius: 8px;
        background: rgba(255,255,255,.15);
    }

    /* Skærmområde: ÆGTE 16:9 */
    .tablet-mock .screen {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9; /* <-- magien */
        border-radius: 20px;
        background: var(--bg);
        overflow: hidden;
        display: block;
    }

/* Carousel bevarer absolutte slides inde i 16:9 containeren */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

    .carousel .slides {
        position: relative;
        width: 100%;
        height: 100%;
    }

        .carousel .slides img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* 16:9 fylder 100% uden bars; andet beskæres pænt */
            opacity: 0;
            transform: scale(1.01);
            transition: opacity .55s ease, transform .55s ease;
        }

            .carousel .slides img.active {
                opacity: 1;
                transform: scale(1);
            }

    .carousel .dots {
        position: absolute;
        display: flex;
        gap: 6px;
        bottom: 12px;
        right: 14px;
    }

    .carousel .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0,0,0,.25);
        box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
    }

        .carousel .dot.active {
            background: #fff;
            box-shadow: none;
        }

/* Responsiv højde følger automatisk af aspect-ratio. */


/* ===== Nexa-inspired polishing ===== */
.navbar-glass {
    background: rgba(48,59,72,.55);
    backdrop-filter: saturate(1.1) blur(10px);
    transition: background .25s ease, box-shadow .25s ease;
}

    .navbar-glass.scrolled {
        background: var(--nav);
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
    }

.hero-nexa {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(97,193,240,.25), rgba(100,199,141,.15) 30%, rgba(0,0,0,0) 60%), linear-gradient(180deg, #ffffff00, #ffffff00 70%, rgba(0,0,0,0.04));
}

    .hero-nexa .display-5 {
        letter-spacing: -0.02em;
    }

.btn-nt {
    border-radius: 999px;
    padding: .75rem 1.25rem;
}

.card-lift {
    transition: transform .15s ease, box-shadow .2s ease;
}

    .card-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,.10);
    }

.features .card {
    border: 1px solid rgba(0,0,0,.06);
}

    .features .card h3 {
        margin-bottom: .25rem;
    }

    .features .card p {
        color: var(--muted);
    }

.pricing .card {
    border: 1px solid rgba(0,0,0,.06);
}

.pricing .badge {
    border-radius: 999px;
}

.pricing .price-tag {
    line-height: 1;
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: .35;
    z-index: 0;
}

.shape-1 {
    width: 340px;
    height: 340px;
    background: #8AD3EE;
    top: -120px;
    left: -120px;
}

.shape-2 {
    width: 420px;
    height: 420px;
    background: #65C68C;
    bottom: -180px;
    right: -120px;
}

.shape-3 {
    width: 220px;
    height: 220px;
    background: #F9CF71;
    bottom: 20%;
    left: 45%;
    opacity: .25;
}

.hero-nexa .container-xl, .hero-nexa .row {
    position: relative;
    z-index: 1;
}

/* ---------- Card depth + hover animation ---------- */
.card-nt {
    background: linear-gradient(180deg, #fff, #fbfcff);
    border: 1px solid rgba(15, 26, 43, 0.06);
    box-shadow: 0 1px 1px rgba(15, 26, 43, 0.04), 0 6px 18px rgba(15, 26, 43, 0.06);
    transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease, border-color .2s ease;
    will-change: transform, box-shadow;
}

    .card-nt.card-lift:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 12px rgba(15,26,43,.06), 0 18px 40px rgba(15,26,43,.10);
        border-color: rgba(15,26,43,.12);
        background: linear-gradient(180deg, #fff, #f7fbff);
    }

/* If you added the optional brand tint effect earlier, scope it too */
.hover-tint.card-lift:hover {
    background: linear-gradient(180deg, #fff, #f7fbff), radial-gradient(600px 200px at 80% -20%, rgba(97,193,240,.12), rgba(100,199,141,.10) 30%, transparent 60%);
    background-blend-mode: screen, normal;
}

/* Flatten if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card-nt, .card-lift {
        transition: none !important;
    }
}

/* Ensure section-specific styling works (you already reference .features/.pricing) */
.features .card-nt,
.pricing .card-nt {
    border-radius: 16px;
}

/* ---------- Brand button: refined gradient, shine & active state ---------- */
.btn-nt {
    --grad-1: var(--brand);
    --grad-2: var(--brand-2);
    --ring: rgba(97,193,240,.45);
    position: relative;
    border: 0;
    color: #0b1020;
    border-radius: 999px;
    padding: .75rem 1.25rem;
    background-image: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    box-shadow: 0 6px 16px rgba(97,193,240,.25), inset 0 1px 0 rgba(255,255,255,.6);
    transition: transform .12s ease, box-shadow .2s ease, filter .15s ease, background-position .6s ease;
    background-size: 200% 200%; /* enables animated hover shift */
    background-position: 0% 50%;
}

    .btn-nt:hover {
        background-position: 100% 50%;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(97,193,240,.30), inset 0 1px 0 rgba(255,255,255,.7);
        filter: none;
        color: #0b1020;
    }

    /* Pressed */
    .btn-nt:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(97,193,240,.25), inset 0 1px 0 rgba(255,255,255,.6);
    }

    /* Accessible focus ring */
    .btn-nt:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px var(--ring), 0 10px 24px rgba(97,193,240,.30);
    }

    /* Optional: gradient “sheen” */
    .btn-nt::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(120deg, rgba(255,255,255,.3), rgba(255,255,255,0) 35%, rgba(255,255,255,.25) 70%, rgba(255,255,255,0));
        mix-blend-mode: soft-light;
        pointer-events: none;
        opacity: .65;
    }

/* Make outline-light look better on the glass navbar */
.btn-outline-light {
    border-radius: 999px;
    border-color: rgba(255,255,255,.5);
    color: #fff;
    backdrop-filter: saturate(1.1);
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.75);
        color: #fff;
    }

/* ---------- Navbar polish ---------- */
.navbar-glass {
    background: rgba(48,59,72,.55);
    backdrop-filter: saturate(1.1) blur(10px);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .navbar-glass.scrolled {
        background: var(--nav);
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
        border-bottom-color: rgba(0,0,0,.2);
    }

/* ---------- Hover color “lift” for links in cards ---------- */
.card-nt a:not(.btn) {
    color: inherit;
    text-decoration-color: rgba(15,26,43,.25);
}

    .card-nt a:not(.btn):hover {
        text-decoration-color: rgba(15,26,43,.6);
    }

/* ---------- Hero CTA group spacing on small screens ---------- */
.hero .btn + .btn {
    margin-left: .25rem;
}

@media (max-width: 576px) {
    .hero .btn {
        width: 100%;
    }
}

.hover-tint:hover {
    background: linear-gradient(180deg, #fff, #f7fbff), radial-gradient(600px 200px at 80% -20%, rgba(97,193,240,.12), rgba(100,199,141,.10) 30%, transparent 60%);
    background-blend-mode: screen, normal;
}

.navbar .nav-link {
    position: relative;
    transition: opacity .15s ease;
}

    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .18s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link:focus-visible::after {
        transform: scaleX(1);
    }

/* Height of your sticky navbar */
:root {
    --nav-h: 64px;
}
/* tweak if needed */

/* Make browsers keep the top padding when scrolling to anchors */
html {
    scroll-padding-top: calc(var(--nav-h) + 8px); /* extra 8px breathing room */
}

/* If your navbar is taller on mobile, override there */
@media (max-width: 991.98px) {
    :root {
        --nav-h: 72px;
    }
    /* or whatever your toggled navbar height is */
}

/* White underline effect – hover + keyboard focus only */
.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

/* Hover and keyboard focus-visible trigger the underline */
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* Keep your white text + slight hover fade */
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    position: relative;
    transition: opacity .2s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus-visible {
        color: #fff;
        opacity: 0.85;
    }

/* Modern white pill login button for dark navbar */
.navbar .btn-login,
.btn-login {
    --ring: rgba(97,193,240,.45); /* matches your brand */
    background: #fff;
    color: #0b1020;
    border: 1px solid rgba(15,26,43,.12);
    border-radius: 999px;
    padding: .5rem 1rem;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 2px 6px rgba(15,26,43,.10), 0 8px 20px rgba(15,26,43,.10);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease, opacity .2s ease;
}

    .btn-login:hover {
        background: #f6f8fb;
        border-color: rgba(15,26,43,.18);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15,26,43,.12), 0 14px 28px rgba(15,26,43,.16);
        color: #0b1020; /* stay black */
    }

    .btn-login:active {
        transform: none;
        box-shadow: 0 2px 8px rgba(15,26,43,.12), 0 8px 16px rgba(15,26,43,.14);
    }

    .btn-login:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px var(--ring), 0 8px 22px rgba(15,26,43,.20);
    }

/* Compact on small screens */
@media (max-width: 576px) {
    .btn-login {
        padding: .5rem .85rem;
    }
}

/* --- Remove "iPad" look but keep a rounded, lifted carousel --- */
.tablet-mock {
    /* no device frame */
    --bezel: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

    /* hide the faux camera strip */
    .tablet-mock .camera {
        display: none !important;
    }

    /* the actual rounded screen container */
    .tablet-mock .screen {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 24px; /* keep rounded corners */
        overflow: hidden;
        background: var(--bg); /* fallback color behind images */
        box-shadow: 0 18px 50px rgba(15,26,43,.18); /* subtle lift */
        transition: transform .35s ease;
        will-change: transform;
    }

    /* ensure the carousel respects the rounded corners and has no border */
    .tablet-mock .carousel,
    .tablet-mock .slides,
    .tablet-mock .slides img {
        border: 0;
        border-radius: inherit;
    }

    /* gentle zoom on hover (no layout shift) */
    .tablet-mock:hover .screen {
        transform: scale(1.02);
    }

    .tablet-mock:hover .slides img.active {
        transform: scale(1.04);
    }

    /* existing fade/scale transitions remain smooth */
    .tablet-mock .slides img.active {
        transition: opacity .55s ease, transform .55s ease;
    }

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tablet-mock .screen,
    .tablet-mock .slides img.active {
        transition: none !important;
        transform: none !important;
    }
}

/* News Section Styling */
.news-section {
    background: #ffffff;
}

.news-section .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 26, 43, 0.06);
}

.news-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15,26,43,.15);
}

.news-section .card-img-top {
    transition: transform 0.3s ease;
}

.news-section .card:hover .card-img-top {
    transform: scale(1.05);
}

.news-section a {
    color: inherit;
}

.news-section a:hover {
    text-decoration: none;
}

.news-section .badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(97, 193, 240, 0.3);
}
