@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Inter-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Inter-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --paper-deep: #e9e7e0;
  --surface: #e7e5de;
  --ink: #121217;
  --ink-soft: #3f3f48;
  --muted: #78777f;
  --hairline: rgba(18, 18, 23, 0.1);
  --accent: #4b44e0;
  --accent-soft: rgba(75, 68, 224, 0.12);
  --accent-foreground: #fff;
  --bezel: #101014;
  --shadow: rgba(10, 10, 16, 0.26);
  --font-display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 76% 28%, var(--accent-soft) 0, transparent 26rem), var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-mark {
  position: relative;
  display: inline-block;
  flex: none;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.orbit-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27%;
  height: 27%;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translate(-50%, -50%);
}

.orbit-mark--small {
  width: 28px;
  height: 28px;
}

.orbit-mark--tiny {
  width: 19px;
  height: 19px;
  border-width: 2px;
}

.orbit-mark--micro {
  width: 13px;
  height: 13px;
  border-width: 1.5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  min-height: calc(100vh - 92px);
  padding: 72px 0 80px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__intro {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.privacy-promise {
  display: flex;
  max-width: 640px;
  margin-top: 26px;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.privacy-promise__title {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.privacy-promise ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  list-style: none;
  white-space: nowrap;
}

.privacy-promise li {
  display: inline;
}

.privacy-promise li:not(:last-child)::after {
  margin: 0 8px;
  color: var(--accent);
  content: "·";
  font-weight: 700;
}

.actions {
  display: grid;
  gap: 14px;
  max-width: 580px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.button--primary {
  justify-content: flex-start;
  gap: 14px;
  min-height: 76px;
  padding: 11px 18px 11px 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 36px -24px var(--shadow);
}

.button--primary:hover {
  background: #303038;
}

.button__platform {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 9px;
  letter-spacing: -0.02em;
}

.button__label {
  display: grid;
  gap: 3px;
}

.button__label strong {
  font-size: 16px;
}

.button__label small {
  color: #aaa9a4;
  font-size: 12px;
  font-weight: 400;
}

.button__arrow {
  margin-left: auto;
  padding-right: 8px;
  font-size: 20px;
}

.ios-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.ios-invite__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.ios-invite p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.button--secondary {
  min-height: 46px;
  gap: 9px;
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.button--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.android-note {
  max-width: 570px;
  margin: 16px 8px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.preview {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 14px;
}

.preview__halo {
  position: absolute;
  top: 2%;
  left: 50%;
  width: min(38vw, 510px);
  aspect-ratio: 1;
  border: clamp(38px, 5vw, 70px) solid var(--accent);
  border-radius: 50%;
  opacity: 0.065;
  transform: translateX(-50%);
}

.phone {
  position: relative;
  width: min(355px, 82vw);
  padding: 9px;
  border-radius: 52px;
  background: var(--bezel);
  box-shadow:
    0 48px 80px -30px var(--shadow),
    0 12px 30px -16px var(--shadow);
  transform: rotate(2deg);
}

.phone__screen {
  position: relative;
  min-height: 668px;
  overflow: hidden;
  border-radius: 48px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.statusbar__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
}

.iconbtn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}

.topbar__mark {
  opacity: 0.9;
}

.scroll {
  flex: 1;
  position: relative;
}

.scroll__end {
  height: 100px;
}

.phone .hero {
  display: block;
  min-height: auto;
  padding: 20px 24px 30px;
  position: relative;
  overflow: hidden;
}

.phone .hero__halo {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border: 24px solid var(--accent);
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}

.phone .hero__overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.phone .hero__name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}

.phone .hero__members {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone .hero__hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stack {
  display: inline-flex;
  padding-left: 4px;
  flex: 0 0 auto;
}

.chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--paper);
  margin-left: -6px;
  transition: border-color 0.3s ease;
}

.chip--a {
  background: #7c5cd6;
}
.chip--m {
  background: #2e7d6b;
}
.chip--p {
  background: #c2503c;
}
.chip--j {
  background: #3a6ea8;
}
.chip--s {
  background: #b0761a;
}
.chip--more {
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

.phone .feed {
  padding: 0 24px 0;
}

.phone .feed__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.12;
  margin: 26px auto;
}

.phone .post {
  padding: 0;
}

.phone .post__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.phone .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}

.phone .post__who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.phone .post__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.phone .post__meta {
  font-size: 11px;
  color: var(--muted);
}

.phone .post__body {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.phone .post__body--media {
  margin-bottom: 12px;
}

.phone .post__foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.phone .post__comments {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.phone .post__open {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.mosaic {
  display: flex;
  gap: 2px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

.mosaic__main {
  flex: 1.05;
  min-width: 0;
}

.mosaic__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ph {
  display: block;
  background-size: cover;
  background-position: center;
}

.mosaic__col .ph {
  flex: 1;
  min-height: 0;
}

.ph--dusk {
  background-image:
    radial-gradient(120% 90% at 20% 90%, #f2b25c 0%, transparent 55%),
    linear-gradient(160deg, #2a2350 0%, #6b3f74 55%, #c96f4a 100%);
}

.ph--lake {
  background-image:
    radial-gradient(140% 80% at 50% 110%, #d8e6e9 0%, transparent 50%),
    linear-gradient(180deg, #28425e 0%, #4f7d95 70%, #9fc2c9 100%);
}

.ph--forest {
  background-image:
    radial-gradient(100% 100% at 80% 0%, #c9d6a3 0%, transparent 45%),
    linear-gradient(200deg, #1e3d2f 0%, #3f6b4a 60%, #87a06b 100%);
}

.fab {
  position: absolute;
  right: 18px;
  bottom: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -10px rgba(10, 10, 16, 0.5);
  border: none;
  cursor: default;
}

.homebar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.15;
  z-index: 10;
  pointer-events: none;
}

.preview__caption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.preview__caption span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: auto;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-top: 64px;
  }

  .hero__content {
    max-width: 680px;
  }

  .preview {
    padding-bottom: 24px;
  }

  .preview__halo {
    width: min(560px, 85vw);
  }

  .phone {
    transform: rotate(1deg);
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .availability {
    padding-inline: 11px;
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 64px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  .hero__intro {
    margin-top: 24px;
    font-size: 17px;
  }

  .privacy-promise {
    margin-top: 22px;
  }

  .privacy-promise ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11px;
    white-space: normal;
  }

  .privacy-promise li {
    display: inline-flex;
  }

  .actions {
    margin-top: 30px;
  }

  .ios-invite {
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 22px;
  }

  .button--secondary {
    width: 100%;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
  }

  .site-footer p {
    width: calc(100% - 25px);
  }

  .site-footer a {
    margin-left: 25px;
  }
}

@media (max-width: 400px) {
  .privacy-promise li:not(:last-child)::after {
    margin: 0 4px;
  }

  .phone {
    padding: 6px;
    border-radius: 36px;
  }

  .phone__screen {
    min-height: 540px;
    border-radius: 32px;
  }

  .phone .hero {
    padding: 14px 16px 22px;
  }

  .phone .hero__name {
    font-size: 28px;
  }

  .phone .feed {
    padding: 0 16px 0;
  }

  .phone .post__body {
    font-size: 13px;
  }

  .fab {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
    right: 12px;
    bottom: 18px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0c0c10;
    --paper-deep: #101015;
    --surface: #17171d;
    --ink: #f3f2ed;
    --ink-soft: #c8c7c1;
    --muted: #8b8b94;
    --hairline: rgba(243, 242, 237, 0.13);
    --accent: #9b97ff;
    --accent-soft: rgba(155, 151, 255, 0.16);
    --accent-foreground: #0c0c10;
    --bezel: #000;
    --shadow: rgba(0, 0, 0, 0.58);
  }

  .button--primary:hover {
    background: #d8d7d1;
  }

  .button__label small {
    color: #595960;
  }
}

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

  .button {
    transition: none;
  }
}
