/* ==========================================================================
   Slekio — product studio site
   Dark, blue-black base. Each app brings its own accent; the chrome stays
   neutral so the accents never fight each other. No JavaScript anywhere:
   scroll reveals use animation-timeline and degrade to "always visible".
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-subset.ef9a8953.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #07080b;
  --bg-2: #0a0c11;

  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #f4f5f8;
  --muted: #a4abb9;
  --dim: #6d7585;

  /* Per-app; neutral fallback for site chrome. */
  --accent: #8e97ad;

  --maxw: 1140px;
  --gutter: 28px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain — kills the banding that big soft gradients cause on dark screens. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #8ea2ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   type
   ========================================================================== */

h1, h2, h3 { margin: 0; font-weight: 620; letter-spacing: -0.035em; }

h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.1rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.display {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.042em;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.19rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
  text-wrap: pretty;
}

/* Accent-tinted gradient on a fragment of the headline. */
.grad {
  background: linear-gradient(102deg, #fff 8%, var(--accent) 52%, #fff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   glass surface — a top-lit 1px edge instead of a flat border
   ========================================================================== */

.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.02)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ==========================================================================
   header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff8261, #5360ea 55%, #e4710a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a { transition: color 0.2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .only-wide { display: inline; }

/* ==========================================================================
   aurora — soft accent light behind hero sections
   ========================================================================== */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

/* Kept apart and low-opacity: overlapping warm + cool at high opacity muddies
   to brown, which is exactly what a "premium dark" page must not do. */
.aurora .a1 {
  width: 560px; height: 440px;
  top: -260px; left: -200px;
  background: #ff8261;
  opacity: 0.14;
}
.aurora .a2 {
  width: 720px; height: 520px;
  top: -300px; left: 26%;
  background: #5360ea;
  opacity: 0.26;
}
.aurora .a3 {
  width: 460px; height: 380px;
  top: -230px; right: -180px;
  background: #e4710a;
  opacity: 0.1;
}

/* single-accent variant used on app pages */
.aurora.solo .a1 { background: var(--accent); opacity: 0.3; left: 8%; }
.aurora.solo .a2 { background: var(--accent); opacity: 0.14; left: 46%; }
.aurora.solo .a3 { display: none; }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(72px, 13vw, 132px) 0 clamp(56px, 9vw, 96px);
  isolation: isolate;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 10px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset;
  margin-bottom: 26px;
}

.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.hero h1 { margin-bottom: 24px; max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }

/* icon row under the hero */
.icon-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
  color: var(--dim);
  font-size: 0.84rem;
}

.icon-strip .icons { display: flex; margin-right: 15px; }

.icon-strip img {
  width: 40px; height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.11), 0 6px 18px rgba(0, 0, 0, 0.5);
  margin-right: -11px;
  transition: margin-right 0.28s var(--ease);
}
.icon-strip:hover img { margin-right: 4px; }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: linear-gradient(180deg, #fff, #d9dce4);
  color: #08090c;
  font-weight: 640;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset,
              0 8px 26px rgba(0, 0, 0, 0.45);
}
.btn.primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 32px rgba(0,0,0,.55); }

.btn.ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.btn.ghost:hover { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2) inset; }

.btn.accent {
  background: var(--accent);
  color: #08090c;
  font-weight: 640;
  box-shadow: 0 8px 30px -8px var(--accent);
}
.btn.accent:hover { filter: brightness(1.08); }

.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ==========================================================================
   showcase bands — one per app on the home page
   ========================================================================== */

.showcase {
  position: relative;
  padding-block: clamp(64px, 9vw, 104px);
  border-top: 1px solid var(--line);
}

.showcase::before {
  content: "";
  position: absolute;
  top: -10%;
  width: 640px;
  height: 460px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.11;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.showcase.right::before { right: -180px; }
.showcase.left::before { left: -180px; }

.showcase .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.showcase.left .wrap { grid-template-columns: 0.86fr 1fr; }
.showcase.left .copy { order: 2; }
.showcase.left .stage { order: 1; }

.copy .eyebrow { display: block; margin-bottom: 16px; }

.copy .app-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.copy .app-title img {
  width: 46px; height: 46px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
              0 10px 30px -8px var(--accent);
}

.copy .tagline {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--accent) 58%, #fff);
  margin: 0 0 14px;
}

.copy p.summary {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 46ch;
}

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

.chips li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset;
}

.showcase .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* phone cluster */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

/* Screens range from near-black (Ocroon) to near-white (LunchHop), so the
   frame — not the image — has to carry the edge. A crisp ring plus a wider
   bezel halo keeps a dark screenshot from dissolving into a dark page. */
