/* ============================================
   Fonts
   ============================================ */

@font-face {
  font-family: 'Hurme';
  src: url('/fonts/HurmeGeometricSans3-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Thicccboi';
  src: url('/fonts/THICCCBOI-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Thicccboi';
  src: url('/fonts/THICCCBOI-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Thicccboi';
  src: url('/fonts/THICCCBOI-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ============================================
   Tokens
   ============================================ */

:root {
  --bg: #1a3a3f;
  --surface: #213f44;
  --surface-alt: #1e3539;
  --border: rgba(49, 200, 166, 0.15);
  --border-strong: rgba(49, 200, 166, 0.3);
  --text: #e8e2d6;
  --text-dim: #8a9e9e;
  --text-muted: #6b8080;
  --accent: #31c8a6;
  --accent-hover: #28a88c;
  --warm: #FFA500;
  --gold: #FFD700;

  --font-display: 'Hurme', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Thicccboi', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, monospace;

  --nav-h: 60px;
  --section-pad-y-mobile: 80px;
  --section-pad-y-desktop: 140px;
}

/* ============================================
   Reset
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

ul {
  list-style: none;
}

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

/* ============================================
   Top nav
   ============================================ */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(26, 58, 63, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 58, 63, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--nav-h) 0 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 90;
}

.menu.open {
  transform: translateY(0);
  pointer-events: auto;
}

.menu li {
  border-bottom: 1px solid var(--border);
}
.menu li:last-child {
  border-bottom: none;
}

.menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.menu a:hover, .menu a:focus {
  color: var(--accent);
}

.menu .nav-cta {
  color: var(--accent);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
}

.tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-dim);
  font-weight: 400;
}

#player {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#player .ma-player-viewport {
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--border-strong);
  background: #000;
}

#player .ma-player-viewport:fullscreen,
#player .ma-player-viewport:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}

#player .ma-player-controls {
  flex-shrink: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  align-self: stretch;
  min-width: 280px;
}

/* Video player skjult helt — bare click-to-toggle på selve videoen. */
#player .ma-player-controls { display: none !important; }
#player video { cursor: pointer; }

/* Ingen dim-overlay over posteren — posteren skal være fuldt synlig.
   'Tryk play'-pillen flyttes ned til 10px fra bunden. */
#player .ma-player-ready {
  background: transparent !important;
  align-items: flex-end !important;
  padding-bottom: 10px;
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  animation: bounce 2s ease-in-out infinite;
  padding: 0.5rem 1rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--section-pad-y-mobile) 1rem;
}

.section-alt {
  background: var(--surface-alt);
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section p {
  font-size: clamp(1rem, 2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section p:last-of-type {
  margin-bottom: 0;
}

.pull-quote {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(49, 200, 166, 0.05);
  border-radius: 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 1rem !important;
}

.pull-quote-cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.signature {
  font-family: var(--font-mono);
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.04em;
  margin-top: 1.5rem !important;
}

.caption {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 1.5rem !important;
}

/* ============================================
   Screenshot grid
   ============================================ */

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.screenshot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
}

.screenshot figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ss-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.ss-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   Viz section background video
   ============================================ */

.section-viz {
  position: relative;
  overflow: hidden;
}

.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 63, 0.78);
  z-index: 1;
  pointer-events: none;
}

.section-viz .section-inner {
  position: relative;
  z-index: 2;
}

/* ============================================
   Orb CTA
   ============================================ */

.orb-cta-wrap {
  margin: 2.5rem 0 1.25rem;
}

.orb-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(49, 200, 166, 0.12) 0%, rgba(49, 200, 166, 0.04) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.orb-cta:hover, .orb-cta:focus {
  background: linear-gradient(135deg, rgba(49, 200, 166, 0.2) 0%, rgba(49, 200, 166, 0.08) 100%);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.orb-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  padding-left: 3px;
}

.orb-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.orb-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.orb-cta-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.orb-cta-arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.orb-cta:hover .orb-cta-arrow, .orb-cta:focus .orb-cta-arrow {
  transform: translateX(4px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--section-pad-y-mobile) 1rem 4rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.podcast-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

.podcast-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.podcast-link:hover, .podcast-link:focus {
  background: rgba(49, 200, 166, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 2rem !important;
}

/* ============================================
   Version tag
   ============================================ */

.version {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.4;
  pointer-events: none;
  z-index: 50;
}

/* ============================================
   Desktop
   ============================================ */

@media (min-width: 768px) {

  .topnav {
    padding: 0 2rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    border: none;
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
    pointer-events: auto;
  }

  .menu li {
    border: none;
  }

  .menu a {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 0;
  }

  .menu a:hover, .menu a:focus {
    background: rgba(49, 200, 166, 0.08);
    color: var(--accent);
  }

  .menu .nav-cta {
    background: var(--accent);
    color: #0a1a1e;
    margin-left: 0.5rem;
  }

  .menu .nav-cta:hover, .menu .nav-cta:focus {
    background: var(--accent-hover);
    color: #0a1a1e;
  }

  .hero-inner {
    padding: 2rem 2rem 4rem;
    gap: 1.25rem;
  }

  .section {
    padding: var(--section-pad-y-desktop) 2rem;
  }

  .footer {
    padding: var(--section-pad-y-desktop) 2rem 4rem;
  }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0 1rem;
  }

  .podcast-links {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  .podcast-link {
    min-width: 160px;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .hero-inner {
    max-width: 900px;
  }
}
