/*
 * designvision.dk on CocioDark: the closing notice from www/ (2026-12-03). Fonts are self-hosted (no Google Fonts):
 * Plus Jakarta Sans as a variable font in assets/fonts (SIL OFL 1.1, see licenses/); Barlow Condensed for the heading
 * and the WiseSoft caption comes from CocioDark's font library ("barlow-condensed" in templates.json).
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-deep: #0a0f16;
  --bg-slate: #131c28;
  --card-bg-start: rgba(24, 34, 48, 0.82);
  --card-bg-end: rgba(13, 19, 29, 0.92);
  --dv-lime: #b3d334;
  --dv-lime-soft: rgba(179, 211, 52, 0.14);
  --ws-cyan: #13ace5;
  --ws-cyan-bright: #33bef2;
  --ws-cyan-soft: rgba(19, 172, 229, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: rgba(226, 232, 240, 0.84);
  --text-muted: rgba(148, 163, 184, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 3.5vh, 40px) clamp(16px, 4vw, 36px);
  position: relative;
  isolation: isolate;
}

/* Ambient architectural background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 24%, rgba(179, 211, 52, 0.11) 0%, transparent 46%),
    radial-gradient(circle at 82% 28%, rgba(19, 172, 229, 0.17) 0%, transparent 50%),
    radial-gradient(circle at 65% 88%, rgba(0, 165, 229, 0.10) 0%, transparent 48%),
    linear-gradient(160deg, #0b1018 0%, #141e2c 52%, #0c121b 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 25%, transparent 100%);
  pointer-events: none;
}

/* Main glassmorphic stage */
.stage-card {
  width: 100%;
  max-width: 820px;
  background: linear-gradient(165deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 32px 80px -16px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: clamp(26px, 4.5vh, 48px) clamp(22px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.85s var(--ease-out-expo) both;
}

/* Top lime-to-cyan transition accent line */
.stage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dv-lime) 0%, #5ec492 48%, var(--ws-cyan) 100%);
  opacity: 0.95;
}

/* Subtle top inner glow */
.stage-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(19, 172, 229, 0.12), transparent 72%);
  pointer-events: none;
}

/* Brand transition showcase (designvision -> WiseSoft) */
.brand-transition {
  display: grid;
  grid-template-columns: 1fr auto 1.12fr;
  align-items: stretch;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(26px, 4vh, 38px);
  position: relative;
  z-index: 1;
}

.brand-pod {
  border-radius: 20px;
  padding: clamp(18px, 2.5vh, 24px) clamp(16px, 2.2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 14px;
  position: relative;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Left pod: designvision (honoring 25 years) */
.pod-past {
  background: linear-gradient(160deg, rgba(179, 211, 52, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(179, 211, 52, 0.22);
  animation: podSlideIn 0.8s var(--ease-out-expo) 0.12s both;
}

/* Right pod: WiseSoft (active future) */
.pod-future {
  background: linear-gradient(155deg, rgba(19, 172, 229, 0.14) 0%, rgba(19, 172, 229, 0.035) 100%);
  border: 1px solid rgba(19, 172, 229, 0.44);
  box-shadow:
    0 16px 40px -14px rgba(19, 172, 229, 0.30),
    0 0 24px -8px rgba(19, 172, 229, 0.18) inset;
  text-decoration: none;
  color: inherit;
  animation: podSlideIn 0.85s var(--ease-out-expo) 0.34s both;
}

.pod-future:hover,
.pod-future:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(51, 190, 242, 0.78);
  box-shadow:
    0 22px 48px -12px rgba(19, 172, 229, 0.42),
    0 0 30px -6px rgba(19, 172, 229, 0.26) inset;
  outline: none;
}

.pod-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.badge-past {
  color: #cde374;
  background: rgba(179, 211, 52, 0.11);
  border: 1px solid rgba(179, 211, 52, 0.24);
}

.badge-dot-past {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dv-lime);
  opacity: 0.85;
}

.badge-future {
  color: #7ddbf9;
  background: rgba(19, 172, 229, 0.16);
  border: 1px solid rgba(19, 172, 229, 0.34);
}

.badge-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ws-cyan-bright);
  box-shadow: 0 0 10px var(--ws-cyan-bright);
  animation: livePulse 2.2s ease-in-out infinite;
}

