/* ---------- Font ---------- */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --glass: rgb(255 255 255 / 0.6);
  --glass-border: rgb(255 255 255 / 0.85);
  --text: #111114;
  --muted: #5f5f68;
  --line: rgb(17 17 20 / 0.08);
  --shadow: rgb(24 24 48 / 0.18);

  --gradient: linear-gradient(100deg, #3d7bff 0%, #8b5cf6 38%, #ec4899 70%, #fb923c 100%);
  --aurora-a: hsl(218 100% 72% / 0.45);
  --aurora-b: hsl(280 95% 75% / 0.38);
  --aurora-c: hsl(330 95% 78% / 0.32);
  --aurora-d: hsl(28 100% 72% / 0.3);

  --tint-l: 96%;
  --tint-l2: 91%;
  --tint-s: 90%;
  --accent-l: 38%;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-card: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --surface: #16161c;
    --glass: rgb(30 30 38 / 0.55);
    --glass-border: rgb(255 255 255 / 0.1);
    --text: #f5f5f7;
    --muted: #a3a3ad;
    --line: rgb(255 255 255 / 0.1);
    --shadow: rgb(0 0 0 / 0.5);

    --aurora-a: hsl(218 90% 55% / 0.28);
    --aurora-b: hsl(275 85% 58% / 0.24);
    --aurora-c: hsl(330 85% 58% / 0.18);
    --aurora-d: hsl(28 95% 55% / 0.14);

    --tint-l: 11%;
    --tint-l2: 14%;
    --tint-s: 30%;
    --accent-l: 76%;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Keeps descenders from being clipped by background-clip. */
  padding-bottom: 0.08em;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Small arrow icon drawn with a mask so it follows the text colour. */
.arrow {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

a:hover .arrow {
  transform: translate(2px, -2px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px -10px var(--shadow);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px -12px var(--shadow);
}

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-light {
  background: #fff;
  color: #111114;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 9px;
  background: var(--gradient);
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links > a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(72px, 11vw, 132px) 0 clamp(80px, 10vw, 128px);
  text-align: center;
}

.aurora {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 22% 28%, var(--aurora-a), transparent 70%),
    radial-gradient(34% 40% at 78% 22%, var(--aurora-b), transparent 70%),
    radial-gradient(36% 40% at 62% 72%, var(--aurora-c), transparent 70%),
    radial-gradient(30% 34% at 30% 78%, var(--aurora-d), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 3px rgb(139 92 246 / 0.15);
}

.hero h1 {
  font-size: clamp(44px, 10vw, 124px);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 580px;
  text-wrap: balance;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* App-icon dock */

.dock {
  --icon: clamp(40px, 11.5vw, 76px);
  --gap: clamp(8px, 1.6vw, 16px);
  display: flex;
  gap: var(--gap);
  margin-top: clamp(56px, 8vw, 88px);
  padding: calc(var(--gap) * 0.9);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--icon) * 0.22 + var(--gap));
  background: var(--glass);
  box-shadow: 0 30px 60px -30px var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.dock li {
  animation: bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.85s);
}

.dock a {
  position: relative;
  display: block;
  width: var(--icon);
  height: var(--icon);
  transition: transform 0.3s var(--ease);
}

.dock img {
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.35);
}

.dock a:hover,
.dock a:focus-visible {
  transform: translateY(-10px) scale(1.1);
}

.dock a::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease);
}

.dock a:hover::after,
.dock a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.hero-404 {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
}

/* ---------- Apps ---------- */

.apps {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2,
.about h2 {
  font-size: clamp(36px, 5.4vw, 64px);
}

.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  --tint: hsl(var(--h) var(--tint-s) var(--tint-l));
  --tint-2: hsl(var(--h) var(--tint-s) var(--tint-l2));
  --accent: hsl(var(--h) 60% var(--accent-l));
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid hsl(var(--h) 50% 50% / 0.1);
  border-radius: var(--radius-card);
  background: linear-gradient(170deg, var(--tint) 30%, var(--tint-2));
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -34px hsl(var(--h) 50% 25% / 0.45);
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 28px 28px 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 22.5%;
  box-shadow: 0 10px 22px -10px hsl(var(--h) 50% 25% / 0.55);
}

.tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: hsl(var(--h) 80% 50% / 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.card-body > p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card-body > .rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.rating span:not(.star) {
  color: var(--muted);
  font-weight: 500;
}

.star {
  width: 14px;
  height: 14px;
  background: #f5a623;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.5 1.3 6.5L12 17l-5.9 3.3 1.3-6.5L2.5 9.3l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.5 1.3 6.5L12 17l-5.9 3.3 1.3-6.5L2.5 9.3l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

a.card:hover .arrow {
  transform: translate(2px, -2px);
}

/* iPhone / Android links on a card that isn't itself a link. */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.platform-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: hsl(var(--h) 80% 50% / 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.25s,
    transform 0.25s var(--ease);
}

.platform-links a:hover {
  background: hsl(var(--h) 80% 50% / 0.18);
  transform: translateY(-1px);
}

/* Screenshot stage: one centred screenshot, or three fanned out. */

.stage {
  --shot: 210px;
  position: relative;
  flex: 1;
  min-height: 290px;
}

.shot {
  position: absolute;
  top: 36px;
  left: 50%;
  width: var(--shot);
  height: auto;
  border-radius: calc(var(--shot) * 0.12);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.35);
  transform: translateX(-50%);
  transform-origin: 50% 60%;
  transition: transform 0.6s var(--ease);
}

.card:hover .shot-main {
  transform: translateX(-50%) translateY(-10px);
}

.card-wide .shot:nth-child(1) {
  transform: translateX(-50%) translate(-56%, 36px) rotate(-7deg);
}

.card-wide .shot:nth-child(2) {
  transform: translateX(-50%) translate(56%, 36px) rotate(7deg);
}

.card-wide:hover .shot:nth-child(1) {
  transform: translateX(-50%) translate(-60%, 28px) rotate(-9deg);
}

.card-wide:hover .shot:nth-child(2) {
  transform: translateX(-50%) translate(60%, 28px) rotate(9deg);
}

@media (min-width: 1024px) {
  .card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .card-wide .card-head {
    justify-content: flex-start;
  }

  .card-wide .card-body {
    display: flex;
    flex-direction: column;
    padding: 36px;
  }

  .card-wide .card-body > p {
    font-size: 17px;
  }

  .card-wide h3 {
    font-size: 36px;
  }

  .card-wide .card-cta,
  .card-wide .platform-links {
    margin-top: auto;
    padding-top: 18px;
  }

  .card-wide .stage {
    --shot: 176px;
    margin-right: 24px;
  }

  .card-wide .shot {
    top: 72px;
  }

  /* Mini Notes takes the whole first row. */
  .card-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .card-featured .card-body {
    padding: 44px;
  }

  .card-featured h3 {
    font-size: 44px;
  }

  .card-featured .stage {
    --shot: 216px;
  }
}

/* ---------- Platforms ---------- */

.platforms {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.platform-card {
  --accent: hsl(var(--h) 60% var(--accent-l));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid hsl(var(--h) 50% 50% / 0.1);
  border-radius: var(--radius-card);
  background: linear-gradient(170deg, hsl(var(--h) var(--tint-s) var(--tint-l)) 30%, hsl(var(--h) var(--tint-s) var(--tint-l2)));
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -34px hsl(var(--h) 50% 25% / 0.45);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
}

.platform-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-name {
  margin-top: 24px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.platform-text {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.platform-icons {
  display: flex;
  margin-top: 28px;
}

.platform-icons img {
  width: 48px;
  height: 48px;
  border: 2px solid hsl(var(--h) var(--tint-s) var(--tint-l));
  border-radius: 24%;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.4);
}

.platform-icons img + img {
  margin-left: -8px;
}

.platform-card .card-cta {
  margin-top: 24px;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin-bottom: 28px;
}

.about-intro > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.about-intro > p + p {
  margin-top: 16px;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles li {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.principle-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gradient);
}

.principle-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principles h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.principles p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding: clamp(56px, 8vw, 104px) 24px;
  border-radius: 36px;
  background: #0e0e13;
  color: #f5f5f7;
  text-align: center;
}

.aurora-cta {
  --aurora-a: hsl(218 95% 60% / 0.5);
  --aurora-b: hsl(275 90% 62% / 0.45);
  --aurora-c: hsl(330 90% 62% / 0.35);
  --aurora-d: hsl(28 95% 60% / 0.3);
  inset: 0;
  filter: blur(40px);
}

.cta h2 {
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.05em;
}

.cta p {
  max-width: 460px;
  margin: 18px auto 32px;
  color: rgb(245 245 247 / 0.75);
  font-size: clamp(16px, 1.6vw, 19px);
}

@media (prefers-color-scheme: dark) {
  .cta {
    border: 1px solid var(--line);
    background: var(--surface);
  }
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer a {
  transition: color 0.2s;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-featured {
    grid-column: span 2;
  }

  /* The second wide card becomes a regular card with one screenshot. */
  .card-wide:not(.card-featured) .shot:not(.shot-main) {
    display: none;
  }

  .card-featured .stage {
    min-height: 360px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .nav-links > a:not(.btn) {
    display: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 280px);
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-featured {
    grid-column: span 1;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    min-height: 520px;
  }

  .card-body {
    padding: 24px 24px 0;
  }

  .stage {
    --shot: 190px;
  }

  .card-featured .stage {
    --shot: 150px;
    min-height: 300px;
  }

  .card-wide .shot:nth-child(1) {
    transform: translateX(-50%) translate(-58%, 30px) rotate(-7deg);
  }

  .card-wide .shot:nth-child(2) {
    transform: translateX(-50%) translate(58%, 30px) rotate(7deg);
  }

  .about-intro > p:not(.eyebrow) {
    font-size: 17px;
  }

  .principles li {
    padding: 20px;
  }

  .cta {
    border-radius: 28px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
  }

  .footer-links a {
    white-space: nowrap;
  }
}

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

  *,
  ::before,
  ::after {
    animation: none !important;
    transition: none !important;
  }
}
