/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #05AE81;
  --primary-dark: #00614a;
  --primary-light: #6bd8b6;
  --accent-red: #F37768;
  --accent-green: #0bc776;
  --gradient: linear-gradient(135deg, #00614a, #55a38b);
  --text: #1a1a1a;
  --text-light: #555;
  --bg-light: #f8faf9;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.text-green {
  color: var(--primary);
}

/* ===== Layout Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 174, 129, 0.35);
}

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

.btn-white:hover {
  background: #f0f0f0;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  transition: color var(--transition);
}

.nav.scrolled .nav-brand {
  color: var(--text);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  text-decoration: none;
}

.nav.scrolled .nav-links a {
  color: var(--text);
}

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

.lang-toggle {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.nav.scrolled .lang-toggle {
  background: rgba(5, 174, 129, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.lang-toggle:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient);
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-text .text-green {
  color: #6bd8b6;
}

.hero-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: glint 4s ease-in-out infinite;
}

@keyframes glint {
  0%, 100% { box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 8px 60px rgba(107, 216, 182, 0.3); }
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.how-it-works {
  position: relative;
}

.lightbulb-decoration {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 180px;
  opacity: 0.12;
  pointer-events: none;
}

/* ===== Video Section ===== */
.video-section {
  background: var(--bg-light);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ===== ZERO100 Teaser ===== */
.zero100-teaser {
  position: relative;
  background-image: url('../assets/zero100background.png');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
}

.zero100-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 30, 0.7);
}

.zero100-teaser .container {
  position: relative;
  z-index: 1;
}

.zero100-teaser-logo {
  max-width: 500px;
  margin: 0 auto 24px;
}

.zero100-teaser p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CEO Quote ===== */
.quote-section {
  background: var(--white);
}

.quote-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  border-left: 4px solid var(--primary);
  position: relative;
}

.quote-marks {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 24px;
}

.quote-author {
  padding-left: 24px;
  font-weight: 600;
  color: var(--text);
}

.quote-author span {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== About ===== */
.about-section {
  background: var(--bg-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.about-links a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== ZERO100 Page ===== */
.zero100-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../assets/zero100background.png');
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

.zero100-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,50,35,0.8), rgba(5,174,129,0.5));
}

.zero100-hero .container {
  position: relative;
  z-index: 1;
}

.zero100-hero-logo {
  max-width: 360px;
  margin: 0 auto 24px;
}

.zero100-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.zero100-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Key Facts */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.fact-card .fact-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-card p {
  color: var(--text-light);
  font-weight: 500;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 24px 24px 28px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Form Section ===== */
.form-section {
  background: var(--gradient);
  padding: 80px 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  margin-bottom: 8px;
}

.form-card .form-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--accent-red);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(5, 174, 129, 0.1);
  color: #00614a;
  border: 1px solid rgba(5, 174, 129, 0.3);
}

.form-message.error-msg {
  display: block;
  background: rgba(243, 119, 104, 0.1);
  color: #c0392b;
  border: 1px solid rgba(243, 119, 104, 0.3);
}

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  text-align: center;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#branche-andet-group {
  display: none;
}

/* ===== Product Section ===== */
.product-section {
  background: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: -32px auto 48px;
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.product-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.product-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.5;
}

.product-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== Pricing Section ===== */
.pricing-section {
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}

.pricing-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 44px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-cta {
  margin-top: auto;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image img {
    max-width: 340px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbulb-decoration {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-200%);
    visibility: hidden;
    transition: transform var(--transition), visibility 0s var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s;
  }

  .nav-links a {
    color: var(--text) !important;
    font-size: 1.1rem;
  }

  .nav-links .lang-toggle {
    background: rgba(5, 174, 129, 0.1);
    color: var(--primary);
    border-color: var(--primary);
  }

  .hamburger {
    display: flex;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }

  .quote-card {
    padding: 32px 20px;
  }

  .quote-text {
    font-size: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-image img {
    max-width: 280px;
  }

  .zero100-teaser-logo {
    max-width: 300px;
  }
}
