@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #2d9a94; /* Logo Teal (used for accents/bg) */
    --primary-dark: #1f6a66;
    --primary-light: #6fe1d9;
    --accent-navy: #1e3a5f; /* Logo Navy */
    
    /* Button Blue */
    --btn-blue: #3b82f6;
    --btn-blue-hover: #1d4ed8;
    
    --bg-dark: #030712;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Living Background */
.bg-living {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #051923 0%, var(--bg-dark) 100%);
}

.bg-living::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: float 20s infinite alternate;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    background: var(--accent-navy);
    bottom: 10%;
    left: -5%;
    width: 800px;
    height: 800px;
    animation-delay: -5s;
    opacity: 0.1;
}

.blob-3 {
    background: var(--primary-light);
    top: 40%;
    right: 20%;
    width: 400px;
    height: 400px;
    animation-delay: -12s;
    opacity: 0.05;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--btn-blue);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 1.5rem 3rem;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 154, 148, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: var(--btn-blue);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.hero-image {
    margin-top: 4rem;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .hero-image {
        margin-top: 2rem;
    }
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

/* Sections */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features/Modules */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Integritet Section Specifics */
#integritet .feature-card {
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

#integritet .feature-card:hover {
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(45, 154, 148, 0.05));
}

#integritet .feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 154, 148, 0.1);
    border-radius: 12px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(45, 154, 148, 0.2);
}

/* Module Spotlight */
/* Pricing Callout */
.pricing-callout {
    margin: 2rem auto 4rem;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(45, 154, 148, 0.05) 0%, rgba(30, 58, 95, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .pricing-callout {
        margin: 1rem auto 3rem;
        padding: 2rem 1.5rem;
    }
}

.pricing-callout:hover {
    transform: scale(1.02);
    border-color: rgba(45, 154, 148, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.pricing-callout p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 400;
}

.pricing-callout strong {
    color: var(--primary-light);
    display: block;
    margin-top: 0.75rem;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-family: 'Outfit', sans-serif;
}

.highlight-offer {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--btn-blue));
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.8em;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(59, 130, 246, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
}


.module-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

@media (max-width: 768px) {
    .module-spotlight {
        margin-bottom: 4rem;
    }
}

.module-spotlight:nth-child(even) {
    direction: rtl;
}

.module-spotlight:nth-child(even) .module-text {
    direction: ltr;
}

.module-img img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.module-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.module-text ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-text li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
}

.module-text li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    background: #050505;
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1.25rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
    }
    
    .module-spotlight {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
        direction: ltr !important; /* Ensure LTR on mobile regardless of desktop reversal */
    }

    .module-text {
        order: 1;
    }

    .module-img {
        order: 2;
    }

    .module-text h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        color: #cbd5e1; /* Slightly brighter for better contrast on dark bg */
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        gap: 1.25rem;
    }
    
    footer {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
