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

:root {
  --bg-primary: #fcfcfd;
  --bg-secondary: #f6f8fb;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border: #e8ecf2;
  --border-light: #d1d9e6;
  --border-subtle: #f0f2f5;
  --text-primary: #0c1222;
  --text-secondary: #4a5568;
  --text-muted: #8896ab;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.07);
  --accent-glow-md: rgba(37, 99, 235, 0.12);
  --accent-light: #eff6ff;
  --accent-surface: #f0f5ff;
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.04);
  --shadow-md: 0 4px 16px rgba(12, 18, 34, 0.06);
  --shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.08);
  --shadow-accent: 0 8px 32px rgba(37, 99, 235, 0.18);
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

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

/* Subtle noise overlay (matches norrplex.se) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.5s var(--ease-out);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(232, 236, 242, 0.6);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.logo-norr { color: var(--text-primary); }
.logo-plex { color: var(--accent); }

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  background: var(--accent-glow-md);
  color: var(--accent);
  border-radius: 6px;
  margin-left: 8px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  background: var(--bg-elevated);
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.nav-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-2px);
}

.nav-back svg {
  transition: transform 0.35s var(--ease-out);
}

.nav-back:hover svg {
  transform: translateX(-3px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 15% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 70%);
  animation: gridFade 1.5s ease-out;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.08);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.05);
  bottom: 50px;
  left: -80px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s var(--ease-out);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #22c55e;
  animation: pingDot 2s ease-out infinite;
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.rotating-text-inner {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 50px;
  transition: all 0.35s var(--ease-out);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

/* Hero visual (Lottie) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.lottie-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottie-wrap::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.08), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.lottie-wrap dotlottie-wc {
  width: 100% !important;
  height: 100% !important;
  max-width: 760px;
  max-height: 760px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
  transition: border-color 0.3s;
}

.scroll-hint:hover { border-color: var(--accent); }

.scroll-hint span {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease-out) infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ─── EXPLAIN ─── */
.explain {
  padding: 100px 0 60px;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.explain-header {
  text-align: center;
  margin-bottom: 56px;
}

.explain-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all 0.35s var(--ease-out);
}

.feature-card:hover .feature-icon {
  background: var(--accent-glow-md);
  transform: scale(1.06);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Hint card pointing to widget */
.hint-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--accent-surface), var(--bg-secondary));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-md);
  position: relative;
}

.hint-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 64px;
  width: 16px;
  height: 16px;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(37, 99, 235, 0.12);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  transform: rotate(45deg);
}

.hint-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.hint-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hint-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 80px 0 100px;
}

.cta-card {
  background: linear-gradient(135deg, #0c1222, #1a2744);
  border-radius: 28px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card .section-label {
  color: rgba(147, 197, 253, 0.85);
}

.cta-card .section-title {
  color: #ffffff;
  margin-bottom: 18px;
}

.cta-card p {
  font-size: 1.02rem;
  color: rgba(203, 213, 225, 0.85);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-card .btn-primary {
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cta-card .btn-primary:hover {
  background: #f0f5ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ─── FOOTER ─── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .lottie-wrap { max-width: 320px; }
  .scroll-hint { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hint-card::after { right: 50%; transform: translateX(50%) rotate(45deg); }
}

@media (max-width: 600px) {
  .nav-back { padding: 8px 14px; font-size: 0.78rem; }
  .nav-back span { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .cta-card { padding: 52px 24px; border-radius: 20px; }
  .footer-content { justify-content: center; text-align: center; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
