/* Purrlyze — site styles */
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #1f2024; --bg-2: #25272c; --card: #2a2c32; --line: rgba(236, 240, 246, .1);
  --ink: #f1f3f7; --mut: rgba(241, 243, 247, .68); --faint: rgba(241, 243, 247, .45);
  --sage: #3fe0ec; --sage-2: #233038; --ac: #ff7f62; --ac-ink: #1a120d; --violet: #9a8ff5;
  --cat: #f0a56b; --cat-2: #fbe2c8; --cat-ear: #f4b9b1; --eye: #f7f4ea;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --r: 22px; --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: clamp(16px, .95rem + .2vw, 17.5px); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--ac); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.solid { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 22px; height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--mut); font-size: 15px; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 6px; }
.lang button, .lang a { font: 800 12px/1 var(--sans); letter-spacing: .06em; color: var(--mut); background: none; border: 0; padding: 8px 11px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; }
.lang [aria-pressed="true"], .lang [aria-current="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.blobs { position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none; z-index: 0; filter: blur(60px); opacity: .7; -webkit-mask-image: linear-gradient(#000 55%, transparent 85%); mask-image: linear-gradient(#000 55%, transparent 85%); }
.blobs i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 46vw; height: 46vw; right: 2%; top: 4%; background: var(--sage-2); }
.blobs i:nth-child(2) { width: 30vw; height: 30vw; right: 30%; top: 30%; background: color-mix(in srgb, var(--ac) 22%, transparent); animation-duration: 24s; }
.blobs i:nth-child(3) { width: 26vw; height: 26vw; left: -6%; top: 40%; background: color-mix(in srgb, var(--violet) 22%, transparent); animation-duration: 30s; }
@keyframes drift { to { transform: translate(-4vw, 3vh) scale(1.08); } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .cat-wrap { order: -1; max-width: 300px; margin: 0 auto; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent); padding: 7px 12px; border-radius: 999px; }
.kicker svg { width: 16px; height: 16px; }
.hero h1 { margin: 18px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, var(--sage), var(--violet) 50%, var(--ac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19.5px); color: var(--mut); max-width: 34ch; }
/* official App Store badge (Apple artwork, unaltered); the visible one follows the page language */
.store { display: inline-block; margin-top: 28px; border-radius: 9px; line-height: 0; transition: transform .3s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store img { display: block; height: 52px; width: auto; }
html[lang="tr"] .store-en, html:not([lang="tr"]) .store-tr { display: none; }
.devices { margin: 12px 0 0; font-size: 14px; color: var(--faint); font-weight: 700; }

/* interactive cat */
.cat-wrap { position: relative; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 1; }
.cat-wrap::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.cat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; cursor: pointer; border-radius: 50%; }
.cat:focus:not(:focus-visible) { outline: none; }
.cat .ear { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s var(--ease); }
.cat.twitch .ear.l { transform: rotate(-14deg); } .cat.twitch .ear.r { transform: rotate(14deg); }
.cat .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .09s ease-in; }
.cat.blink .lid { transform: scaleY(1); }
.cat .whiskers { transform-box: fill-box; transform-origin: 50% 50%; animation: whisk 4s ease-in-out infinite; }
.cat .whiskers.r { animation-delay: -2s; }
@keyframes whisk { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(4deg); } 94% { transform: rotate(-3deg); } }
.cat .heart { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.cat.purr .heart { animation: heart 1.4s var(--ease); }
.cat.purr .heart.h2 { animation-delay: .18s; }
@keyframes heart { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }
.cat-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 13px; font-weight: 800; color: var(--faint); white-space: nowrap; }

/* sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.lead { margin: 14px 0 0; color: var(--mut); max-width: 56ch; font-size: clamp(16.5px, 1.2vw, 18.5px); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); transition: transform .4s var(--ease); }
.feature:hover .ic { transform: rotate(-8deg) scale(1.08); }
.feature .ic svg { width: 26px; height: 26px; }
.feature:nth-child(3n+2) .ic { background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); }
.feature h3 { margin: 18px 0 6px; font-size: 19px; letter-spacing: -.015em; font-weight: 800; }
.feature p { margin: 0; color: var(--mut); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { border-radius: calc(var(--r) + 6px); padding: clamp(28px, 4vw, 44px); background: var(--sage-2); }
.panel.alt { background: var(--card); border: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; font-weight: 800; line-height: 1.15; }
.panel p { color: var(--mut); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--sage); margin-top: 1px; }
.profiles { display: flex; margin-top: 22px; }
.profiles span { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--sage-2); margin-left: -12px; display: grid; place-items: center; font-weight: 800; color: #fff; transition: transform .3s var(--ease); }
.profiles span:first-child { margin-left: 0; }
.profiles span:hover { transform: translateY(-6px); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--card); color: var(--mut); font-size: 15px; }
.note svg { flex: none; width: 24px; height: 24px; color: var(--ac); }
.note p { margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* document pages */
.doc { max-width: 740px; margin: 0 auto; padding: 56px var(--gutter) 90px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.08; margin: 16px 0 0; font-weight: 800; }
.doc .updated { color: var(--faint); font-size: 14px; margin-top: 10px; }
.doc h2 { margin: 40px 0 0; font-size: 21px; letter-spacing: -.015em; font-weight: 800; }
.doc p, .doc li { color: var(--mut); }
.doc ul { padding-left: 1.2em; }
.doc details { border-top: 1px solid var(--line); padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--ac); font-size: 22px; line-height: 1; }
.doc details[open] summary::after { content: "−"; }
.doc details p { margin: 10px 0 0; }
.doc .contact { margin-top: 40px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.doc .contact p { margin: 4px 0 0; }
.doc .back { display: inline-block; margin-top: 36px; font-weight: 800; color: var(--sage); text-decoration: none; }
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.lost h1 { font-size: clamp(64px, 10vw, 120px); margin: 0; letter-spacing: -.05em; font-weight: 800; color: var(--ac); }
.lost p { color: var(--mut); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.feature:nth-child(3n) .ic { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }

/* cinematic hero */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: center; }
#ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero.no-canvas { background: radial-gradient(50% 50% at 70% 50%, rgba(154, 143, 245, .25), transparent 70%), var(--bg); }
.hero .wrap { width: 100%; }
.mark-wrap { position: relative; justify-self: center; width: min(78%, 360px); aspect-ratio: 350 / 510; animation: floaty 7s ease-in-out infinite; }
.mark-wrap::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(154, 143, 245, .35), rgba(63, 224, 236, .12) 45%, transparent 70%); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
.mark { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .45)); }
@keyframes floaty { 0%, 100% { transform: translateY(-8px) rotate(-1deg); } 50% { transform: translateY(8px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@media (max-width: 860px) { .hero .mark-wrap { order: -1; width: min(46%, 200px); } }
