:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --text: #16151a;
  --muted: #5d5b66;
  --accent: #ff5a36;
  --accent-2: #7b5cff;
  --card: #ffffff;
  --border: #e4e0d6;
  --radius: 18px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e13;
    --bg-alt: #17161d;
    --text: #f3f1ec;
    --muted: #a7a3b3;
    --card: #1c1b23;
    --border: #2b2933;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .menu.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { box-shadow: none; border-color: var(--text); }
.btn-small { padding: 8px 18px; color: #fff !important; }
.btn-large { font-size: clamp(1rem, 3vw, 1.3rem); padding: 18px 34px; word-break: break-all; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px); }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 24px; max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.blob {
  position: absolute; z-index: -1; right: -12%; top: -20%;
  width: min(60vw, 640px); aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%);
  filter: blur(60px); opacity: .35; border-radius: 50%;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-40px, 60px) scale(1.1); } }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 0 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin: 16px 0 8px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 1.3rem;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 32px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Lille "skærmbillede" af Timearket.biz */
.mock {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-title { font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.mock-row { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: .95rem; }
.mock-row.ok { background: color-mix(in srgb, #2fb36b 13%, transparent); color: var(--text); }
.mock-cta {
  margin-top: 16px; text-align: center; padding: 12px; border-radius: 999px;
  background: #2fb36b; color: #fff; font-weight: 600;
}

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; display: flex; flex-direction: column;
}
.facts span { color: var(--muted); font-size: .95rem; }

/* Kontaktformular */
.contact { max-width: 760px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--muted); font-size: .9rem; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-actions .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: #2fb36b; }
.form-status.error { color: var(--accent); }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.muted { color: var(--muted); }

/* Scroll-animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sprogskift */
.lang-switch {
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  border: 1.5px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.lang-switch:hover { border-color: var(--text); color: var(--text) !important; }