.logo-lockup-dv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 76px;
}

.logo-dv {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(179, 211, 52, 0.22));
}

.wordmark-dv {
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: rgba(248, 250, 252, 0.90);
}

.logo-lockup-ws {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}

.logo-ws {
  height: 86px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(19, 172, 229, 0.28));
  transition: transform 0.35s var(--ease-out-expo);
}

.pod-future:hover .logo-ws {
  transform: scale(1.03);
}

.pod-caption {
  font-size: 0.80rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pod-future .pod-caption {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.78);
}

/* Center animated handover connector */
.transition-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 78px;
  animation: podSlideIn 0.8s var(--ease-out-expo) 0.24s both;
}

.bridge-track {
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-line {
  position: absolute;
  left: -8px;
  right: -8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(179, 211, 52, 0.55) 0%, rgba(19, 172, 229, 0.85) 100%);
  border-radius: 2px;
  overflow: hidden;
}

.bridge-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffffff, var(--ws-cyan-bright), transparent);
  animation: streamFlow 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.bridge-node {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #162231, #0e1622);
  border: 1px solid rgba(94, 196, 146, 0.48);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(19, 172, 229, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-arrow-icon {
  width: 20px;
  height: 20px;
  animation: arrowNudge 2.2s ease-in-out infinite;
}

/* Message section (preserving exact text from designvision.dk) */
.message-content {
  text-align: center;
  max-width: 610px;
  margin: 0 auto clamp(24px, 3.8vh, 34px);
  animation: contentFadeUp 0.85s var(--ease-out-expo) 0.42s both;
}

.message-heading,
.message-content h1 {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 18px;
  text-wrap: balance;
  background: linear-gradient(95deg, #ffffff 15%, #cbeeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.message-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.message-content > p {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.message-paragraphs p,
.message-content > p {
  text-wrap: balance;
}

.message-paragraphs strong,
.message-content strong,
.message-content b {
  color: #ffffff;
  font-weight: 600;
}

.signature-block {
  margin-top: 22px;
  padding-top: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}

.signature-block::before {
  content: '';
  position: absolute;
  top: 0;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dv-lime), var(--ws-cyan));
  opacity: 0.7;
}

.signature-greeting {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
}

.signature-name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

/* Redirect countdown + link footer area */
.redirect-panel {
  background: rgba(9, 14, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  padding: clamp(18px, 2.5vh, 24px) clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: contentFadeUp 0.85s var(--ease-out-expo) 0.52s both;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.countdown-ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 3.2;
}

.ring-progress {
  fill: none;
  stroke: url(#countdownGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 113.097;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.countdown-number {
  position: absolute;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.countdown-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.countdown-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.countdown-text strong {
  color: #ffffff;
  font-weight: 600;
}

.pause-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pause-btn:hover,
.pause-btn:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

/* Progress bar along top of redirect panel */
.progress-bar-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dv-lime), var(--ws-cyan));
  box-shadow: 0 0 10px rgba(19, 172, 229, 0.65);
}

/* Primary link underneath ("Gå til: www.wisesoft.dk") */
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(19, 172, 229, 0.22) 0%, rgba(0, 140, 204, 0.34) 100%);
  border: 1px solid rgba(19, 172, 229, 0.55);
  box-shadow:
    0 10px 28px -8px rgba(19, 172, 229, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cta-link .cta-domain {
  font-weight: 700;
  color: #6cd8ff;
  text-decoration: underline;
  text-decoration-color: rgba(108, 216, 255, 0.45);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cta-arrow {
  width: 18px;
  height: 18px;
  color: var(--ws-cyan-bright);
  transition: transform 0.25s var(--ease-out-expo);
}

.cta-link:hover,
.cta-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(19, 172, 229, 0.36) 0%, rgba(0, 150, 218, 0.50) 100%);
  border-color: var(--ws-cyan-bright);
  box-shadow:
    0 14px 34px -6px rgba(19, 172, 229, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  outline: none;
}

.cta-link:hover .cta-domain,
.cta-link:focus-visible .cta-domain {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.cta-link:hover .cta-arrow,
.cta-link:focus-visible .cta-arrow {
  transform: translateX(4px);
}

/* Keyframe animations */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes podSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes streamFlow {
  0% {
    left: -45%;
  }
  100% {
    left: 110%;
  }
}

@keyframes arrowNudge {
  0%, 100% {
    transform: translateX(-1px);
  }
  50% {
    transform: translateX(2px);
  }
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

/* Responsive layout for mobile / narrow viewports */
@media (max-width: 680px) {
  body {
    padding: 12px;
  }

  .stage-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .brand-transition {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
  }

  .brand-pod {
    padding: 14px 14px;
    gap: 10px;
    border-radius: 16px;
  }

  .transition-bridge {
    min-width: unset;
    height: 34px;
  }

  .bridge-track {
    width: 36px;
    height: 100%;
  }

  .bridge-node {
    width: 34px;
    height: 34px;
  }

  .bridge-line {
    left: 50%;
    right: auto;
    top: -6px;
    bottom: -6px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(179, 211, 52, 0.55) 0%, rgba(19, 172, 229, 0.85) 100%);
  }

  .bridge-line::after {
    display: none;
  }

  .bridge-arrow-icon {
    width: 17px;
    height: 17px;
    transform: rotate(90deg);
    animation: none;
  }

  .logo-dv {
    width: 42px;
    height: 42px;
  }

  .wordmark-dv {
    font-size: 1.3rem;
  }

  .logo-ws {
    height: 58px;
  }

  .logo-lockup-dv,
  .logo-lockup-ws {
    min-height: 56px;
  }

  .message-content {
    margin-bottom: 18px;
  }

  .message-heading,
  .message-content h1 {
    margin-bottom: 12px;
  }

  .signature-block {
    margin-top: 14px;
    padding-top: 12px;
  }

  .redirect-panel {
    padding: 15px 14px;
    gap: 12px;
  }

  .cta-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.98rem;
  }
}

/* Text pages (the privacy policy): a readable column in the same card. */
.dv-text {
  text-align: left;
  line-height: 1.65;
  color: var(--text-secondary);
}
.dv-text h1,
.dv-text h2,
.dv-text h3 {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
}
.dv-text h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 0; }
.dv-text h2 { font-size: 1.3rem; }
.dv-text h3 { font-size: 1.1rem; }
.dv-text p,
.dv-text ul,
.dv-text ol { margin: 0 0 1em; }
.dv-text ul,
.dv-text ol { padding-left: 1.4em; }
.dv-text li { margin-bottom: 0.3em; }
.dv-text b,
.dv-text strong { color: var(--text-primary); font-weight: 600; }
.dv-text a,
.message-content a { color: var(--ws-cyan-bright); text-underline-offset: 3px; }
.dv-back { display: inline-block; margin-top: 1.2em; color: var(--ws-cyan-bright); font-weight: 600; text-decoration: none; }
.dv-back:hover { text-decoration: underline; }

/* The articles a site may get later (the guided news block, CD-041). */
.cocio-news-intro { font-size: 1.12rem; color: var(--text-primary); }
.cocio-news-body p { margin: 0 0 1em; }

/* Below the card: the privacy policy and the cookie settings. */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-foot a { color: var(--text-muted); text-decoration: none; }
.site-foot a:hover { color: var(--text-primary); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
