/* Qi Design Studios — Prism Glass tokens, lifted from TautFit/Theme/Theme.swift
   (Theme.light). The studio site is the light theme's dressier sibling: same
   palette, more air, more glass. If a token moves in Theme.swift, move it here. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --app-bg: #eff1f8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-solid: rgba(255, 255, 255, 0.86);
  --surface-sunk: rgba(27, 32, 48, 0.06);
  --ink: #1b2030;
  --body: #3a4156;
  --mute: #646c82;
  --dim: #9aa1b5;
  --acc: #5b5bf0;
  --acc-ink: #ffffff;
  --acc-soft: rgba(91, 91, 240, 0.1);
  --acc-line: rgba(91, 91, 240, 0.25);
  --acc-glow: 0 8px 24px rgba(91, 91, 240, 0.35);
  --line: rgba(27, 32, 48, 0.1);
  --hair: rgba(27, 32, 48, 0.07);
  --radius: 18px;
  --radius-sm: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 2px 10px rgba(27, 32, 48, 0.05);
  --shadow: 0 14px 40px rgba(27, 32, 48, 0.08);
  --shadow-lg: 0 30px 80px rgba(27, 32, 48, 0.12);
  --ui: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: 1100px;
}

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

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

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--body);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The prism. Three wide, heavily blurred colour fields refracting through the
   page background — the whole reason the theme is called Prism Glass. Fixed so
   the glass surfaces above them shift hue as you scroll. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  background:
    radial-gradient(46vw 46vw at 12% 6%, rgba(91, 91, 240, 0.28), transparent 62%),
    radial-gradient(40vw 40vw at 88% 18%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(52vw 52vw at 62% 88%, rgba(225, 84, 143, 0.18), transparent 62%),
    radial-gradient(34vw 34vw at 8% 74%, rgba(129, 230, 200, 0.2), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
}

/* A fine grid, barely there — gives the glass something to refract. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(27, 32, 48, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 32, 48, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 25%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 25%, #000 20%, transparent 78%);
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 26px;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6.4vw, 68px);
}

h2 {
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.032em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--acc);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
}

.lede {
  font-size: clamp(17px, 1.9vw, 19.5px);
  color: var(--body);
  line-height: 1.62;
}

/* ---------- glass primitives ---------- */

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(239, 241, 248, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--hair);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.03em;
}

.wordmark:hover {
  text-decoration: none;
}

/* The mark: a refracting facet. Pure CSS, no asset to ship. */
.mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: conic-gradient(
    from 210deg,
    #5b5bf0,
    #38bdf8,
    #81e6c8,
    #e1548f,
    #5b5bf0
  );
  box-shadow: var(--acc-glow);
  transform: rotate(-8deg);
}

nav.site {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.site a {
  color: var(--mute);
  font-size: 14.5px;
  font-weight: 600;
}

nav.site a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* `nav.site a` outranks `.btn` on specificity, so the button in the header
   would otherwise inherit the muted nav colour and vanish into its own fill. */
nav.site a.btn,
nav.site a.btn:hover {
  color: var(--acc-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--acc-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  box-shadow: var(--acc-glow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(91, 91, 240, 0.42);
}

.btn.sm {
  padding: 9px 17px;
  font-size: 13.5px;
}

.btn.ghost {
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--ink);
  border-color: var(--glass-edge);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  box-shadow: var(--shadow);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(64px, 11vw, 122px) 26px clamp(48px, 7vw, 78px);
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-top: 24px;
  max-width: 56ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--dim);
}

/* ---------- sections ---------- */

section {
  padding: clamp(52px, 8vw, 92px) 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--mute);
}

/* ---------- the product showcase ---------- */

.product {
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0) 46%
  );
  pointer-events: none;
}

.product > * {
  position: relative;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status .pip {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

.product h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 40px);
}

.product .lede {
  margin-top: 18px;
}

.product ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.product li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--body);
}

.product li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, #5b5bf0, #38bdf8);
}

.product-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- app mock (Prism Glass, mirroring the app itself) ---------- */

.mock {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-lg);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}

.mock-head .title {
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.mock-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.mock-head .clock {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}

.mock-ex {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.015em;
}

.mock-set {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hair);
}

.mock-set .n {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-sunk);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11px;
}

.mock-set .val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.mock-set .rpe {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.mock-set.pr {
  background: var(--acc-soft);
  border-color: var(--acc-line);
}

.mock-set.pr .val,
.mock-set.pr .rpe {
  color: var(--acc);
}

.mock-why {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.56;
  color: var(--mute);
}

.mock-why b {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- card grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card .num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--acc);
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 11px;
}

.card p {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.6;
}

/* ---------- contact ---------- */

.contact {
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}

.contact h2 {
  max-width: 20ch;
  margin: 0 auto;
}

.contact p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--mute);
  font-size: 16.5px;
}

.contact .btn {
  margin-top: 28px;
}

/* ---------- footer ---------- */

footer.site {
  margin-top: clamp(40px, 6vw, 70px);
  padding: 40px 0 54px;
  border-top: 1px solid var(--hair);
  color: var(--dim);
  font-size: 13.5px;
}

footer.site .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer.site a {
  color: var(--mute);
  font-weight: 600;
}

footer.site .spacer {
  flex: 1;
}

.legalese {
  margin-top: 24px;
  line-height: 1.72;
}

.legalese .uen {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hide-sm {
    display: none;
  }
  .wrap {
    padding: 0 18px;
  }
  body::after {
    background-size: 44px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .btn {
    transition: none;
  }
}
