:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --sky: #0ea5e9;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --maxw: 1100px;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 120%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Language toggle ---- */
.en-only { display: none; }
.da-only { display: revert; }
body.lang-en .da-only { display: none; }
body.lang-en .en-only { display: revert; }

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
}
.nav-links a:hover { color: var(--indigo); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--grad);
  color: #fff;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---- Hero ---- */
.hero {
  background: var(--grad);
  color: #fff;
  padding: 64px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  opacity: .9;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -.02em;
}
.lead {
  font-size: 1.2rem;
  max-width: 34ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .94);
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .95rem; opacity: .85; }
.hero-art img { filter: drop-shadow(0 24px 40px rgba(15, 23, 42, .35)); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: #fff;
  color: var(--indigo);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
}
.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---- Sections ---- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 20px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0 0 24px;
  text-align: center;
}
.intro { max-width: 760px; text-align: center; }
.intro p { font-size: 1.15rem; color: var(--slate); }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--slate); }

/* ---- Showcase ---- */
.showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.showcase figure { margin: 0; text-align: center; }
.showcase img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.showcase figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.showcase-arrow { font-size: 2rem; color: var(--violet); }

/* ---- Features ---- */
.features-section { background: #fff; max-width: none; }
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-icon {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(14, 165, 233, .12));
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--slate); font-size: .98rem; }

/* ---- Screenshots ---- */
.shots-section { text-align: center; }
.shots-intro { color: var(--slate); font-size: 1.12rem; max-width: 52ch; margin: 0 auto 40px; }
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
}
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }

.frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.shot-desktop .frame { width: 440px; max-width: 100%; }
.shot-phone .frame { width: 220px; border-radius: 28px; border: 6px solid #0b1020; }

.browser-bar {
  height: 30px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}
.browser-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cbd5e1;
}
.browser-bar span:nth-child(1) { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }

.frame img { width: 100%; display: block; }

/* Placeholder vises kun når billedet mangler (.no-img) */
.frame .ph { display: none; }
.frame.no-img img { display: none; }
.frame.no-img .ph {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(14, 165, 233, .12));
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  text-align: center;
}
.shot-desktop .frame.no-img .ph { aspect-ratio: 16 / 10; }
.shot-phone .frame.no-img .ph { aspect-ratio: 9 / 18; }

/* ---- Tech ---- */
.tech-section { max-width: none; background: var(--ink); color: #e2e8f0; }
.tech-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.tech-art img {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  width: 220px;
}
.tech-text h2 { color: #fff; text-align: left; }
.tech-text p { color: #cbd5e1; font-size: 1.1rem; }
.tech-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  color: #94a3b8;
}

/* ---- Final CTA ---- */
.final-cta { text-align: center; }
.final-cta p { font-size: 1.15rem; color: var(--slate); max-width: 50ch; margin: 0 auto 28px; }

/* ---- Footer ---- */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}
.brand-footer { justify-content: center; margin-bottom: 10px; font-size: 1rem; }
.footer p { margin: 6px 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .tech-inner { grid-template-columns: 1fr; text-align: center; }
  .tech-art { margin: 0 auto; }
  .tech-text h2 { text-align: center; }
  .showcase-arrow { transform: rotate(90deg); }
}
