/* =========================================================
   Vargline A/S - Enhanced style.css
   Path: /static/css/style.css
   Darker, smoother, deeper gradients, premium 3D glass styling
   ========================================================= */

:root {
    --bg-0: #02050b;
    --bg-1: #040913;
    --bg-2: #07111c;
    --bg-3: #0b1726;
    --bg-4: #102031;
    --bg-5: #14263b;

    --surface-0: rgba(255, 255, 255, 0.03);
    --surface-1: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.07);
    --surface-3: rgba(255, 255, 255, 0.10);

    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(116, 204, 255, 0.22);

    --text: #f5fbff;
    --text-soft: rgba(232, 242, 250, 0.84);
    --text-muted: rgba(188, 205, 220, 0.62);

    --accent-1: #74ccff;
    --accent-2: #3aa8f5;
    --accent-3: #4ce1d2;
    --accent-4: #97f0ff;
    --accent-deep: #143550;

    --shadow-black: 0 30px 100px rgba(0, 0, 0, 0.52);
    --shadow-deep: 0 24px 60px rgba(2, 6, 14, 0.55);
    --shadow-soft: 0 14px 34px rgba(3, 8, 18, 0.30);
    --shadow-glow: 0 0 42px rgba(76, 225, 210, 0.10);
    --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --inner-dark: inset 0 -18px 28px rgba(0, 0, 0, 0.14);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;

    --transition-fast: 180ms ease;
    --transition-normal: 320ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    font-feature-settings: "liga" 1, "kern" 1;
    background:
        radial-gradient(circle at 12% 14%, rgba(76, 225, 210, 0.08), transparent 0 20%),
        radial-gradient(circle at 85% 10%, rgba(58, 168, 245, 0.10), transparent 0 18%),
        radial-gradient(circle at 50% 120%, rgba(116, 204, 255, 0.08), transparent 0 28%),
        linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 14%, var(--bg-2) 36%, var(--bg-3) 62%, var(--bg-4) 82%, var(--bg-5) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 36%);
    mix-blend-mode: screen;
}

img {
    max-width: 100%;
    display: block;
}

p {
    line-height: 1.75;
}

h1,
html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(116, 204, 255, 0.24);
    color: #ffffff;
}

/* =========================================================
   BACKGROUND EFFECTS
   ========================================================= */

.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 1200px;
}

.aurora-bg::before,
.aurora-bg::after {
    content: "";
    position: absolute;
    width: 58rem;
    height: 58rem;
    border-radius: 9999px;
    filter: blur(95px);
    opacity: 0.16;
    transform-style: preserve-3d;
}

.aurora-bg::before {
    top: -18rem;
    left: -16rem;
    background:
        radial-gradient(circle, rgba(76, 225, 210, 0.62) 0%, rgba(58, 168, 245, 0.22) 34%, transparent 68%);
    animation: auroraFloatLeft 20s ease-in-out infinite alternate;
}

.aurora-bg::after {
    right: -18rem;
    bottom: -20rem;
    background:
        radial-gradient(circle, rgba(151, 240, 255, 0.42) 0%, rgba(116, 204, 255, 0.18) 38%, transparent 70%);
    animation: auroraFloatRight 24s ease-in-out infinite alternate;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.22));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.22));
    opacity: 0.24;
}

.grid-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(2, 5, 11, 0.10) 52%, rgba(2, 5, 11, 0.46) 100%);
}

.grid-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 5, 11, 0.06) 0%, rgba(2, 5, 11, 0.22) 50%, rgba(2, 5, 11, 0.68) 100%);
}

/* =========================================================
   LAYOUT / GLOBAL DEPTH
   ========================================================= */

header,
section,
footer {
    position: relative;
    z-index: 1;
}

.max-w-7xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3 {
    color: #f8fcff;
    text-wrap: balance;
}

h2,
h3 {
    letter-spacing: 0.01em;
}

