/* Flurrora — marketing site. Static, dependency-free, no build step.
   "Winter night" design system: midnight blue, ivory snow, dusk peach and
   lilac glows, brass accents — the palette of the app's globe. The falling
   snow is pure CSS (tiled gradients moved with transforms only). */

:root {
  color-scheme: dark;
  --night: #0b1129;
  --night-deep: #070b1c;
  --night-raised: #141b3d;
  --frost: #f6f2ea;
  --muted: #aab2d4;
  --line: rgb(255 255 255 / 11%);
  --glass: rgb(255 255 255 / 4.5%);
  --accent: #f3a88a;
  --lilac: #c3b2f2;
  --brass: #d6ad68;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
}

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

h1,
h2,
h3,
h4,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--frost);
  background:
    radial-gradient(ellipse 70rem 40rem at 50% -8rem, rgb(195 178 242 / 16%), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0e1533 55%, var(--night) 100%);
  background-color: var(--night);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgb(0 0 0 / 35%);
}

.site-header nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-header nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.site-header nav a:hover {
  color: var(--frost);
  background: rgb(255 255 255 / 8%);
}

/* Typography */
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.glow-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--lilac) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-lede,
.section-heading > p:last-child,
.subpage-hero p:not(.eyebrow),
.support-contact p:not(.eyebrow),
.kind-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: var(--night);
  background: var(--frost);
  box-shadow: 0 10px 30px rgb(243 168 138 / 22%);
}

.button-primary:hover {
  box-shadow: 0 14px 36px rgb(243 168 138 / 34%);
}

.button-secondary {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 4%);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 9%);
}

/* Falling snow: three tiled layers of tiny radial gradients. Each layer only
   animates `transform`, so the browser rasterizes it once and the compositor
   moves it — no script, no per-frame paint. */
.snow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.snow span {
  --tile: 260px;
  --sway: 14px;
  position: absolute;
  inset: calc(var(--tile) * -1) -48px 0;
  background-size: var(--tile) var(--tile);
  animation: snowfall 26s linear infinite;
  will-change: transform;
}

.snow span:nth-child(1) {
  background-image:
    radial-gradient(circle at 43% 21%, rgb(255 250 240 / 0.55) 0.8px, transparent 2px),
    radial-gradient(circle at 8% 11%, rgb(255 250 240 / 0.55) 1px, transparent 2.2px),
    radial-gradient(circle at 14% 48%, rgb(255 250 240 / 0.55) 0.9px, transparent 2.1px),
    radial-gradient(circle at 66% 29%, rgb(255 250 240 / 0.55) 0.6px, transparent 1.8px),
    radial-gradient(circle at 57% 55%, rgb(255 250 240 / 0.55) 0.6px, transparent 1.8px),
    radial-gradient(circle at 13% 72%, rgb(255 250 240 / 0.55) 0.8px, transparent 2px),
    radial-gradient(circle at 74% 17%, rgb(255 250 240 / 0.55) 1.1px, transparent 2.3px),
    radial-gradient(circle at 82% 82%, rgb(255 250 240 / 0.55) 0.9px, transparent 2.1px),
    radial-gradient(circle at 39% 88%, rgb(255 250 240 / 0.55) 0.9px, transparent 2.1px),
    radial-gradient(circle at 92% 40%, rgb(255 250 240 / 0.55) 0.6px, transparent 1.8px);
}

.snow span:nth-child(2) {
  --tile: 380px;
  --sway: 26px;
  animation-duration: 18s;
  animation-delay: -6s;
  background-image:
    radial-gradient(circle at 19% 39%, rgb(255 250 240 / 0.75) 1.5px, transparent 2.7px),
    radial-gradient(circle at 71% 17%, rgb(255 250 240 / 0.75) 1.5px, transparent 2.7px),
    radial-gradient(circle at 73% 89%, rgb(255 250 240 / 0.75) 1.3px, transparent 2.5px),
    radial-gradient(circle at 88% 62%, rgb(255 250 240 / 0.75) 1.6px, transparent 2.8px),
    radial-gradient(circle at 49% 14%, rgb(255 250 240 / 0.75) 1.5px, transparent 2.7px),
    radial-gradient(circle at 10% 74%, rgb(255 250 240 / 0.75) 1.2px, transparent 2.4px),
    radial-gradient(circle at 34% 63%, rgb(255 250 240 / 0.75) 1.6px, transparent 2.8px),
    radial-gradient(circle at 56% 42%, rgb(255 250 240 / 0.75) 1.5px, transparent 2.7px);
}

