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

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.55);
  --fg-soft: rgba(255, 255, 255, 0.72);
  --brand-red: #e53935;
  --cta: #f54e00;
  --flo: #5a5bb1;
  --kort: #2f6b4f;
  --omd-a: #3d8b6e;
  --omd-b: #1e4d3a;
  --preview-bg: #1a1a1a;
  --max: 1120px;
}

::selection {
  background: #fafafa;
  color: #0a0a0a;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(229, 57, 53, 0.08), transparent 55%),
    var(--bg);
}

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

a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

main {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* —— Nav —— */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  animation: rise 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.5rem 0.55rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.nav-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  color: var(--fg-muted) !important;
}

/* —— Hero —— */
.hero {
  padding: 1.75rem 0 4.5rem;
  animation: rise 0.8s 0.08s ease both;
}

.hero-copy {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.4rem, 3.6vw, 1.97rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.035em;
  color: var(--fg);
}

/* —— Products (Cursor-style equal columns) —— */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  animation: rise 0.9s 0.16s ease both;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.product-copy h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-copy p {
  margin: 0 0 0.85rem;
  max-width: 18rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg-muted);
}

.product-redacted {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  max-width: 16rem;
  word-break: break-all;
  opacity: 0.85;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cta);
  transition: opacity 0.2s ease;
}

.product-cta:hover {
  opacity: 0.8;
}

.product-cta--soon {
  color: var(--fg-muted);
  cursor: default;
  font-weight: 600;
}

.product-cta--soon:hover {
  opacity: 1;
}

.product-cta span {
  display: inline-block;
  line-height: 1;
  font-size: 1.05em;
  transform: translateY(1.5px);
  transition: transform 0.2s ease;
}

.product-cta:hover span {
  transform: translate(3px, 1.5px);
}

