/* Enimo Landing Page v2 — Nordic Void Design System
   Pure CSS, no framework, no build step. */

/* ============================================================
   1. CSS Custom Properties (Design.md exact values)
   ============================================================ */
:root {
  color-scheme: dark;

  /* Void / Backgrounds */
  --void:         #000000;
  --surface-0:    #030303;
  --surface-1:    #0d0d0d;
  --surface-2:    #111111;
  --surface-3:    #1a1a1a;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.14);
  --border-accent:  rgba(99, 102, 241, 0.35);

  /* Text */
  --text-primary:   #e8e8e8;
  --text-secondary: #9494a8;
  --text-muted:     #5c5855;
  --text-accent:    #818cf8;

  /* Accent / Brand */
  --accent-primary:  #6366f1;
  --accent-hover:    #818cf8;
  --accent-press:    #4f46e5;
  --accent-glow-sm:  rgba(99, 102, 241, 0.12);
  --accent-glow-md:  rgba(99, 102, 241, 0.20);
  --accent-glow-lg:  rgba(99, 102, 241, 0.35);

  /* Semantic */
  --success: #00c758;

  /* Fonts */
  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container-max: 1280px;

  /* Z-index */
  --z-nav: 40;

  /* Easing */
  --ease-standard:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* Durations */
  --duration-fast:     150ms;
  --duration-base:     200ms;
  --duration-medium:   300ms;
  --duration-enter:    600ms;
  --duration-dramatic: 1000ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ============================================================
   3. Skip Link (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 16px;
}

/* ============================================================
   4. Ambient Background
   ============================================================ */
.site-shell {
  position: relative;
  min-height: 100vh;
  background: var(--void);
  overflow: hidden;
}

/* SVG grid dots */
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Atmospheric orbs */
.orb {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.orb--primary {
  top: -10%;
  left: 10%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(99, 102, 241, 0.14), transparent 70%);
  animation: orb-drift 12s var(--ease-standard) infinite;
}

.orb--secondary {
  top: -5%;
  right: 0;
  width: 50vw;
  height: 40vh;
  background: radial-gradient(ellipse 50% 35% at 50% 50%, rgba(139, 92, 246, 0.09), transparent 70%);
  animation: orb-drift 16s var(--ease-standard) infinite reverse;
}

.orb--floor {
  bottom: 0;
  left: 25%;
  width: 60vw;
  height: 30vh;
  background: radial-gradient(ellipse 80% 30% at 50% 100%, rgba(99, 102, 241, 0.06), transparent 60%);
}

/* ============================================================
   5. Container
   ============================================================ */
.container {
  width: min(var(--container-max), calc(100vw - 32px));
  margin-inline: auto;
  position: relative;
}

/* ============================================================
   6. Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 58px;
  display: flex;
  align-items: center;
  transition: background var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
  animation: nav-enter 0.6s var(--ease-decelerate) both;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  width: min(var(--container-max), calc(100vw - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-standard);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-primary);
}

.nav__link--cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}

.nav__link--cta:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ============================================================
   7. Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  max-height: 725px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 112px 0 64px;
}

.hero__content {
  animation: hero-enter 1s var(--ease-decelerate) both;
  animation-delay: 0.4s;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  margin-bottom: 24px;
  animation: hero-enter 0.6s var(--ease-decelerate) both;
  animation-delay: 0.2s;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__badge-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.16rem;
  max-width: 640px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(148, 148, 168, 0.70) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  animation: hero-enter 0.8s var(--ease-decelerate) both;
  animation-delay: 0.6s;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: hero-enter 0.8s var(--ease-decelerate) both;
  animation-delay: 0.8s;
}

/* ============================================================
   8. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-standard);
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn--primary {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(104deg, rgba(253, 253, 253, 0.05) 5%, rgba(240, 240, 228, 0.10) 100%);
  color: #fff;
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  box-shadow: 0 0 4px #ffffff0f, 0 1px 14px #ffffff1f, 0 3px 32px #ffffff2e;
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

