@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-deep: #050a15;
    --bg-gradient: radial-gradient(circle at 80% 20%, #1e293b 0%, #050a15 100%);
    --accent-sky: #38bdf8;
    --accent-green: #10b981;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: white;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== HEADER & LOGO ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: rgba(5, 10, 21, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 40px; 
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #FFFFFF, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover { color: white; }

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.menu-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

nav.active .menu-close {
    display: block;
}

/* ===== HERO SEKTION (Startsidan) ===== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 160px 10% 100px;
    min-height: 100vh;
    gap: 4rem;
}

/* Text-delen på startsidan */
.hero:not(.support-hero) .hero-content {
    flex: 1.2;
    max-width: 600px;
    text-align: left;
    margin: 0;
}

/* Bild-delen (Mobilen) - Här fixar vi storleken */
.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    max-width: 420px; /* Denna rad hindrar mobilen från att bli för stor */
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.25));
    animation: floatVertical 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Privacy Hero Logo */
.privacy-hero-logo {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.15));
    opacity: 1;
}

/* Bakgrunds-logga (Spök-effekt bakom telefonen) */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340%;
    height: 340%;
    opacity: 0.12;
    filter: grayscale(1) blur(2px);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) blur(2px);
}

/* ===== SUPPORT HERO (Centrerad rubrik) ===== */
.support-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 180px 10% 60px;
    gap: 4rem;
}

.support-hero .hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== FEATURES (FAQ-kort) ===== */
.features {
    padding: 60px 8% 100px;
    background: rgba(5, 10, 21, 0.3);
}

.features h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== POLICY GRID ===== */
.policy-container {
    padding: 60px 8% 100px;
    background: rgba(5, 10, 21, 0.3);
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.policy-column {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(12px);
}

.language-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    margin-bottom: 1.5rem;
}

.policy-column h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.policy-column ul {
    list-style: disc inside;
    color: var(--text-dim);
    line-height: 1.8;
    padding-left: 0;
}

.policy-column li {
    margin-bottom: 1rem;
}

.policy-column a {
    color: #38bdf8;
    text-decoration: none;
}

.policy-column a:hover {
    text-decoration: underline;
}

.feature-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-sky);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ===== SUPPORT FORMULÄR ===== */
.support-section {
    padding: 40px 8% 120px;
    display: flex;
    justify-content: center;
}

.support-container {
    max-width: 600px;
    width: 100%;
    background: rgba(30, 41, 59, 0.3);
    padding: 3.5rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 5px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-sky);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* ===== KNAPPAR & FOOTER ===== */
.btn-primary {
    background: var(--accent-green);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary img {
    height: 30px;
    width: auto;
    display: block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

footer {
    padding: 4rem 8%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 140px; }
    .hero:not(.support-hero) .hero-content { text-align: center; margin: 0 auto; }
    .hero-image { max-width: 320px; margin-bottom: 2rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 10, 21, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav.active {
        display: flex;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .logo-text,
    .hero-content h1,
    .features h2,
    .why-safescroll h2 {
        color: #ffffff !important;
        text-shadow: none !important;
        filter: none !important;
        background: none !important;
        opacity: 1 !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        -webkit-backface-visibility: hidden;
        font-weight: 700;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .policy-grid { grid-template-columns: 1fr; }
    .support-container { padding: 2rem; }
}