/* Conversion Minds — apps.conversionminds.com
   "App shelf": dark, quiet greyscale chrome; all color comes from the apps. */

:root {
  --canvas: #0e0e12;
  --surface: #16161c;
  --surface-2: #1d1d25;
  --text: #f3f3f6;
  --muted: #9b9ba6;
  --faint: #6b6b76;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;
  --wrap: 1120px;
  --r: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.wordmark .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: conic-gradient(from 210deg, #ff4d7d, #7c3aed, #4f46e5, #1a6f9e, #2fdd77, #12b0b0, #ff4d7d);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

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

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

.hero {
  padding: 92px 0 40px;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero p {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

/* ---------------- app shelf ---------------- */

.shelf {
  padding: 40px 0 100px;
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.shelf-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

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

.card {
  --grad: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--grad);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s ease;
  animation: rise 0.5s both;
}

.card::after {
  /* subtle top sheen so gradients feel like glass, not flat fills */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%);
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: auto;
}

.card-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #fff;
}

.card-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

.card-line {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
}

.card-cta {
  margin-top: 18px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: background 0.15s ease;
}

.card:hover .card-cta {
  background: rgba(0, 0, 0, 0.5);
}

/* whole card is a link to the detail page; CTA is a nested link to Play */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-cta {
  position: relative;
  z-index: 2;
}

/* ---------------- app detail ---------------- */

.detail-hero {
  --grad: var(--surface);
  background: var(--grad);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.detail-hero .wrap {
  padding-top: 40px;
  padding-bottom: 48px;
}

.back {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  margin-bottom: 30px;
}

.back:hover {
  color: #fff;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.detail-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.detail-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.02;
}

.detail-head .card-meta {
  font-size: 13px;
  margin-top: 8px;
}

.detail-body {
  padding: 52px 0 90px;
}

.detail-desc {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  max-width: 62ch;
  color: var(--text);
}

.shots {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots img {
  height: 460px;
  width: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.playbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 44px;
  padding: 15px 26px;
  border-radius: 14px;
  background: #fff;
  color: #0e0e12;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.playbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.apk-note {
  margin-top: 14px;
  max-width: 46ch;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted, #8a8a95);
}

.detail-links {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}

.detail-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ---------------- prose (privacy / about / terms / contact) ---------------- */

.prose {
  padding: 64px 0 96px;
  max-width: 760px;
  margin-inline: auto;
}

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

.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}

.prose .lead {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 24px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer .wordmark {
  font-size: 17px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

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

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- motion ---------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 60px 0 32px;
  }
  .nav-links {
    gap: 18px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .detail-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .detail-icon {
    width: 88px;
    height: 88px;
  }
  .shots img {
    height: 380px;
  }
}

/* ============================================================
   Ad landing / download splash  (/rigori.html)
   Standalone (body.bare), bilingual ES/EN, app-branded.
   ============================================================ */
body.bare { background: #0a1120; }

.lp {
  min-height: 100vh;
  background:
    radial-gradient(1000px 460px at 50% -8%, rgba(57, 208, 255, 0.14), transparent 60%),
    var(--grad, linear-gradient(160deg, #1b2b4d, #0a1120 78%));
  color: #e8f2e6;
  font-family: 'Courier New', var(--mono);
  display: flex;
  justify-content: center;
  padding: 26px 18px calc(40px + env(safe-area-inset-bottom));
  position: relative;
}
.lp::after { /* CRT scanline texture to match the game */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}
.lp-inner {
  width: 100%;
  max-width: 460px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.lp-langtoggle {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #7e93b4;
}
.lp-langtoggle a { color: #7e93b4; text-decoration: none; padding: 4px 6px; }
.lp-langtoggle b { color: #fff; padding: 4px 6px; }
.lp-langtoggle span { color: #3a4a63; margin: 0 1px; }

.lp-icon {
  width: 118px;
  height: 118px;
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.06);
  margin-top: 18px;
}
.lp-eyebrow {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #39d0ff;
  text-transform: uppercase;
}
.lp-title {
  font-size: 40px;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  text-shadow: 4px 4px 0 #000, 0 0 22px rgba(57, 208, 255, 0.35);
}
.lp-title { color: #ffc53d; }
.lp-tag {
  margin-top: 12px;
  font-size: 15px;
  color: #cdd9ec;
  line-height: 1.5;
}
.lp-cta {
  display: block;
  margin: 30px auto 0;
  max-width: 380px;
  padding: 20px 24px;
  background: #ffc53d;
  color: #0a1120;
  font-family: inherit;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 3px solid #0a1120;
  box-shadow: 5px 5px 0 #000;
  animation: lp-pulse 1.7s ease-in-out infinite;
}
.lp-cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
@keyframes lp-pulse {
  0%, 100% { box-shadow: 5px 5px 0 #000, 0 0 0 0 rgba(255, 197, 61, 0.5); }
  50% { box-shadow: 5px 5px 0 #000, 0 0 26px 4px rgba(255, 197, 61, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .lp-cta { animation: none; } }
.lp-cta-sub {
  margin-top: 12px;
  font-size: 12px;
  color: #7e93b4;
  letter-spacing: 0.5px;
}
.lp-shots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.lp-shots img {
  height: 300px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
.lp-steps {
  margin-top: 34px;
  text-align: left;
  background: rgba(16, 26, 48, 0.72);
  border: 3px solid #e8f2e6;
  box-shadow: 0 0 0 3px #0a1120, 6px 6px 0 rgba(0, 0, 0, 0.5);
  padding: 18px 20px 20px;
}
.lp-steps h2 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #39d0ff;
  margin-bottom: 10px;
}
.lp-steps ol { margin: 0; padding-left: 22px; }
.lp-steps li { font-size: 14px; line-height: 1.7; color: #e8f2e6; }
.lp-steps li b { color: #ffc53d; }
.lp-fine {
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
  color: #6b7a94;
}
.lp-fine a { color: #7e93b4; text-decoration: underline; }

@media (max-width: 380px) {
  .lp-title { font-size: 33px; }
  .lp-shots img { height: 250px; }
}

/* "play in browser" secondary link on the splash pages */
.lp-play {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border: 2px solid #39d0ff;
  color: #39d0ff;
  font-family: 'Courier New', var(--mono);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.lp-play:active { transform: translateY(1px); }