.phone {
  border-radius: 26px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 7px rgba(255, 255, 255, 0.035),
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 70px -26px var(--accent);
  background: #0b0d12;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.stage .p1 {
  width: min(255px, 62%);
  position: relative;
  z-index: 2;
  transform: rotateY(-13deg) rotateX(3deg) translateZ(30px);
}

.stage .p2 {
  width: min(215px, 52%);
  position: absolute;
  right: 2%;
  top: 12%;
  z-index: 1;
  opacity: 0.72;
  transform: rotateY(-13deg) rotateX(3deg) translateX(28px);
}

.showcase:hover .stage .p1 { transform: rotateY(-8deg) rotateX(2deg) translateZ(48px); }
.showcase:hover .stage .p2 { transform: rotateY(-8deg) rotateX(2deg) translateX(40px); opacity: 0.85; }

/* Bands with the phones on the left get the tilt mirrored, so the devices
   always lean towards the copy rather than away from it. */
.showcase.left .stage .p1 { transform: rotateY(13deg) rotateX(3deg) translateZ(30px); }
.showcase.left .stage .p2 { right: auto; left: 2%; transform: rotateY(13deg) rotateX(3deg) translateX(-28px); }
.showcase.left:hover .stage .p1 { transform: rotateY(8deg) rotateX(2deg) translateZ(48px); }
.showcase.left:hover .stage .p2 { transform: rotateY(8deg) rotateX(2deg) translateX(-40px); opacity: 0.85; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--dim);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* ==========================================================================
   app detail page
   ========================================================================== */

.app-head { position: relative; padding: clamp(48px, 8vw, 84px) 0 clamp(30px, 4vw, 48px); }

.app-head .icon-xl {
  width: 92px; height: 92px;
  border-radius: 24px;
  margin-bottom: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
              0 24px 60px -14px var(--accent);
}

.app-head h1 { margin-bottom: 14px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.meta-row .badge { color: var(--muted); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--dim);
  margin-bottom: 32px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.back:hover { color: var(--text); gap: 11px; }

section { padding-block: clamp(46px, 7vw, 78px); scroll-margin-top: 78px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.sec-head .eyebrow { color: var(--muted); }
.sec-head .note { font-size: 0.84rem; color: var(--dim); }

/* .lede zeroes its margins for hero use, so stacked prose needs its own rhythm. */
.prose p + p { margin-top: 1.15em; }

/* screenshot rail */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px var(--gutter) 26px;
  margin-inline: calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.rail img {
  width: 250px;
  flex: 0 0 auto;
  border-radius: 24px;
  scroll-snap-align: center;
  background: #0b0d12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09),
              0 30px 60px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease);
}
.rail img:hover { transform: translateY(-8px); }

/* feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  position: relative;
  padding: 22px 22px 22px 24px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--muted);
  overflow: hidden;
}

.features li::after {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* legal / support rows */
.rows { border-top: 1px solid var(--line); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.row .label { font-weight: 560; }
.row .links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); }
.row .links a { transition: color 0.2s var(--ease); }
.row .links a:hover { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.row .links span { color: var(--dim); }

/* next-app teaser */
.next-app {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease);
}
.next-app:hover { transform: translateY(-3px); }
.next-app img { width: 52px; height: 52px; border-radius: 15px; }
.next-app .t { flex: 1; min-width: 0; }
.next-app .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.next-app .n { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.025em; }
.next-app .arrow { color: var(--dim); font-size: 1.3rem; }

/* ==========================================================================
   footer
   ========================================================================== */

.site-foot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-block: 52px 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.014));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 28px;
  margin-bottom: 44px;
}

.foot-grid h4 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-grid a, .foot-grid li { color: var(--muted); font-size: 0.94rem; }
.foot-grid a { transition: color 0.2s var(--ease); }
.foot-grid a:hover { color: var(--text); }
.foot-grid .blurb { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin: 0; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--dim);
}

/* ==========================================================================
   scroll reveal — progressive; no JS, and a no-op where unsupported
   ========================================================================== */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Finishes while the element is still entering, so a block that can never
       be scrolled further (the last one on the page) still resolves to full
       opacity instead of being stranded mid-fade. */
    .reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 62%;
    }
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .showcase .wrap,
  .showcase.left .wrap { grid-template-columns: 1fr; gap: 44px; }
  .showcase.left .copy, .showcase.left .stage { order: initial; }

  .stage { perspective: none; margin-top: 6px; }
  .stage .p1 { transform: none; width: 62%; max-width: 260px; }
  .stage .p2 {
    position: relative; right: auto; top: auto;
    transform: none; width: 52%; max-width: 220px;
    margin-left: -16%;
  }
  .showcase:hover .stage .p1,
  .showcase:hover .stage .p2 { transform: none; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .nav { gap: 18px; }
  .nav .only-wide { display: none; }
  .hero h1 { max-width: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .rail img { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