.product-preview {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  height: 240px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.device {
  position: absolute;
  left: 50%;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.device--iphone {
  top: calc(3rem + 6px);
  width: 152px;
}

.device--window {
  top: 1.75rem;
}

.device--ipad {
  top: auto;
  bottom: -32px;
}

.device-bezel {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.device-screen {
  overflow: hidden;
  background: #111;
}

/* iPhone */
.device--iphone .device-bezel {
  width: 152px;
  height: 320px;
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2a2a2a, #111);
}

.device--iphone .device-island {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 15px;
  border-radius: 999px;
  background: #0a0a0a;
  transform: translateX(-50%);
}

.device--iphone .device-screen {
  height: 100%;
  border-radius: 24px;
  padding: 2rem 0.85rem 1rem;
}

.device-screen--flo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0e0e14 100%);
}

.flo-art {
  width: 48px;
  height: 48px;
  margin-top: 0.35rem;
  margin-bottom: 8px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.flo-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flo-meta .preview-line:first-child {
  background: rgba(255, 255, 255, 0.55);
}

.flo-progress {
  width: 100%;
  height: 3px;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.flo-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #8b8ce0;
}

.flo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
}

.flo-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.flo-controls .play {
  width: 18px;
  height: 18px;
  background: #fff;
}

/* Window (kort) */
.device--window {
  width: calc(100% - 2rem);
}

.device--window .device-bezel {
  width: 100%;
  height: 280px;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
  background: linear-gradient(180deg, #122018 0%, #0e0e0e 100%);
}

.device--window .preview-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.device--window .preview-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.device-screen--kort {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  height: calc(100% - 2.2rem);
  padding: 0.85rem 0.85rem 1rem;
}

.preview-keys {
  display: flex;
  height: 72px;
  gap: 2px;
}

.preview-keys i {
  position: relative;
  flex: 1;
  border-radius: 0 0 4px 4px;
  background: #f2f2f2;
}

.preview-keys i.black {
  flex: 0.65;
  height: 58%;
  margin: 0 -5px;
  z-index: 1;
  background: #1c1c1c;
  border-radius: 0 0 3px 3px;
}

.preview-notes {
  position: relative;
  flex: 1;
  min-height: 72px;
  margin: 0 0.15rem;
}

.preview-notes span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 14px;
  height: var(--h);
  border-radius: 4px;
  background: rgba(79, 168, 116, 0.55);
}

.preview-notes span:nth-child(2),
.preview-notes span:nth-child(4) {
  background: rgba(79, 168, 116, 0.9);
}

.preview-notes span:nth-child(3) {
  background: rgba(79, 168, 116, 0.65);
}

.preview-notes span:nth-child(5) {
  background: rgba(79, 168, 116, 0.4);
}

/* iPad (landscape) */
.device--ipad {
  width: calc(100% - 1.25rem);
  max-width: none;
}

.device--ipad .device-bezel {
  width: 100%;
  height: 220px;
  padding: 8px 8px 0;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  background: linear-gradient(160deg, #2a2a2a, #111);
}

.device--ipad .device-screen {
  height: 100%;
  border-radius: 10px 10px 0 0;
  padding: 0.85rem 0.95rem 0;
}

.device-screen--omd {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  align-items: start;
  background: linear-gradient(180deg, #12241c 0%, #0e0e0e 100%);
}

@media (max-width: 719px) {
  .device-screen--omd {
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto;
  }

  .device-screen--omd .preview-accounts {
    grid-column: 1 / -1;
  }
}

.device-screen--omd .preview-wealth {
  padding-top: 0.15rem;
}

.device-screen--omd .preview-accounts {
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.preview-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.preview-strip span {
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-strip span:nth-child(2) {
  background: rgba(74, 180, 120, 0.22);
}

.preview-strip span:nth-child(3) {
  background: rgba(255, 255, 255, 0.12);
}

.preview-strip span:nth-child(4) {
  background: rgba(74, 180, 120, 0.14);
}

.preview-strip-accounts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: -0.35rem;
}

.preview-strip-accounts .preview-account {
  grid-template-columns: 10px 1fr 28px;
  gap: 0.4rem;
}

.preview-strip-accounts .preview-account i {
  width: 10px;
  height: 10px;
}

.preview-strip-accounts .preview-account:nth-child(4) i {
  background: rgba(229, 57, 53, 0.45);
}

.preview-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-wealth-label {
  width: 56%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-wealth-value {
  width: 84%;
  height: 14px;
  margin-top: 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.preview-wealth-delta {
  width: 38%;
  height: 7px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: rgba(74, 180, 120, 0.75);
}

.device-screen--omd .preview-chart {
  height: 56px;
  align-self: start;
  min-width: 0;
  margin-right: 0.65rem;
}

.preview-chart {
  position: relative;
  height: 48px;
  margin-top: 0.1rem;
  overflow: visible;
}

.preview-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.preview-chart-line {
  fill: none;
  stroke: #4ab478;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.preview-chart-fill {
  fill: rgba(74, 180, 120, 0.2);
}

.preview-accounts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-account {
  display: grid;
  grid-template-columns: 12px 1fr 36px;
  align-items: center;
  gap: 0.55rem;
}

.preview-account i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-account:nth-child(2) i {
  background: rgba(74, 180, 120, 0.55);
}

.preview-account:nth-child(3) i {
  background: rgba(90, 91, 177, 0.55);
}

.preview-account b {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.preview-account em {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 2rem;
  flex-shrink: 0;
  animation: rise 1s 0.28s ease both;
}

.footer[hidden] {
  display: none !important;
}

.mascot-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.75rem;
}

.mascot {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(229, 57, 53, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.bubbles {
  display: flex;
  align-items: center;
  padding-top: 0.35rem;
}

.bubble {
  position: relative;
  margin: 0;
  padding: 0.45rem 0.85rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 20, 20, 0.85);
  color: var(--fg-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  transform: rotate(2.5deg);
  border-radius: 255px 20px 225px 15px / 20px 225px 15px 255px;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 20, 20, 0.85);
  transform: translateY(-50%) rotate(45deg) skewY(-6deg);
}

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

@media (min-width: 720px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    width: min(100% - 3rem, var(--max));
    padding: 1.5rem 0 1.5rem;
    height: 100%;
    min-height: 100%;
  }

  .nav {
    padding: 1rem 0 1.5rem;
  }

  .nav-links a {
    padding: 0.5rem 0.7rem;
    font-size: 0.9375rem;
  }

  .hero {
    padding: 1.5rem 0 4.5rem;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .product-preview {
    height: 280px;
  }

  .device--iphone {
    top: calc(3.5rem + 6px);
    width: 168px;
  }

  .device--iphone .device-bezel {
    width: 168px;
    height: 360px;
  }

  .device--window .device-bezel {
    height: 320px;
  }

  .device--ipad {
    top: auto;
    bottom: -40px;
  }

  .device--ipad .device-bezel {
    height: 248px;
  }
}

@media (min-width: 960px) {
  .hero-copy {
    max-width: 46rem;
  }

  .products {
    gap: 2.25rem;
  }

  .product-copy h2 {
    font-size: 1.25rem;
  }

  .product-preview {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
