/* ============================================================
   HELT ENIG — Design System
   Norwegian micro-contract platform
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --navy-900: #060E1A;
  --navy-800: #0B1D35;
  --navy-700: #112B4D;
  --navy-600: #1A3D66;
  --navy-500: #1E4D80;
  --slate-400: #6B8299;
  --slate-300: #8EA5BD;
  --slate-200: #B4C7D9;
  --gold-500: #D4AF37; /* Adjusted for better contrast on light */
  --gold-400: #E6C252;
  --gold-300: #F3D97F;
  --gold-600: #B8901A; /* Darker for proper text contrast on light bg */
  --surface-100: #FFFFFF;
  --surface-200: #F7F5F0;
  --surface-300: #EDEAE3;
  --surface-400: #DDD9D0;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --text-on-dark: #E8E6E0;
  --text-on-dark-muted: #9AA5B4;
  --success: #22C55E;
  --success-light: #DCFCE7;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.7);
  --glass-border-light: rgba(255, 255, 255, 0.9);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 29, 53, 0.04);
  --shadow-sm: 0 4px 12px rgba(11, 29, 53, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 29, 53, 0.06);
  --shadow-lg: 0 16px 48px rgba(11, 29, 53, 0.08);
  --shadow-xl: 0 24px 64px rgba(11, 29, 53, 0.12);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(212, 175, 55, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.25rem;
  --font-size-6xl: 4rem;
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-200);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* Accessibility Focus Ring */
*:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--duration-normal) var(--ease-in-out);
}

.nav.scrolled {
  background: rgba(11, 29, 53, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--surface-100);
  letter-spacing: -0.02em;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  object-fit: contain;
}

.nav__logo-text {
  background: linear-gradient(135deg, var(--surface-100) 40%, var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SVG Icon utility */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: var(--text-on-dark-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-in-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--surface-100);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 2px 16px rgba(201, 168, 76, 0.3);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-strong);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--surface-100);
  border-radius: 2px;
  transition: all var(--duration-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  overflow: hidden;
  padding: var(--space-5xl) 0 var(--space-4xl);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero__glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 77, 128, 0.15) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite 2s;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

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

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--surface-100);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-on-dark-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--surface-100);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

.btn-white {
  background: var(--surface-100);
  color: var(--navy-800);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-on-dark-muted);
  font-size: var(--font-size-sm);
}

.hero__trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--success);
  flex-shrink: 0;
}

/* Hero visual / phone mockup */
.hero__visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  z-index: 1;
  animation: fadeIn 1s var(--ease-out) 0.5s both;
}

.hero__phone {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 120px rgba(201, 168, 76, 0.05);
  width: 300px;
  margin-left: auto;
}

.hero__phone-screen {
  background: var(--surface-200);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
}

.hero__phone-header {
  background: var(--navy-800);
  padding: 20px 16px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__phone-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.hero__phone-header-text {
  color: var(--surface-100);
  font-size: 12px;
  font-weight: 700;
}

.hero__phone-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__phone-field {
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: 10px;
  padding: 10px 14px;
}

.hero__phone-field-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.hero__phone-field-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero__phone-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  margin-top: auto;
}

.hero__phone-footer {
  text-align: center;
  padding: 8px;
  font-size: 8px;
  color: var(--text-muted);
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--space-5xl) 0;
  background: var(--surface-200);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--surface-300), var(--gold-500), var(--surface-300));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  background: var(--surface-100);
  border: 3px solid var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--gold-600);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
}

.step__icon {
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.step__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step__description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 300px;
  margin: 0 auto;
}

.step__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* --- Use Cases / Templates --- */
.templates {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, var(--surface-200) 0%, var(--surface-100) 100%);
}

.templates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.template-card {
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}

.template-card:hover::before {
  opacity: 1;
}

.template-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-lg);
}

.template-card__icon--car {
  background: linear-gradient(135deg, #EBF5FF, #DBEAFE);
}
.template-card__icon--home {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
}
.template-card__icon--wrench {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
}
.template-card__icon--briefcase {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
}
.template-card__icon--handshake {
  background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
}
.template-card__icon--sparkles {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
}

.template-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.template-card__description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.template-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-card__price {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--navy-800);
}

