:root {
  --color-primary: #00263e; /* Mørkblå */
  --color-secondary: #3da5d9; /* Lyseblå */
  --color-accent: #ef5350; /* Rød */
  --color-light: #f2f5f7;
  --color-dark: #18181a;
  --color-text: #333333;
  --gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --border-radius: 6px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typografi */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.logo svg {
  height: 2rem;
  width: 2rem;
  margin-right: 0.75rem;
}

.nav {
  display: flex;
}

.nav-item {
  margin-left: 2rem;
  position: relative;
}

.nav-link {
  color: var(--color-dark);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.toggle-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  background-color: var(--color-dark);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233da5d9' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(61, 165, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61, 165, 217, 0.6);
}

/* Fordeler */
.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text);
}

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

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  z-index: -1;
  transition: var(--transition);
}

.feature-card:hover::before {
  width: 100%;
}

.feature-card:hover {
  color: white;
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-secondary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  fill: white;
}

.feature-title {
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-description {
  margin-bottom: 0;
  transition: var(--transition);
}

/* Hvordan det fungerer */
.how-it-works {
  padding: 5rem 0;
  background-color: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: 1.5rem;
}

.cta-description {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-light {
  background: white;
  color: var(--color-primary);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo svg {
  height: 2rem;
  width: 2rem;
  margin-right: 0.75rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-secondary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .toggle-menu {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    height: calc(100vh - 70px);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1.5rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 4rem 0 2rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}
