/*
 * Kroess Labs: one stylesheet for every page.
 * Self-contained on purpose: fonts, images and video are served from this
 * domain. Nothing is loaded from a third party, as the privacy policies say.
 */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #a8b2c4;
  --faint: #8792a6;
  --amber: #ffb45e;
  --rose: #ff9a8b;
  --berry: #ee4c7c;
  --accent: var(--amber);
  --glow: linear-gradient(90deg, #ffc15e, #ff9a8b 50%, #ee4c7c);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
::selection { background: rgba(255, 180, 94, 0.35); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(7, 10, 18, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand span b { font-weight: 800; }
.brand span i { font-style: normal; font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .lang {
  margin-left: 6px; border: 1px solid var(--line-2); color: var(--text);
  font-size: .82rem; letter-spacing: .06em; padding: 7px 12px;
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
}

/* ---------- buttons, chips ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: #0b0f1a; box-shadow: 0 10px 30px -12px rgba(255, 180, 94, .55); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: var(--surface); }
.btn svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip.live .dot { background: #5ee08f; box-shadow: 0 0 10px #5ee08f; }
.chip.test .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.chip.dev .dot { background: #8fb3ff; box-shadow: 0 0 10px #8fb3ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--glow); }

.glow-text {
  background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 110px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0b1020; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, .88) 0%, rgba(7, 10, 18, .55) 38%, rgba(7, 10, 18, 0) 68%),
    linear-gradient(180deg, rgba(7, 10, 18, .55) 0%, rgba(7, 10, 18, 0) 22%, rgba(7, 10, 18, 0) 62%, var(--bg) 100%);
}
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin: 18px 0 20px; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d5dbe6; max-width: 34em; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .hero { align-items: flex-end; min-height: 92svh; }
  .hero::after {
    background: linear-gradient(180deg, rgba(7, 10, 18, .35) 0%, rgba(7, 10, 18, .15) 30%, rgba(7, 10, 18, .82) 64%, var(--bg) 100%);
  }
  .hero-media img, .hero-media video { object-position: 74% 50%; }
}

/* app hero variant */
.hero.app { min-height: min(86svh, 860px); }
.hero.app.flip .hero-media img { object-position: 30% 50%; }
.hero.app.flip::after {
  background:
    linear-gradient(270deg, rgba(7, 10, 18, .9) 0%, rgba(7, 10, 18, .55) 40%, rgba(7, 10, 18, 0) 70%),
    linear-gradient(180deg, rgba(7, 10, 18, .55) 0%, rgba(7, 10, 18, 0) 22%, rgba(7, 10, 18, 0) 62%, var(--bg) 100%);
}
.hero.app.flip .hero-copy { margin-left: auto; }
@media (max-width: 720px) {
  .hero.app { min-height: 0; padding: 120px 0 56px; }
  .hero.app.flip::after {
    background: linear-gradient(180deg, rgba(7, 10, 18, .35) 0%, rgba(7, 10, 18, .15) 30%, rgba(7, 10, 18, .82) 64%, var(--bg) 100%);
  }
}
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.app-id .chips { margin-top: 2px; }
.hero.app h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }

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

section { position: relative; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- app cards ---------- */

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1020px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .apps { grid-template-columns: minmax(0, 1fr); } }

.app-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  text-decoration: none; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px var(--tint, rgba(255, 180, 94, .5)); }
.app-card .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.app-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.app-card:hover .art img { transform: scale(1.04); }
.app-card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 16, 32, 0) 45%, var(--bg-2) 100%); }
.app-card .body { position: relative; padding: 0 24px 24px; margin-top: -38px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.app-card .icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.app-card h3 { font-size: 1.55rem; margin-top: 6px; }
.app-card p { color: var(--muted); margin: 0; }
.app-card .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.app-card .more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.app-card:hover .more svg { transform: translateX(4px); }

.app-card.soon {
  border-style: dashed; border-color: var(--line-2); background: transparent;
  align-items: flex-start; justify-content: center; padding: 32px; min-height: 360px;
}
.app-card.soon:hover { transform: none; box-shadow: none; }
.soon-orbs { display: flex; gap: 10px; margin-bottom: 22px; }
.soon-orbs span { width: 14px; height: 14px; border-radius: 50%; }
.soon-orbs span:nth-child(1) { background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.soon-orbs span:nth-child(2) { background: var(--rose); box-shadow: 0 0 18px var(--rose); }
.soon-orbs span:nth-child(3) { background: var(--berry); box-shadow: 0 0 18px var(--berry); }

/* ---------- principles ---------- */

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.principle .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 193, 94, .18), rgba(238, 76, 124, .14)); border: 1px solid rgba(255, 180, 94, .25);
  color: var(--amber);
}
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.25; }
.principle p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- studio band ---------- */

.band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 154, 139, .16), transparent 60%),
    radial-gradient(50% 110% at 0% 100%, rgba(255, 193, 94, .12), transparent 60%),
    var(--bg-2);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); } }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 14px 0 16px; }
.band p { color: var(--muted); font-size: 1.08rem; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.fact svg { flex: none; width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.fact b { display: block; font-weight: 700; }
.fact span { color: var(--muted); font-size: .95rem; }

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

.contact { text-align: center; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 14px auto 18px; max-width: 16em; }
.contact p { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 auto 30px; }
.contact .eyebrow { justify-content: center; }
.contact .mail { font-weight: 700; }

/* ---------- app pages ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--tint-bg, rgba(255, 180, 94, .12)); color: var(--tint-fg, var(--amber)); }
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 280px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px;
  margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.shots img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; scroll-snap-align: start; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9);
}
.shots-wrap { position: relative; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 14px 0 16px; }
.split p { color: var(--muted); font-size: 1.08rem; }

.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 20px 18px 66px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.steps li b { color: var(--text); display: block; margin-bottom: 2px; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: #0b0f1a; background: var(--tint-solid, var(--amber));
}

.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(143, 179, 255, .07); border: 1px solid rgba(143, 179, 255, .22); color: #cdd8f0;
}
.note svg { flex: none; width: 22px; height: 22px; color: #8fb3ff; margin-top: 2px; }
.note p { margin: 0; }

.legal-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* tints per app */
.t-quevia { --tint: rgba(255, 140, 70, .45); --tint-bg: rgba(255, 150, 80, .13); --tint-fg: #ffb06b; --tint-solid: #ffb06b; }
.t-spark { --tint: rgba(255, 123, 107, .45); --tint-bg: rgba(255, 123, 107, .13); --tint-fg: #ff9a8b; --tint-solid: #ff9a8b; }
.t-berryvault { --tint: rgba(238, 76, 124, .45); --tint-bg: rgba(238, 76, 124, .14); --tint-fg: #ff6f97; --tint-solid: #ff6f97; }

/* ---------- legal pages ---------- */

.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 12px; }
.doc .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 44px 0 12px; letter-spacing: -0.01em; line-height: 1.3; }
.doc h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.doc p, .doc ul, .doc address { color: #cfd6e2; }
.doc ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .4rem; }
.doc address { font-style: normal; margin: 0 0 1rem; }
.doc a { color: var(--amber); text-underline-offset: 3px; }
.doc .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px 8px; margin-bottom: 1.5rem;
}

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

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(11, 16, 32, .7)); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :first-child { grid-column: 1 / -1; } }
.foot p { color: var(--muted); font-size: .95rem; max-width: 26em; margin-top: 14px; }
.foot h4 { margin: 4px 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot ul a:hover { color: var(--text); }
.fine { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--faint); font-size: .88rem; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-card, .app-card .art img, .btn { transition: none; }
}
