/* Fargepalett */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-primary: #4f46e5; /* Neon-blå */
    --accent-secondary: #8b5cf6; /* Lilla */
    --accent-glow: 0 0 8px #4f46e5;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typografi */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-primary);
}

code, pre {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg-darker);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
}

/* Header */
header {
    background-color: var(--bg-darker);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(var(--accent-glow));
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero-seksjon */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.cta-button {
    background-color: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #3730a3;
}

/* Produktvisning */
.products {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-darker);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card h3 {
    margin-top: 0;
    color: var(--accent-primary);
}

/* Galleri */
.gallery {
    padding: 3rem 2rem;
    background-color: var(--bg-darker);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

footer a {
    color: var(--accent-primary);
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Interaktiv demo */
.demo {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.demo textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--bg-darker);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.demo button {
    background-color: var(--accent-secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.demo button:hover {
    background-color: #7c3aed;
}