.text-blue-100\/55,
.text-blue-100\/60,
.text-blue-100\/70,
.text-blue-100\/80,
.text-blue-200\/40,
.text-cyan-200\/60,
.text-cyan-200\/65 {
    text-wrap: balance;
}

/* =========================================================
   NAVBAR
   ========================================================= */

header {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(76, 225, 210, 0.03), transparent 38%, transparent 65%, rgba(116, 204, 255, 0.04));
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(116, 204, 255, 0.12) 18%, rgba(151, 240, 255, 0.34) 50%, rgba(116, 204, 255, 0.12) 82%, transparent 100%);
    pointer-events: none;
}

.logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(145deg, #d5fbff 0%, var(--accent-1) 38%, var(--accent-2) 70%, var(--accent-3) 100%);
    box-shadow:
        0 0 12px rgba(116, 204, 255, 0.72),
        0 0 34px rgba(76, 225, 210, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -2px 6px rgba(0, 0, 0, 0.22);
}

.logo-dot::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
    opacity: 0.9;
}

.logo-dot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(116, 204, 255, 0.18);
    animation: pulseRing 3s ease-out infinite;
}

.nav-link {
    position: relative;
    color: var(--text-soft);
    transition:
        color var(--transition-fast),
        transform var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-normal);
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -10px 14px rgba(0, 0, 0, 0.08);
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(116, 204, 255, 0.06), rgba(76, 225, 210, 0.02));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 6px;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
    box-shadow: 0 0 16px rgba(76, 225, 210, 0.24);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.92rem 1.55rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        opacity var(--transition-fast);
    backface-visibility: hidden;
}

