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

:root {
    --bg-dark: #0a0a0c;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --recovery-green: #34c759;
    --energy-yellow: #ffcc00;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52,199,89,0.15) 0%, rgba(10,10,12,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-right {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, rgba(10,10,12,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    /* CSS-magi som tar bort den vita bakgrunden och gör loggan vit */
    filter: invert(1) grayscale(1) brightness(2);
    mix-blend-mode: screen;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo img:hover {
    opacity: 1;
}

.lang-switch {
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0 5px;
}

.lang-switch a:hover {
    color: var(--text-main);
}

.lang-switch a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 4rem 0;
    animation: fadeIn 1s ease-out;
    gap: 4rem;
}

@media (min-width: 850px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: clamp(4rem, 12vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 320px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
}

/* App Icon in Hero — inline with h1 */
.app-icon-hero {
    height: 0.72em;
    width: 0.72em;
    border-radius: 0.16em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    vertical-align: baseline;
    margin-right: 0.08em;
    margin-bottom: -0.02em;
    animation: fadeIn 1s ease-out;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.glass-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
    background: #e0e0e0;
}

/* Typography for legal pages */
.legal-content {
    margin-top: 4rem;
    animation: fadeIn 0.8s ease-out;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    display: block;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

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

footer a:hover {
    color: var(--text-main);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