.snow span:nth-child(3) {
  --tile: 540px;
  --sway: 40px;
  animation-duration: 13s;
  animation-delay: -3s;
  filter: blur(0.4px);
  background-image:
    radial-gradient(circle at 25% 91%, rgb(255 250 240 / 0.9) 2.6px, transparent 3.8px),
    radial-gradient(circle at 12% 35%, rgb(255 250 240 / 0.9) 2.2px, transparent 3.4px),
    radial-gradient(circle at 65% 45%, rgb(255 250 240 / 0.9) 2.6px, transparent 3.8px),
    radial-gradient(circle at 44% 72%, rgb(255 250 240 / 0.9) 2.8px, transparent 4px),
    radial-gradient(circle at 86% 12%, rgb(255 250 240 / 0.9) 2.1px, transparent 3.3px),
    radial-gradient(circle at 90% 78%, rgb(255 250 240 / 0.9) 2px, transparent 3.2px);
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(var(--sway), calc(var(--tile) * 0.25), 0);
  }

  75% {
    transform: translate3d(calc(var(--sway) * -1), calc(var(--tile) * 0.75), 0);
  }

  100% {
    transform: translate3d(0, var(--tile), 0);
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 70px 120px;
  text-align: center;
}

.hero::after {
  /* A soft dusk horizon behind the globe. */
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  z-index: -1;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgb(243 168 138 / 22%), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 64px;
}

.hero-lede {
  max-width: 640px;
  margin: 0 auto 34px;
}

/* The screenshot stands inside a glass globe on a brass base. */
.shot-stage {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 9%;
}

.shot-shadow {
  /* The glass sphere. */
  position: absolute;
  inset: 0;
  border: 1.5px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 10%), transparent 38%),
    radial-gradient(circle at 50% 55%, rgb(195 178 242 / 16%), rgb(20 27 61 / 40%) 72%);
  box-shadow:
    inset 0 0 0 10px rgb(255 255 255 / 3%),
    inset 0 -30px 80px rgb(195 178 242 / 14%),
    0 40px 120px rgb(243 168 138 / 14%);
}

.shot-shadow::before {
  /* Highlight streak on the glass. */
  content: "";
  position: absolute;
  top: 13%;
  left: 13%;
  width: 16%;
  height: 6%;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
  transform: rotate(-40deg);
}

.shot-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 38%;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 4px solid #05081a;
  border-radius: 16% / 7.6%;
  background: var(--night-raised);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 16%),
    0 30px 60px rgb(0 0 0 / 45%);
  transform: translate(-50%, -50%);
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.globe-base {
  position: absolute;
  top: 90.5%;
  left: 20%;
  z-index: 2;
  width: 60%;
  height: 17%;
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 18%), transparent 18%),
    linear-gradient(90deg, #4a3220, #8a6440 30%, #c39a5f 50%, #8a6440 70%, #4a3220);
  box-shadow: 0 30px 50px rgb(0 0 0 / 40%);
}

.globe-base::before {
  /* Brass rim where the glass meets the base. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16%;
  background: linear-gradient(90deg, #7a5632, #e6c487 50%, #7a5632);
}

.globe-base::after {
  content: "\2744";
  position: absolute;
  top: 42%;
  left: 50%;
  color: rgb(230 196 135 / 60%);
  font-size: clamp(0.9rem, 2.6vw, 1.5rem);
  line-height: 1;
  transform: translate(-50%, -50%);
}

/* Sections */
.section {
  position: relative;
  padding-block: clamp(90px, 12vw, 150px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgb(243 168 138 / 30%);
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle at 35% 30%, rgb(243 168 138 / 22%), rgb(195 178 242 / 8%));
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Seven worlds */
.worlds {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60rem 30rem at 50% 0%, rgb(195 178 242 / 10%), transparent 70%),
    var(--night-deep);
}

.world-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 940px;
  margin: 0 auto 70px;
}

.world-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.world-list strong {
  font-family: var(--display);
  font-weight: 700;
}

.world-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
}

.gallery figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.gallery figure:nth-child(2) {
  transform: translateY(-28px);
}

.gallery img {
  width: 100%;
  height: auto;
  border: 4px solid #05081a;
  border-radius: 34px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%),
    0 26px 50px rgb(0 0 0 / 45%);
}

