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

/* Fargevariabler og grunnstil */
:root {
    --bg: #07111f;
    --bg-soft: #0c1a2c;
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.1);
    --text: #f4f7fb;
    --muted: #b7c2cf;
    --line: rgba(255, 255, 255, 0.12);
    --primary: #65b8ff;
    --primary-strong: #2c8fff;
    --primary-soft: rgba(101, 184, 255, 0.14);
    --success-bg: rgba(62, 201, 138, 0.12);
    --success-line: rgba(62, 201, 138, 0.32);
    --error-bg: rgba(255, 102, 102, 0.12);
    --error-line: rgba(255, 102, 102, 0.32);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --max-width: 1200px;
}

/* HTML og body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(58, 114, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #08111d 0%, #0a1524 45%, #08111d 100%);
    color: var(--text);
    line-height: 1.6;
}

/* Generell container */
.container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

/* Lenker */
a {
    color: inherit;
    text-decoration: none;
}

/* Bilder */
img {
    display: block;
    width: 100%;
    height: auto;
}

/* Toppheader */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(7, 17, 31, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.96rem;
}

.nav-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #04101d !important;
    font-weight: 700;
}

.nav-link-button-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text) !important;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=2000&q=80");
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 18, 0.28) 0%, rgba(4, 10, 18, 0.7) 45%, rgba(4, 10, 18, 0.94) 100%),
        linear-gradient(90deg, rgba(4, 10, 18, 0.8) 0%, rgba(4, 10, 18, 0.45) 45%, rgba(4, 10, 18, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 64px 0 56px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #d6e3f3;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 8vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    max-width: 10ch;
}

.hero-copy h1 span {
    display: block;
    color: #8dd0ff;
}

.hero-lead {
    max-width: 640px;
    font-size: 1.02rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-points {
    display: grid;
    gap: 10px;
    max-width: 620px;
}

.hero-point {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: #eaf2fb;
    font-weight: 600;
}

/* Knapper */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #04101d;
    box-shadow: 0 14px 32px rgba(44, 143, 255, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--line);
}

.button-full {
    width: 100%;
}

/* Seksjoner */
.section {
    padding: 72px 0;
}

.section-dark {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading h2,
.text-block h2,
.cta-copy h2,
.feedback-intro h2 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-lead,
.text-block p,
.cta-copy p,
.feedback-intro p {
    color: var(--muted);
    font-size: 1rem;
}

/* Kort-grid */
.feature-grid {
    display: grid;
    gap: 16px;
}

.feature-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
}

/* Split-seksjoner */
.section-split {
    position: relative;
}

.split-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.image-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.image-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.text-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* CTA-panel */
.cta-panel {
    display: grid;
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Flash */
.flash-section {
    padding-top: 0;
}

.flash-message {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-weight: 600;
}

.flash-success {
    background: var(--success-bg);
    border-color: var(--success-line);
}

.flash-error {
    background: var(--error-bg);
    border-color: var(--error-line);
}

/* Feedback */
.feedback-wrap {
    display: grid;
    gap: 26px;
}

.feedback-form {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 14, 24, 0.72);
    color: var(--text);
    font: inherit;
    outline: none;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #90a0b4;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: rgba(101, 184, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(101, 184, 255, 0.12);
}


/* Skjuler honeypot-felt visuelt, men lar det finnes i DOM for enkle botter */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Footer */
.site-footer {
    padding: 32px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-text {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}






/* Tablet og opp */
@media (min-width: 720px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        justify-content: flex-end;
        align-items: center;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-grid,
    .feedback-wrap,
    .cta-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid-reverse .image-card {
        order: 2;
    }

    .split-grid-reverse .text-block {
        order: 1;
    }

    .cta-actions {
        align-self: center;
        justify-self: end;
        width: 100%;
        max-width: 260px;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Desktop og opp */
@media (min-width: 1024px) {
    .site-header {
        background: rgba(7, 17, 31, 0.62);
    }

    .hero-content {
        padding: 84px 0 88px;
    }

    .section {
        padding: 96px 0;
    }

    .feature-card,
    .feedback-form,
    .cta-panel {
        padding: 28px;
    }

    .text-block {
        padding: 8px 8px 8px 16px;
    }
}