/* The Infinity Developers: website styles. Follows the visitor's light or dark mode, like Vector.
   Inter is bundled here (SIL Open Font License, assets/fonts/Inter-OFL.txt): nothing is loaded
   from other sites and nothing tracks visitors. */

@font-face { font-family: Inter; src: url(assets/fonts/Inter-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-ExtraBold.ttf); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #0a0a0c;
  --mute: #5e5e63;
  --line: #d9d9de;
  --purple: #6d3fc9;
  --accent: #5a2eb8;
  --glass: rgba(255, 255, 255, 0.78);
  --glow: rgba(109, 63, 201, 0.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161618;
    --text: #f5f5f7;
    --mute: #8e8e93;
    --line: #2c2c2e;
    --accent: #b69cff;
    --glass: rgba(0, 0, 0, 0.72);
    --glow: rgba(122, 60, 255, 0.28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the hero's glow may spill sideways, never cause sideways scrolling */
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Navigation: thin, frosted, always there. */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; }
.nav .links { margin-left: auto; display: flex; gap: 24px; font-size: 14px; }
.nav .links a { color: var(--mute); }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* Type. */
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-weight: 800; font-size: clamp(48px, 9vw, 104px); }
h2 { font-weight: 800; font-size: clamp(36px, 6vw, 64px); }
h3 { font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.lede { color: var(--mute); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; max-width: 680px; margin: 20px auto 0; }
.center { text-align: center; }

/* The hero: one product, very large. */
.hero { padding: 96px 0 40px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 320px; width: 1000px; height: 900px; z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero .app-icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 12px 40px var(--glow); }
.cta { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 32px; font-size: 17px; flex-wrap: wrap; }
.pill {
  display: inline-block; background: var(--purple); color: #fff; font-weight: 600;
  padding: 12px 24px; border-radius: 999px;
}
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.soon { color: var(--mute); }

/* Phones. */
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-end; margin-top: 64px; position: relative; }
.phone {
  width: min(300px, 42vw);
  border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2b2b30, #0e0e10);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 37px; width: 100%; }
.phone.small { width: min(250px, 36vw); }
.phone.lift { transform: translateY(-36px); }

/* Sections. */
section { padding: 120px 0; }
section.tint { background: var(--surface); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.flip .copy { order: 2; }
.copy p { color: var(--mute); font-size: 19px; margin: 20px 0 0; }
.copy .eyebrow { color: var(--accent); font-size: 15px; margin: 0 0 12px; }
.copy .eyebrow + h2 { margin-top: 4px; }

/* Feature tiles. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--bg); border-radius: 28px; padding: 32px; border: 1px solid var(--line); }
section.tint .tile { border-color: transparent; }
.tile .icon { width: 32px; height: 32px; margin-bottom: 18px; color: var(--accent); }
.tile .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile p { color: var(--mute); margin: 10px 0 0; font-size: 16px; }
.tile.wide { grid-column: span 2; }

/* Identities strip. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--text); }

/* Privacy: big statements. */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; margin-top: 64px; }
.promises h3 { font-size: 24px; }
.promises p { color: var(--mute); margin: 10px 0 0; }

/* Company. */
.company { text-align: center; }
.infinity { font-size: 64px; line-height: 1; color: var(--accent); font-weight: 300; }

/* Footer. */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--mute); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .right { margin-left: auto; display: flex; gap: 24px; }
footer a { color: var(--mute); }

/* Long text pages (privacy). */
.doc { max-width: 720px; margin: 0 auto; padding: 88px 20px 96px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); }
.doc .updated { color: var(--mute); margin-top: 14px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 44px; }
.doc p { font-size: 18px; color: var(--text); margin: 12px 0 0; }
.doc .eyebrow { color: var(--accent); font-size: 15px; margin: 0 0 12px; }

/* Gentle reveal on scroll, only when scripts run (.js), and off for anyone who prefers less motion. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Phones and small screens. */
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .copy { order: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .promises { grid-template-columns: 1fr; gap: 32px; }
  .phones { gap: 14px; }
  .phone { border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 25px; }
  .phone.lift { transform: translateY(-18px); }
  .nav .links { gap: 16px; }
  .nav .links .hide-small { display: none; }
  footer .right { margin-left: 0; }
}
