@font-face { font-family: "Swarlet"; src: url(/fonts/Swarlet-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(/fonts/thmanyahsans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(/fonts/thmanyahsans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --accent: #f97316; /* Cofounder orange, used for hover */
}

* { box-sizing: border-box; margin: 0; }

/* One screen, no scrolling. */
html, body { height: 100%; overflow: hidden; }

body {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: "Thmanyah Sans", system-ui, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  position: relative;
  flex: 1;
  height: 100svh;
  height: 100dvh;
  padding-bottom: 3.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The logo is huge and mostly off-screen. It is positioned by the centre of its one
   complete circle (79.8% across, 50% down the viewBox), anchored at --x/--y. */
.logo {
  --size: 215svh;
  --x: 30vw;
  --y: 50%;
  position: absolute;
  width: var(--size);
  height: calc(var(--size) * 138 / 137);
  left: calc(var(--x) - var(--size) * 0.798);
  top: calc(var(--y) - var(--size) * 0.5);
  transform-origin: 79.8% 50%;
  pointer-events: none;
}

.logo path { fill: var(--fg); }
.logo .slot { opacity: 0.14; animation: fade-in 0.8s ease-out backwards; }

.logo .product { pointer-events: auto; animation: fade-in 0.8s ease-out 0.15s backwards; }
.logo .product path { transition: fill 0.2s; }
.logo .product image { transform-box: fill-box; transform-origin: center; }
.logo .product:hover path,
.logo .product:focus-visible path { fill: var(--accent); }
.logo .product:focus { outline: none; }

@keyframes fade-in { from { opacity: 0; } }

.intro {
  position: relative;
  margin-left: 58vw;
  padding: 2rem 6vw 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

h1 {
  font-family: "Swarlet", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.intro p {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.9rem;
  padding: 0 1.6rem;
  line-height: 1;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover, .button:focus-visible { background: var(--accent); }

.button.outline {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--fg);
  transition: box-shadow 0.2s, color 0.2s;
}
.button.outline:hover, .button.outline:focus-visible {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* Laid over the bottom of the page, so the logo runs to the bottom edge behind it. */
footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}

/* Phone: turned so the rest of the ring runs off the top and the complete circle comes
   down from it; text below. The circle is sized by width and height so it always fits. */
@media (max-width: 760px) {
  main {
    --d: min(78vw, 40dvh);                /* complete circle's diameter */
    --cy: calc(var(--d) / 2 + min(12vw, 7dvh)); /* its centre, from the top */
    align-items: flex-start;
  }
  .logo {
    --size: calc(var(--d) / 0.2285);      /* the circle is 22.85% of the logo's width */
    --x: 50vw;
    --y: var(--cy);
    transform: rotate(90deg);
  }
  .logo .product image { transform: rotate(-90deg); }
  .intro {
    width: 100%;
    margin: 0;
    padding: calc(var(--cy) + var(--d) / 2 + 3dvh) 8vw 0;
    gap: min(1.25rem, 2.2dvh);
    align-items: center;
    text-align: center;
  }
  h1 { font-size: min(3rem, 6.5dvh); }
  .intro p { font-size: min(1.15rem, 2.6dvh); }
  .actions { justify-content: center; flex-wrap: nowrap; margin-top: 0; }
  .button { padding: 0 min(1.6rem, 5vw); white-space: nowrap; }
  footer { padding: 1.25rem 8vw; }
}

@media (prefers-reduced-motion: reduce) {
  .logo .slot, .logo .product { animation: none; }
}
