/* slon3studio — shared styles for every page */

:root {
  --bg: #0b0b0d;
  --bg-soft: #131317;
  --card: #17171c;
  --card-hover: #1d1d24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --yellow: #ffc20e;
  --yellow-soft: rgba(255, 194, 14, 0.14);
  --blue: #7fd3f7;
  --blue-soft: rgba(127, 211, 247, 0.14);
  --radius: 18px;
  --max: 1120px;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* keep anchor targets clear of the sticky header */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* soft glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(255, 194, 14, 0.12), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(127, 211, 247, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--yellow);
}

.eyebrow {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(11, 11, 13, 0.97);
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--pixel);
  font-size: 1.15rem;
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-nav a.nav-cta {
  color: #111;
  background: var(--yellow);
  font-weight: 650;
  margin-left: 6px;
}

.site-nav a.nav-cta:hover {
  background: #ffd24d;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

.btn-primary:hover {
  background: #ffd24d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */

main {
  flex: 1;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Hero */

.hero {
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-art {
  position: relative;
  justify-self: center;
}

.hero-art img {
  width: min(320px, 70vw);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(255, 194, 14, 0.18), 0 0 0 1px var(--border);
  transform: rotate(-4deg);
  transition: transform 0.4s;
  image-rendering: pixelated;
}

.hero-art:hover img {
  transform: rotate(0deg) scale(1.02);
}

.page-hero {
  padding: 90px 0 40px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

/* ---------- App cards ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

a.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  text-decoration: none;
}

.app-card p {
  color: var(--muted);
  margin: 0;
}

.app-card .card-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--yellow);
  font-weight: 600;
}

.app-card.coming-soon {
  border-style: dashed;
  justify-content: center;
  align-items: flex-start;
}

.app-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: 1.8rem;
  color: #111;
  background: var(--yellow);
  flex-shrink: 0;
}

.app-icon.lg {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  font-size: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

/* No yellow behind a real icon: it bled through the rounded corners as a thin rim */
.app-icon:has(img) {
  background: transparent;
}

.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-grid li {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 550;
}

.feature-grid li::before {
  content: "■";
  color: var(--yellow);
  font-size: 0.7rem;
  margin-right: 10px;
  vertical-align: 2px;
}

/* What we do */

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

.pillar {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.pillar .num {
  font-family: var(--pixel);
  color: var(--yellow);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 12px;
}

.pillar p {
  color: var(--muted);
  margin: 0;
}

/* ---------- App detail page ---------- */

.app-hero {
  padding-top: 80px;
  padding-bottom: 30px;
  display: flex;
  gap: 36px;
  align-items: center;
}

.app-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

.app-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-subnav a {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.92rem;
}

.app-subnav a:hover,
.app-subnav a[aria-current="page"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  text-decoration: none;
}

.content-block {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.content-block p {
  color: #d4d4d8;
  max-width: 720px;
}

/* Document pages (support, privacy) */

.doc {
  max-width: 780px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}

.doc p,
.doc li {
  color: #d4d4d8;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--yellow);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-weight: 600;
}

/* ---------- Work with us ---------- */

.work {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 194, 14, 0.16), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--border);
}

.work ul {
  padding-left: 1.1em;
  color: #d4d4d8;
}

.work li::marker {
  color: var(--yellow);
}

.form {
  display: grid;
  gap: 14px;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.form .btn {
  justify-self: start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  color: var(--muted);
  display: inline-block;
  padding: 10px 0;
}

.footer-links a:hover {
  color: var(--text);
}

/* Touch screens: no hover lift that sticks after a tap */
@media (hover: none) {
  .btn:hover,
  a.app-card:hover {
    transform: none;
  }

  .hero-art:hover img {
    transform: rotate(-4deg);
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .work {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: 180px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .work {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding: 56px 0 50px;
  }

  .section {
    padding: 60px 0;
  }

  .app-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-top: 48px;
  }

  .doc {
    padding: 24px 20px;
  }

  .app-icon.lg {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .app-hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .footer-content {
    flex-direction: column;
    gap: 4px;
  }

  .btn-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .form .row {
    grid-template-columns: 1fr;
  }
}

/* Remote Mouse: download button and numbered setup steps */

.download-row {
  margin-top: 18px;
}

.download-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #d4d4d8;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
}

.steps strong {
  color: var(--text);
}

.steps code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
}