.template-card__price-suffix {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.template-card__time {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.template-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* --- Trust / Security Section --- */
.trust {
  padding: var(--space-5xl) 0;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--surface-100);
  position: relative;
  overflow: hidden;
}

.trust__bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.4) 1px, transparent 0);
  background-size: 32px 32px;
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.trust__label {
  color: var(--gold-400);
}

.trust__title {
  color: var(--surface-100);
}

.trust__subtitle {
  color: var(--text-on-dark-muted);
}

.trust__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.trust-feature {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.trust-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.trust-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.trust-feature__title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: var(--font-size-base);
}

.trust-feature__text {
  font-size: var(--font-size-sm);
  color: var(--text-on-dark-muted);
  line-height: var(--line-height-relaxed);
}

/* --- Statistics --- */
.stats {
  padding: var(--space-4xl) 0;
  background: var(--surface-100);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat {
  padding: var(--space-xl);
}

.stat__number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.stat__number--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Pricing --- */
.pricing {
  padding: var(--space-5xl) 0;
  background: var(--surface-200);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.price-card--featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.price-card--featured::before {
  content: 'Mest populær';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.price-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.price-card__amount {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: var(--space-xs);
}

.price-card__amount span {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-muted);
}

.price-card__per {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.price-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.price-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.price-card__feature-icon {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Ricardian Contract Explainer --- */
.ricardian {
  padding: var(--space-5xl) 0;
  background: var(--surface-200);
}

.ricardian__flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
  flex-wrap: wrap;
}

.ricardian__step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
}

.ricardian__step h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.ricardian__step p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.ricardian__step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.ricardian__arrow {
  color: var(--gold-500);
  font-size: var(--font-size-2xl);
  font-weight: 300;
  padding-top: var(--space-lg);
}

.ricardian__demo {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.ricardian__demo-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.ricardian__demo-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.ricardian__demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  text-align: left;
}

.ricardian__demo-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.ricardian__demo-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  padding: var(--space-md);
  border: 1px solid var(--surface-400);
  border-radius: var(--radius-md);
  background: var(--surface-200);
  resize: none;
  outline: none;
  transition: border-color var(--duration-fast);
}

.ricardian__demo-input:focus {
  border-color: var(--gold-500);
}

.ricardian__demo-hash {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-xs);
  word-break: break-all;
  background: var(--navy-900);
  color: var(--gold-400);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  line-height: 1.6;
  min-height: 60px;
  transition: all var(--duration-fast);
}

.ricardian__demo-footer {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-lg);
}

/* --- Simplified Pricing --- */
.pricing__simple {
  display: flex;
  justify-content: center;
}

.price-card--solo {
  max-width: 480px;
  width: 100%;
}

.price-card__compare {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-md);
  text-align: center;
}

/* --- AI Chat Interface --- */
.ai-chat {
  max-width: 640px;
  margin: 0 auto;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  max-height: 400px;
  overflow-y: auto;
}

.ai-message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  animation: aiMsgIn 0.3s ease-out;
}

@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-message--user {
  background: var(--navy-800);
  color: var(--surface-100);
  margin-left: var(--space-2xl);
  border-bottom-right-radius: var(--radius-sm);
}

.ai-message--ai {
  background: var(--surface-200);
  color: var(--text-primary);
  margin-right: var(--space-2xl);
  border-bottom-left-radius: var(--radius-sm);
}

.ai-template-preview {
  padding: var(--space-md);
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-md);
}

.ai-thinking {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-style: italic;
}

.ai-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface-400);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
}

/* --- CTA Section --- */
.cta {
  padding: var(--space-5xl) 0;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--surface-100);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ --- */
.faq {
  padding: var(--space-5xl) 0;
  background: var(--surface-100);
}

.faq__grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.faq-item.open {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast);
  width: 100%;
  text-align: left;
  font-size: var(--font-size-base);
}

.faq-item__question:hover {
  color: var(--navy-600);
}

.faq-item__icon {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--gold-500);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand {
  max-width: 280px;
}

.footer__brand-name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--surface-100);
  margin-bottom: var(--space-md);
}

.footer__brand-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer__col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--surface-100);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__link {
  display: block;
  font-size: var(--font-size-sm);
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--gold-400);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  font-size: var(--font-size-xs);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* --- Contract Creation Page --- */
.page-ny {
  background: var(--surface-200);
  min-height: 100vh;
}

