/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg: #FFFFFF;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #007AFF; /* Tech Blue */
    --surface: #F5F5F7;
    --dark-surface: #1C1C1E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. LAYOUT UTILS
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.small-container { max-width: 700px; }

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 32px; width: auto; display: block; }
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.btn-small { background: var(--text-main); color: white !important; padding: 8px 16px; border-radius: 20px; }

/* =========================================
   4. HERO SEKTION
   ========================================= */
.hero { text-align: center; padding: 120px 0 80px; }

.hero-logo {
    width: 100%;            
    max-width: 250px;       
    height: auto;           
    margin: 0 auto 24px;    
    display: block;
}

.subtitle { font-size: 1.4rem; color: var(--text-muted); font-weight: 400; max-width: 600px; margin: 0 auto; }

/* =========================================
   5. MISSION
   ========================================= */
.mission { padding: 80px 0; background: var(--bg); }
.mission h2 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -1px; }
.overline { text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; display: block; margin-bottom: 10px; }
.text-content { font-size: 1.1rem; color: #444; }

/* =========================================
   6. SHOWCASE / PRODUKTER
   ========================================= */
.showcase { padding: 60px 0; }

.slider-container {
    position: relative;
    max-width: 100%;
}

.slide {
    display: none; 
    animation: fadeEffect 1s; 
}
.active-slide { display: block; }

/* Det mørke kort layout */
.dark-card {
    background: var(--dark-surface);
    color: white;
    border-radius: 32px;
    padding: 0; 
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    
    display: flex; 
    align-items: stretch; /* Gør at venstre og højre side fylder hele højden */
    justify-content: space-between;
    min-height: 450px;
}

/* Venstre side (Tekst) - RETTELSER HER */
.card-content { 
    flex: 1; 
    z-index: 2; 
    
    /* VIGTIGT: Mindre padding i toppen (20px) tvinger teksten op */
    padding: 30px 60px 60px 60px; /* Top, Højre, Bund, Venstre */

    /* Vi bruger flexbox til at tvinge indholdet til toppen */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

/* Højre side (Billede) */
.card-image { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; /* Billedet må gerne være centreret */
    padding: 40px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
}

.card-image img { 
    max-height: 350px; 
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    transform: rotate(-3deg); 
    transition: transform 0.5s; 
}

.dark-card:hover .card-image img { transform: rotate(0deg) scale(1.05); }

/* Typografi i boksen - RETTELSER HER */
.badge { 
    background: #30D158; 
    color: #000; 
    padding: 6px 12px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 0.75rem; 
    display: inline-block; 
    
    /* VIGTIGT: Fjerner top margin */
    margin-top: 0; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.dark-card h2 { 
    font-size: 2.5rem; 
    line-height: 1.1;
    
    /* VIGTIGT: Fjerner top margin */
    margin-top: 0; 
    margin-bottom: 15px; 
}

.dark-card p { color: #a1a1a6; margin-bottom: 25px; font-size: 1.1rem; max-width: 90%; }

/* Feature listen */
.feature-list ul { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin-bottom: 12px; padding-left: 30px; position: relative; color: #e5e5e5; font-weight: 500; }
.feature-list li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-size: 1.5rem; line-height: 1rem; top: 2px; }

/* Slider pile */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

@keyframes fadeEffect { from {opacity: 0.4} to {opacity: 1} }

/* =========================================
   7. PRINCIPLES (GRID)
   ========================================= */
.principles { padding: 100px 0; background: var(--surface); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-item { background: white; padding: 40px; border-radius: 24px; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.2s; }
.grid-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.grid-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.grid-item p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   8. FOOTER
   ========================================= */
footer { padding: 80px 0 40px; text-align: center; border-top: 1px solid #eaeaea; }
.footer-logo { height: 40px; margin-bottom: 20px; opacity: 0.5; }
.copyright { margin-top: 40px; font-size: 0.8rem; color: #999; }

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 850px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-logo { max-width: 200px; }

    .dark-card {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
        height: auto;
    }
    .card-content { padding: 40px 30px 20px 30px; }
    .card-image { padding: 0 20px; }
    .card-image img { transform: rotate(0); max-height: 250px; }
    
    .feature-list li { display: inline-block; text-align: left; margin-right: 10px; }
    .dark-card p { margin-left: auto; margin-right: auto; }

    .grid-3 { grid-template-columns: 1fr; }
    .prev, .next { padding: 10px; font-size: 18px; }
}