:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --link: #0066cc;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.03), 0 12px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 64px rgba(0, 0, 0, 0.09);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI",
    Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 52px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--faint);
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.nav__links a {
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background: radial-gradient(40% 40% at 30% 35%, rgba(255, 159, 10, 0.16), transparent 70%),
    radial-gradient(35% 40% at 70% 30%, rgba(191, 90, 242, 0.14), transparent 70%),
    radial-gradient(40% 45% at 50% 70%, rgba(48, 176, 199, 0.14), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  to {
    transform: translate3d(0, -4%, 0) scale(1.08) rotate(4deg);
  }
}

.hero__content {
  position: relative;
  max-width: 860px;
  will-change: transform, opacity;
}

.eyebrow {
  font-size: 19px;
  font-weight: 600;
  color: var(--faint);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(56px, 11vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
  background: linear-gradient(180deg, #1d1d1f 30%, #55555a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero__tagline {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.hero__links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  animation: scrollhint 2s var(--ease) infinite;
}

@keyframes scrollhint {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.09);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover {
  background: #000;
}

.btn--sm {
  font-size: 14px;
  padding: 8px 16px;
}

.link {
  color: var(--link);
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}

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

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 48px;
}

.section__head .section__title {
  margin: 0;
}

.section__sub {
  color: var(--faint);
  margin: 0;
  font-size: 17px;
}

/* ---------- Featured ---------- */
.featured {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature {
  --accent: #0a84ff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.feature:nth-child(even) .feature__visual {
  order: -1;
}

.feature__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}

.feature__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature__title {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.feature__tagline {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.feature__desc {
  color: var(--muted);
  margin: 0 0 24px;
}

.highlights {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
}

.highlights li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text);
}

.highlights li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  translate: 0 -2px;
}

.feature__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.feature__langs {
  margin-top: 28px;
}

/* Visual */
.feature__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--accent) 38%, white) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, white), color-mix(in srgb, var(--accent) 22%, white));
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  gap: 20px;
  text-align: center;
  will-change: transform;
}

.art__icon {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  font-size: 88px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.art__icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  image-rendering: auto;
}

.art__name {
  font-size: 15px;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 60%, #1d1d1f);
  letter-spacing: 0.02em;
}

.shot {
  width: 86%;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  will-change: transform;
}

/* Phone */
.phone {
  --w: 390px;
  --h: 844px;
  --s: 0.56;
  position: relative;
  width: calc(var(--w) * var(--s) + 20px);
  height: calc(var(--h) * var(--s) + 20px);
  padding: 10px;
  border-radius: 46px;
  background: #1d1d1f;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22), inset 0 0 0 2px #3a3a3c;
  will-change: transform;
  margin: 48px 0;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}

.phone__screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  border-radius: 12px;
  background: #1d1d1f;
}

.phone iframe {
  width: var(--w);
  height: var(--h);
  border: 0;
  transform: scale(var(--s));
  transform-origin: 0 0;
  pointer-events: none;
}

/* Language bar */
.langs__bar {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  background: rgba(0, 0, 0, 0.04);
}

.langs__bar span {
  height: 100%;
  border-radius: 99px;
}

.langs__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
}

.langs__legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tile {
  --accent: #0a84ff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  min-height: 340px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.tile__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  margin-bottom: 6px;
}

.tile__icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.tile__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.tile__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tile__desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.tile__foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tile__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
}

.tile__actions div {
  display: flex;
  gap: 16px;
}

.status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 3px 10px;
  border-radius: 99px;
  color: color-mix(in srgb, var(--accent) 75%, #1d1d1f);
  background: color-mix(in srgb, var(--accent) 14%, white);
}

/* ---------- Skeleton ---------- */
.feature--skeleton,
.tile--skeleton {
  background: linear-gradient(90deg, #f0f0f2 0%, #f8f8fa 50%, #f0f0f2 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  box-shadow: none;
}

.section--alt .tile--skeleton {
  background: linear-gradient(90deg, #ebebed 0%, #f3f3f5 50%, #ebebed 100%);
  background-size: 200% 100%;
}

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

.notice {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Motion ---------- */
.load-in {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  animation: loadin 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}

@keyframes loadin {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

/* Efter reveal: låt hover-transition ta över */
.tile.reveal.is-in {
  transition: opacity 1s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  transition-delay: 0s;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feature:nth-child(even) .feature__visual {
    order: 0;
  }
  .feature__visual {
    min-height: 380px;
    order: -1 !important;
  }
  .feature__text {
    padding: 40px 28px 44px;
  }
  .section {
    padding: 88px 0;
  }
  .nav__links {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 26px;
    min-height: 0;
  }
  .phone {
    --s: 0.5;
  }
  .nav__links a:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .load-in,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