.btn-primary {
    color: #03111f;
    border: 1px solid rgba(151, 240, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, #dffcff 0%, var(--accent-1) 34%, var(--accent-2) 68%, var(--accent-3) 100%);
    box-shadow:
        0 18px 36px rgba(58, 168, 245, 0.20),
        0 8px 0 rgba(7, 17, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        inset 0 -8px 14px rgba(0, 0, 0, 0.10);
}

.btn-primary:hover {
    transform: translateY(-4px) translateZ(0) scale(1.012);
    box-shadow:
        0 24px 48px rgba(58, 168, 245, 0.22),
        0 10px 0 rgba(7, 17, 28, 0.18),
        0 0 34px rgba(76, 225, 210, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 -8px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.994);
    box-shadow:
        0 12px 22px rgba(58, 168, 245, 0.18),
        0 4px 0 rgba(7, 17, 28, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.btn-primary::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.38) 50%, transparent 82%);
    transform: translateX(-136%);
    transition: transform 900ms ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    transform: translateX(136%);
}

.btn-secondary {
    color: #f5fbff;
    border: 1px solid rgba(116, 204, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        linear-gradient(135deg, rgba(21, 38, 58, 0.86), rgba(10, 22, 36, 0.78));
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -12px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    border-color: rgba(116, 204, 255, 0.30);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(23, 42, 65, 0.90), rgba(10, 22, 36, 0.82));
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.24),
        0 0 24px rgba(116, 204, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -12px 18px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   TYPOGRAPHY GLOW
   ========================================================= */

.glow-text {
    text-shadow:
        0 0 16px rgba(116, 204, 255, 0.12),
        0 0 34px rgba(76, 225, 210, 0.08);
}

.glow-text-strong {
    color: #f8fdff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.10),
        0 0 26px rgba(116, 204, 255, 0.20),
        0 0 52px rgba(76, 225, 210, 0.12);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-glow {
    position: absolute;
    width: 42rem;
    height: 42rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -42%);
    border-radius: 9999px;
    background:
        radial-gradient(circle, rgba(116, 204, 255, 0.14) 0%, rgba(76, 225, 210, 0.08) 26%, rgba(3, 9, 18, 0) 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    animation: heroBreath 9s ease-in-out infinite;
}

.hero-glow::before,
.hero-glow::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    inset: 12%;
    pointer-events: none;
}

.hero-glow::before {
    border: 1px solid rgba(151, 240, 255, 0.05);
    transform: translateZ(0) rotate(8deg);
}

.hero-glow::after {
    inset: 24%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 72%);
}

/* =========================================================
   GLASS CARDS / 3D DEPTH
   ========================================================= */

.glass-card {
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
        linear-gradient(145deg, rgba(18, 33, 50, 0.92), rgba(8, 18, 30, 0.88));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow:
        var(--shadow-black),
        var(--inner-light),
        var(--inner-dark);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    overflow: hidden;
    transition:
        transform var(--transition-normal),
        border-color var(--transition-fast),
        box-shadow var(--transition-normal),
        background var(--transition-normal),
        filter var(--transition-normal);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, transparent 28%, transparent 62%, rgba(116, 204, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.glass-card::after {
    content: "";
    position: absolute;
    top: -45%;
    right: -18%;
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(116, 204, 255, 0.10), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    transform: translateY(-9px) rotateX(4deg) rotateY(-4deg);
    border-color: rgba(116, 204, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 100%),
        linear-gradient(145deg, rgba(20, 37, 57, 0.95), rgba(8, 18, 30, 0.90));
    box-shadow:
        0 34px 76px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(76, 225, 210, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -18px 28px rgba(0, 0, 0, 0.14);
    filter: saturate(110%);
}

.glass-card p.text-3xl,
.glass-card .text-3xl {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 18px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(116, 204, 255, 0.10);
}

/* =========================================================
   CTA BLOCK DEPTH
   ========================================================= */

section .glass-card.p-10,
section .glass-card.p-10.md\:p-12 {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
        linear-gradient(145deg, rgba(16, 29, 45, 0.96), rgba(8, 17, 29, 0.92));
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background:
        linear-gradient(180deg, rgba(6, 12, 22, 0.02), rgba(6, 12, 22, 0.42)),
        linear-gradient(135deg, rgba(76, 225, 210, 0.02), transparent 35%, transparent 65%, rgba(116, 204, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(4, 9, 19, 0.96);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(116, 204, 255, 0.42), rgba(76, 225, 210, 0.30));
    border-radius: 9999px;
    border: 2px solid rgba(4, 9, 19, 0.96);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(116, 204, 255, 0.62), rgba(76, 225, 210, 0.48));
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes auroraFloatLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(30px, -20px, 0) rotate(8deg) scale(1.05);
    }
    100% {
        transform: translate3d(-18px, 22px, 0) rotate(-4deg) scale(0.98);
    }
}

@keyframes auroraFloatRight {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-22px, 18px, 0) rotate(-7deg) scale(1.04);
    }
    100% {
        transform: translate3d(26px, -12px, 0) rotate(4deg) scale(0.98);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.85);
        opacity: 0;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

@keyframes heroBreath {
    0%,
    100% {
        opacity: 0.64;
        transform: translate(-50%, -42%) scale(1);
    }
    50% {
        opacity: 0.92;
        transform: translate(-50%, -42%) scale(1.07);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .hero-glow {
        width: 31rem;
        height: 31rem;
    }

    .glass-card:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .aurora-bg::before,
    .aurora-bg::after {
        width: 34rem;
        height: 34rem;
        filter: blur(72px);
        opacity: 0.14;
    }

    .grid-overlay {
        background-size: 34px 34px;
        opacity: 0.18;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .hero-glow {
        width: 24rem;
        height: 24rem;
        transform: translate(-50%, -45%);
    }
}

@media (max-width: 480px) {
    .logo-dot {
        width: 12px;
        height: 12px;
    }

    .nav-link::after {
        bottom: 5px;
    }

    .glass-card {
        border-radius: 24px;
    }

    .hero-glow {
        width: 18rem;
        height: 18rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