.ny-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding: 100px 0 var(--space-2xl);
  color: var(--surface-100);
}

.ny-header__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-on-dark-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  transition: color var(--duration-fast);
}

.ny-header__back:hover {
  color: var(--surface-100);
}

.ny-header__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

.stepper__step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.stepper__step.active {
  color: var(--navy-800);
  font-weight: 700;
}

.stepper__step.completed {
  color: var(--success);
}

.stepper__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.stepper__step.active .stepper__dot {
  background: var(--navy-800);
  color: var(--surface-100);
}

.stepper__step.completed .stepper__dot {
  background: var(--success);
  color: white;
}

.stepper__line {
  width: 60px;
  height: 2px;
  background: var(--surface-300);
  align-self: center;
}

.stepper__step.completed + .stepper__line {
  background: var(--success);
}

/* Template Selector */
.template-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.template-selector__card {
  background: var(--surface-100);
  border: 2px solid var(--surface-300);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.template-selector__card:hover {
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.template-selector__card.selected {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15), var(--shadow-md);
}

/* Contract Form */
.contract-form {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) 0 var(--space-3xl);
}

.form-section {
  background: var(--surface-100);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.form-section__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* Form Section Header (badge + title + description) */
.form-section__header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--surface-300);
}

.form-section__description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* Party Badges */
.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full, 100px);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.party-badge--you {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.party-badge--them {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.party-badge--shared {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-600, #b89730);
}

/* Field Progress */
.field-progress {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-300);
  transition: color var(--duration-fast);
}

.field-progress__count {
  font-weight: 700;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

.field-progress--complete {
  color: var(--success);
}

.field-progress--complete .field-progress__count {
  color: var(--success);
}

/* Section entrance animation */
.form-section {
  animation: sectionIn 0.35s ease-out;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-floating {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-floating:last-child {
  margin-bottom: 0;
}

.form-floating > .form-input,
.form-floating > .form-textarea,
.form-floating > .form-select {
  width: 100%;
  height: 60px;
  line-height: 1.25;
  padding: 24px 16px 8px; /* Extra padding top for label */
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--surface-100);
  border: 1px solid var(--surface-400);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-in-out);
  outline: none;
}

.form-floating > .form-textarea {
  height: 120px;
  resize: vertical;
}

.form-floating > .form-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 18px 16px;
  pointer-events: none;
  transform-origin: 0 0;
  transition: opacity .15s ease-in-out, transform .15s ease-in-out;
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin: 0;
}

.form-floating > .form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.form-floating > .form-input:focus,
.form-floating > .form-textarea:focus,
.form-floating > .form-select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
  background: var(--surface-100);
}

/* Floating label logic */
.form-floating > .form-input:focus ~ .form-label,
.form-floating > .form-input:not(:placeholder-shown) ~ .form-label,
.form-floating > .form-textarea:focus ~ .form-label,
.form-floating > .form-textarea:not(:placeholder-shown) ~ .form-label,
.form-floating > .form-select ~ .form-label {
  transform: scale(.75) translateY(-12px) translateX(2px);
  color: var(--text-secondary);
  font-weight: 600;
}

.form-floating > .form-input:focus ~ .form-label,
.form-floating > .form-textarea:focus ~ .form-label,
.form-floating > .form-select:focus ~ .form-label {
  color: var(--gold-600);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: transparent; /* hide placeholder for floating labels */
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__visual {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .trust__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps::before {
    display: none;
  }

  .templates__grid {
    grid-template-columns: 1fr;
  }

  .ricardian__flow {
    flex-direction: column;
    align-items: center;
  }

  .ricardian__arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .ricardian__step {
    max-width: 100%;
  }

  .ricardian__demo-box {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }

  .price-card--featured:hover {
    transform: translateY(-4px);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .template-selector {
    grid-template-columns: 1fr;
  }

  .stepper {
    flex-wrap: wrap;
  }

  /* Two-party flow: stack vertically on mobile */
  .two-party [style*="grid-template-columns: 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
  .two-party [style*="grid-template-columns: 1fr auto 1fr"] > div:nth-child(2) {
    transform: rotate(90deg);
  }
}
