@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/schibsted-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090b;
  --surface: #0e1013;
  --surface-2: #12151a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --muted: #9aa0aa;
  --accent: #6f9bff;
  --accent-2: #a78bfa;
  --accent-3: #34d6e6;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --border: rgba(10, 12, 16, 0.1);
    --text: #0b0c0e;
    --muted: #5b6470;
    --accent: #3b6fe0;
    --accent-2: #7c5cf0;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% -15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}

a {
  color: inherit;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.brand__name {
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-login {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-login:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 12vh, 136px) 0 96px;
}

.hero__glow {
  position: absolute;
  top: -170px;
  left: 50%;
  width: min(760px, 92vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent) 55%, transparent 76%);
  filter: blur(18px);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -16px color-mix(in srgb, var(--accent) 60%, transparent);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-mock {
  width: min(880px, 100%);
  margin-top: clamp(48px, 7vw, 84px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
}

.app-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.app-mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.app-mock__body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 300px;
}

.app-mock__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border-right: 1px solid var(--border);
}

.sk {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.sk--70 { width: 70%; }
.sk--90 { width: 90%; }
.sk--60 { width: 60%; }
.sk--80 { width: 80%; }
.sk--50 { width: 50%; }

.app-mock__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.app-mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-mock__cards span {
  height: 66px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.app-mock__chart {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 8px;
  min-height: 120px;
}

.app-mock__chart i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.app-mock__chart i:nth-child(1) { height: 38%; }
.app-mock__chart i:nth-child(2) { height: 58%; }
.app-mock__chart i:nth-child(3) { height: 46%; }
.app-mock__chart i:nth-child(4) { height: 72%; }
.app-mock__chart i:nth-child(5) { height: 54%; }
.app-mock__chart i:nth-child(6) { height: 84%; }
.app-mock__chart i:nth-child(7) { height: 64%; }
.app-mock__chart i:nth-child(8) { height: 96%; }

.features {
  padding: 96px 0 120px;
}

.features__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.features__lead {
  max-width: 52ch;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-footer__link:hover {
  color: var(--text);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__inner > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__inner > *:nth-child(2) { animation-delay: 0.06s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.12s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.18s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .app-mock__body {
    grid-template-columns: 1fr;
  }

  .app-mock__side {
    display: none;
  }

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

  .hero {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__inner > * {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