.gallery figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Kind to everyone */
.kind {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.kind-list {
  display: grid;
  gap: 12px;
}

.kind-list li {
  position: relative;
  padding: 18px 20px 18px 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  line-height: 1.55;
}

.kind-list li::before {
  content: "\2744";
  position: absolute;
  top: 17px;
  left: 20px;
  color: var(--lilac);
  font-size: 1.05rem;
}

.kind-list strong {
  color: var(--frost);
}

.kind-list span {
  color: var(--muted);
}

/* Closing */
.closing {
  padding-block: 20px 110px;
}

.closing-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 60px);
  border-radius: 40px;
  color: var(--night);
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 35%), transparent 40%),
    linear-gradient(120deg, #f6b89a, var(--accent) 35%, var(--lilac));
  box-shadow: 0 40px 100px rgb(243 168 138 / 16%);
}

.closing img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgb(11 17 41 / 35%);
}

.closing h2 {
  max-width: 680px;
  margin: 0;
}

.closing .eyebrow {
  margin-bottom: 10px;
  color: rgb(11 17 41 / 70%);
}

.closing .button-primary {
  color: var(--frost);
  background: var(--night);
  box-shadow: 0 10px 28px rgb(11 17 41 / 25%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding-block: 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--night-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 60px;
  align-items: start;
}

.footer-inner strong {
  color: var(--frost);
  font-family: var(--display);
  font-size: 1.25rem;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

/* Subpages (support, privacy) */
.subpage-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 100px 110px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.subpage-hero .shell {
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  max-width: 860px;
  margin-inline: auto;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto 32px;
}

.updated {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--glass);
  font-size: 0.8rem;
}

.support-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 60px;
  padding-block: 100px 120px;
}

.support-intro {
  position: sticky;
  top: 40px;
  align-self: start;
}

.support-topics {
  display: grid;
  gap: 14px;
}

.support-topic {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
}

.support-topic > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgb(243 168 138 / 12%);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-topic h3 {
  font-size: 1.3rem;
}

.support-topic p,
.policy p {
  color: var(--muted);
  line-height: 1.75;
}

.support-topic a,
.policy a {
  color: var(--frost);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(243 168 138 / 60%);
  text-underline-offset: 4px;
}

.support-topic strong {
  color: var(--frost);
}

.support-contact {
  padding-block: 0 110px;
}

.support-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 0% 0%, rgb(243 168 138 / 14%), transparent 50%),
    radial-gradient(circle at 100% 100%, rgb(195 178 242 / 12%), transparent 50%),
    var(--night-raised);
}

.support-contact h2 {
  max-width: 520px;
}

.support-contact .text-link {
  margin-top: 16px;
  color: var(--accent);
}

/* Privacy policy */
.policy {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 80px 130px;
}

.policy section {
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.policy section:last-child {
  border-bottom: 0;
}

.policy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.policy h3 {
  margin: 30px 0 8px;
  font-size: 1.3rem;
}

.policy p {
  font-size: 1.03rem;
}

.policy p + p {
  margin-top: 16px;
}

.policy-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
}

.policy-table > div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 28px;
  padding: 20px 24px;
}

.policy-table > div + div {
  border-top: 1px solid var(--line);
}

.policy-table span {
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery img {
    border-radius: 22px;
  }

  .kind,
  .support-layout,
  .support-contact-inner {
    grid-template-columns: 1fr;
  }

  .support-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell,
  .policy {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-header nav {
    font-size: 0.8rem;
  }

  .site-header nav a {
    padding: 6px 10px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 50px 80px;
  }

  .hero-copy {
    margin-bottom: 44px;
  }

  .shot-frame {
    border-width: 3px;
  }

  .gallery {
    grid-template-columns: minmax(0, 260px);
    gap: 40px;
  }

  .gallery figure:nth-child(2) {
    transform: none;
  }

  .gallery img {
    border-radius: 34px;
  }

  .feature-card,
  .support-topic {
    padding: 24px 22px;
  }

  .support-topic {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }

  .subpage-hero {
    padding-block: 70px 80px;
  }

  .support-layout,
  .policy {
    padding-block: 64px 90px;
  }

  .policy-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .button,
  .site-header nav a {
    transition: none;
  }

  /* Keep the flakes as a still, gentle snowfall. */
  .snow span {
    animation: none;
  }
}
